Codex setup
Codex registers hooks through a one-paste flow driven by the sidebar itself.
Before Codex will load hooks, enable the feature flag in ~/.codex/config.toml:
[features]codex_hooks = trueIf you already have a [features] table, add codex_hooks = true under it.
- Open a Codex pane in tmux and focus it.
- Press
prefix + eto toggle the sidebar. A yellowⓘbadge appears in the top row when required hooks are missing. - Click
ⓘ, then click[copy]next tocodexin the Notices popup. - Switch back to the Codex pane and paste. Codex runs
tmux-agent-sidebar setup codexand merges the hooks into~/.codex/hooks.json. - Restart Codex after changing
config.tomlso the feature flag takes effect.