About two weeks ago, I tried out Atuin’s AI agent hooks to capture commands run by coding agents like Claude Code, Codex, and pi.
I installed the Codex hook (atuin hook install codex), but no commands showed up when running atuin search --author '$all-agent’. It turns out Codex hooks are behind a feature flag. To enable them, add the following to config.toml:
[features]
codex_hooks = true
Restart Codex after adding this.
Without this flag, hooks.json may be written correctly, but Codex won’t read it. Hopefully Atuin’s AI Agent Hooks will support Amp in the future.
[2026-05-09 update]
After upgrading to Codex CLI 0.129.0, I got the following message:
‘[features].codex_hooks’ is deprecated. Use ‘[features].hooks’ instead.
Enable it with ‘–enable hooks’ or ‘[features].hooks in config.toml. See https://developers.openai.com/codex/config-basic#feature-flags for details.
So we have to update config.toml as described above. It should look like this:
[features]
hooks = true
After that, we can launch Codex CLI and run /hooks to review them. In my case (using Atuin’s AI agent hooks), I had to explicitly trust the two hooks.

Although I found that OpenAI’s document has not been updated, as people pointed out in this issue, the feature is working.