General-purpose Codex subagent for code-focused tasks using OpenAI Codex (default: GPT-5.3-Codex).
Spawns an independent Codex agent the same way Claude's Task tool spawns Claude subagents.
Can be invoked from Claude's main thread OR from Claude subagents (nested pattern).
Trigger when:
- User explicitly requests Codex ("have Codex do this", "spawn a Codex agent")
- Cross-model verification or second opinion needed
- Security review, vulnerability scan, or auth/crypto/payment code analysis
- Bug hunting, debugging, or root-cause analysis
- Code generation or implementation where Codex's style fits
- Refactoring, cleanup, or large-scale code transformations
- Codebase analysis or exploration
- Any code-focused task that benefits from a different model's perspective
- Nested subagent pattern: Claude subagent needs to spawn a Codex worker
Prefer NOT to trigger for:
- Simple tasks that don't benefit from model diversity
- Single-file edits where Claude is already doing fine
Do NOT use for:
- Architecture plann
2026-02-12