Skip to content

Codex CLI

Vendor: OpenAI | Homepage: https://developers.openai.com/codex/ | CLI Command: codex | Version Detection: codex --version

ComponentSupport LevelNotes
SkillsNative
MCP ServersNative
LSP ServersNot Supported
HooksNativeMinimal — notify event only for agent-turn-complete
AgentsExperimental
CommandsNativeVia skills system
InstructionsNative
ComponentScopePath
Skillsuser~/.agents/skills/{name}/SKILL.md
Skillsproject.agents/skills/{name}/SKILL.md
Agentsuser~/.agents/{name}.md
Agentsproject.agents/{name}.md
Commandsuser~/.agents/skills/{name}/SKILL.md
Commandsproject.agents/skills/{name}/SKILL.md
LSP ServersNot supported
Instructionsuser~/.agents/AGENTS.md
InstructionsprojectAGENTS.md
ComponentScopeFileFormatKey
Hooksuser~/.codex/config.tomltomlhooks
Hooksprojectcodex.tomltomlhooks
MCP Serversuser~/.codex/config.tomltomlmcp_servers
MCP Serversprojectcodex.tomltomlmcp_servers
PropertyValue
FilenameAGENTS.md
Content Formatmarkdown
ScopePath
user~/.agents/AGENTS.md
projectAGENTS.md

Scatter — components installed to individual paths defined in Component Paths.

Canonical EventHost Event
notificationnotify
  • agent-turn-complete — Fires when the agent completes a turn, used with notify.

command

PropertyValue
Supportedtrue
Transportsstdio
Env PrefixNone
ScopePath
user~/.codex/config.toml
projectcodex.toml
PropertyValue
Default~/.codex
Env OverrideNone

Comprehensive hook system with 5 lifecycle events: PreToolUse, PostToolUse, SessionStop, UserPromptSubmit, AfterAgent

Planned changes
{
"component_support": {
"hooks": {
"level": "native",
"notes": "5 lifecycle events"
}
},
"hook_events": {
"canonical_map": {
"pre-tool-use": "PreToolUse",
"post-tool-use": "PostToolUse",
"session-end": "SessionStop",
"user-prompt-submit": "UserPromptSubmit",
"notification": "notify"
},
"host_specific_events": [
{
"name": "AfterAgent",
"description": "Fires after agent completes processing."
}
],
"execution_models": [
"command"
]
}
}