Skip to content

codex 有 pretooluse #299

Closed
Closed

Description

@candy-Tong

看到文档中有这么一段【Codex、OpenCode、OpenClaw、Factory Droid、Trae 会把同样的规则写进项目根目录的 AGENTS.md。这些平台没有 PreToolUse hook,所以 AGENTS.md 是它们的常驻机制。】

https://developers.openai.com/codex/hooks#pretooluse

Activity

  1. safishamsi commented on Apr 13, 2026

    @safishamsi
    Member

    Good catch — the README was wrong, the code was already right.

    graphify codex install has always installed a PreToolUse hook in .codex/hooks.json in addition to writing AGENTS.md (same always-on mechanism as Claude Code). The paragraph in the README incorrectly grouped Codex with platforms that lack hook support. Fixed in the README now.

    Upgrade to get the latest fixes:

    pip install --upgrade graphifyy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions