Skip to content

Support "Edit|Write" matcher in PostToolUse and PreToolUse #18295

Description

@3Spiders

What variant of Codex are you using?

analyze generated code and tools calling.

What feature would you like to see?

like claude code, support Edit|Write matcher in PostToolUse

{ 
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": ""
          }
        ]
      }
    ],
  }
}

Additional information

the raw request from this issue, #2109 (comment)

Activity

  1. added
    CLIIssues related to the Codex CLI
    hooksIssues related to event hooks
    configIssues involving config.toml, config keys, config merging, or config updates
    on Apr 17, 2026
  2. github-actions commented on Apr 17, 2026

    @github-actions
    Contributor
  3. changed the title [-]do you have a plan to support "Edit|Write" matcher in PostToolUse、PreToolUse ? i think plenty of feature relies on this[/-] [+]Support "Edit|Write" matcher in PostToolUse and PreToolUse[/+] on Apr 17, 2026
  4. removed
    CLIIssues related to the Codex CLI
    configIssues involving config.toml, config keys, config merging, or config updates
    on Apr 17, 2026
  5. abhinav-oai commented on Apr 22, 2026

    @abhinav-oai
    Contributor

    Added in #18391!

  6. oxysoft commented on May 8, 2026

    @oxysoft

    Indexed this hook ticket in the umbrella tracker: #21753

    Goal: collect the scattered Codex hook requests and bugs into one parity matrix for Full Claude Code Hook Parity (29+), while preserving this issue as the detailed thread for its specific behavior.

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

    enhancementNew feature or requesthooksIssues related to event hooks

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions