Codex subagents and custom agents
Create a Codex custom agent TOML file with name, description, developer_instructions and model settings, and learn what Codex agents inherit.
Create a Codex custom agent TOML file with name, description, developer_instructions and model settings, and learn what Codex agents inherit.
Personal ~/.codex/agents/*.toml, project .codex/agents/*.toml. One agent per file.
name, description, and developer_instructions are required.
Per current docs: parent permissions, provider, MCP, sandbox_mode, and approval_policy are inherited; agent files do not override them.
Allowed characters in name are not documented (unverified). This generator uses snake_case names to match examples.