pub fn codex_hooks() -> ValueExpand description
Capture hooks carry --agent codex; the injection hooks (session-start /
user-prompt) are agent-agnostic. Matchers are "" (all tools).
We intentionally do NOT register a PreToolUse hook for Codex. Unlike Claude
Code — whose PreToolUse is scoped to Write|Edit|Bash — the CLI does no
Codex-specific pre-tool work, and PostToolUse + Stop already stream the
(incremental, offset-tracked) rollout. A pre-tool hook on every tool call
would only double the per-call streaming for no added capture. No
Notification event either (Codex has none).