Skip to main content

codex_hooks

Function codex_hooks 

Source
pub fn codex_hooks() -> Value
Expand description

Codex CLI hook set, mirroring tracevault_hooks() but with Codex commands. 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).