Specialized agents under Codex
Codex supports sub-agents (experimental as of early 2026): named, scoped agents the parent Codex delegates to. The shape mirrors Claude's: a YAML-frontmatter markdown file declaring the sub-agent's role, tool allowlist, and system prompt. Lives in .codex/agents/ (project) or ~/.codex/agents/ (user).
Enable via features.sub_agents = true in config.toml. The parent calls sub-agents with natural-language delegation: "Use the security-reviewer to audit src/auth.ts."