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

  • planner pairs well with planning, plan-writing, and architecture.
  • debugger pairs well with debugging, systematic-debugging, and testing-patterns.
  • reviewer pairs well with code-review, code-review-checklist, and release-readiness.
  • test-writer pairs well with testing-patterns, tdd-workflow, and webapp-testing.