# codex · Specialist definition

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [codex](https://ai-agents-review.com/runtime/codex.md)
- Column: [Specialist definition](https://ai-agents-review.com/column/specialist-definition.md) (Specialist collaboration)
- Mark: 4 s
- Default deployment: 4
- Best supported configuration: 4
- Page: https://ai-agents-review.com/cell/codex/specialist-definition

## Rationale

Roles set prompt/model and can only disable tools; approval, permission profile copied from parent turn (inherit-only); no widening path

## Rubric criteria for this column

- 0: No subagents or specialists
- 1: Subagents exist only as example code, or as ad hoc spawns with task text and no definition
- 2: Built-in subagents configurable by prompt or model, but tool and permission scope cannot be set per specialist
- 3: Declarative definitions (file or config) set prompt, model **and** tool scope per specialist
- 4: Level 3, plus an enforced rule that a child cannot exceed the parent's authority (permissions/sandbox intersect or inherit-only), with no default path that widens it

## Review finding

Built in (v1 on by default; v2 optional `multi_agent_v2`). Roles `[agents.<name>]` (+ optional file) set prompt, model, effort, tier. Roles can only *disable* some tools and skills. Approval policy, cwd and permission profile are copied from the parent turn [C1][C2][C3][C5][C6].

## Evidence cited by the mark

- [C1] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/config/src/config_toml.rs#L805-L856 — `AgentsToml` (enabled, max threads, max_depth, default_subagent_model, roles) and `AgentRoleToml` schema — [S]
- [C2] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/core/src/agent/role.rs#L33-L125 — Role overrides; features can be overridden only to `false` (shell, apps, plugins, memory, request-permissions); skills only disabled — [S]
- [C5] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/core/src/agent/child_config.rs#L216-L239 — `apply_spawn_agent_runtime_overrides` copies parent turn's approval policy, reviewer, cwd, permission profile — [S]

## Evidence also cited by the review finding

- [C3] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/core/src/agent/role.rs#L319-L360 — Built-in roles `default`, `explorer`, `worker` — [S]
- [C6] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/features/src/lib.rs#L1785-L1794 — `multi_agent` (v1) Deprecated stage but default_enabled true; `multi_agent_v2` Stable, default off — [S]

## Grading record

- Grader A (default / best): 4 / 4
- Grader B (default / best): 4 / 4
