Core Concepts
Agents
Focused subagents with narrow responsibilities.
Subagents live in .codex/agents/*.toml and are intentionally narrow so routing stays predictable.
Codex Kit keeps responsibilities separate: agents own execution roles, skills own knowledge, and workflows own process.
Agent Design Principles
- Use focused subagents for bounded work instead of one broad parallel swarm.
- Prefer the narrowest agent that still matches the task.
- Pass skills explicitly when they matter instead of assuming the agent name is enough.
- Avoid parallelism when the result is needed immediately on the critical path.
Shipped Agent Roles
planner
Planning, sequencing, risks, and acceptance criteria.
explorer
Read-only repository mapping and dependency tracing.
implementer
Small, targeted code changes once the task is clear.
frontend-specialist
UI, component architecture, accessibility, and frontend behavior.
backend-specialist
APIs, validation, data access, and server-side logic.
database-architect
Schemas, migrations, indexes, queries, and data integrity.
mobile-developer
Mobile UX, platform conventions, and runtime performance.
debugger
Reproduction, evidence gathering, and root-cause isolation.
reviewer
Correctness, security, regressions, and missing tests.
test-writer
Focused tests that prove intended behavior.
devops-engineer
CI, environments, deployments, pipelines, and operations.
docs-researcher
Read-only verification of framework and API behavior.
documentation-writer
READMEs, setup guides, handoff notes, and technical docs.
performance-optimizer
Profiling, bottleneck analysis, bundle size, and runtime speed.
security-auditor
Threat review, auth flows, validation, and attack surface.
seo-specialist
SEO, GEO, metadata, content structure, and citation readiness.
Common Pairings
plannerpairs well withplanning,plan-writing, andarchitecture.debuggerpairs well withdebugging,systematic-debugging, andtesting-patterns.reviewerpairs well withcode-review,code-review-checklist, andrelease-readiness.test-writerpairs well withtesting-patterns,tdd-workflow, andwebapp-testing.