Skip to main content
Category
Agent
Severity
CODEX:S:0001

Override Read Order

Codex discovers instruction files in a specific order: AGENTS.override.md first, then AGENTS.md, then fallback filenames — walking from the project root to the current working directory. Document this discovery chain so users understand which file takes precedence and where to put overrides.

Mediumcodexstructure
CODEX:S:0002

Skill OpenAI YAML

Codex skill directories SHOULD contain an agents/openai.yaml file with display_name, icon, and invocation policy fields. This metadata controls how the skill appears in the Codex UI and whether it can be triggered implicitly.

Lowcodexstructure
CODEX:S:0005

Hook Command Has Field

Hook handlers with "type": "command" in .codex/hooks.json MUST include a "command" field containing the shell command to execute. Without it, Codex has no command to run and the hook fails silently.

Highcodexstructure
CODEX:S:0004

Hook Handler Has Type

Each hook handler object in .codex/hooks.json MUST contain a "type" field set to command. Without a type field, Codex cannot dispatch the handler and the hook silently does nothing.

Highcodexstructure
CODEX:S:0003

Hook Valid Event Types

Hook event keys in .codex/hooks.json MUST use recognized Codex event type names (6 events). Unrecognized event names are silently ignored, so a typo means the hook never fires.

Highcodexstructure