Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Waves codex/Recommended-config
Reference · Waves codex

Recommended-config

Part of Waves codex. Install the skill and your agent reads this page when it needs the depth.

Recommended Codex Configuration

Use this as a starting point for the waves-codex workflow. Put shared defaults in ~/.codex/config.toml or repo-specific settings in .codex/config.toml for trusted projects.

Read First: Native Delegation on GPT-5.6 (config is optional now)

On GPT-5.6 Sol/Terra (the V2 multi-agent runtime), the primary steering surface is prompt and skill text, not config: delegation triggers on direct asks and "applicable AGENTS.md or skill instructions," and per-spawn model/effort routing is honored when explicitly requested the same way. Custom TOML role routing has been unreliable on V2 (roles resolving to null, model/sandbox pins ignored -- openai/codex #31814, #32587, #32782; per-spawn overrides restored in 0.145+ as explicit-only). Practical stance:

Default Manager/Worker Setup

# Manager default. gpt-5.6 is the alias for gpt-5.6-sol (flagship); route
# cheaper tiers (gpt-5.6-terra, gpt-5.6-luna) per worker role and scale
# depth with reasoning effort. Orchestration benefits from extra-high reasoning.
model = "gpt-5.6"
model_reasoning_effort = "xhigh"

[features]
# multi_agent enables the subagent collaboration tools. In current Codex it is
# Stable and defaults to true, so this line is optional -- keep it for clarity.
multi_agent = true

[agents]
# Current Codex default is 6 when unset. Keep it explicit for this workflow.
max_threads = 6

# Current default is 1: root can spawn direct children, children cannot recurse.
# This caps recursion only; manager-driven second/third waves at depth 1 are
# unaffected and encouraged (see SKILL "Step 4 - Second Waves").
max_depth = 1

# Default per-worker timeout for spawn_agents_on_csv jobs.
job_max_runtime_seconds = 1800

Recommended defaults (GPT-5.6 family, GA 2026-07-09; gpt-5.6 = Sol flagship, gpt-5.6-terra = balanced/cheaper, gpt-5.6-luna = fastest/cheapest):

Effort field names, ladder, and speed tier:

Optional Custom Agents

Codex supports standalone custom agent TOML files under ~/.codex/agents/ for personal agents or .codex/agents/ for project agents. Each file needs name, description, and developer_instructions. Optional fields such as model, model_reasoning_effort, sandbox_mode, mcp_servers, and skills.config inherit from the parent when omitted.

.codex/agents/parallel-explorer.toml

name = "parallel_explorer"
description = "Fast read-heavy explorer for bounded codebase, data, and log slices."
model = "gpt-5.6-terra"
model_reasoning_effort = "low"
sandbox_mode = "read-only"
nickname_candidates = ["Atlas", "Kepler", "Noether", "Turing", "Hopper", "Lovelace"]

developer_instructions = """
Stay in exploration mode. Own only the assigned slice.
Prefer rg, targeted file reads, schema inspection, and concise evidence.
Do not edit files.
Return the requested structured handoff with coverage, confidence, and concrete sources.
"""

.codex/agents/docs-researcher.toml

name = "docs_researcher"
description = "Documentation researcher that verifies APIs, versions, and current behavior through available docs/MCP/web tools."
model = "gpt-5.6-terra"
model_reasoning_effort = "medium"
sandbox_mode = "read-only"

developer_instructions = """
Verify current API and framework behavior from primary documentation when possible.
Include source URLs and call out uncertainty or date-sensitive details.
Do not edit files unless explicitly assigned.
Return the requested structured handoff with confidence labels.
"""

[mcp_servers.openaiDeveloperDocs]
url = "https://developers.openai.com/mcp"

.codex/agents/parallel-worker.toml

name = "parallel_worker"
description = "Implementation worker for one explicitly owned file or module slice."
model = "gpt-5.6"
model_reasoning_effort = "high"

developer_instructions = """
Own only the assigned files/modules.
You are not alone in the codebase: other workers may be active.
Do not revert changes you did not make. Keep unrelated files untouched.
Run focused verification for your slice and return the code/edit handoff.
"""

.codex/agents/reviewer.toml

name = "reviewer"
description = "Read-only reviewer for correctness, security, regressions, and missing tests."
model = "gpt-5.6"
model_reasoning_effort = "high"
sandbox_mode = "read-only"

developer_instructions = """
Review like an owner.
Prioritize correctness, security, behavioral regressions, and missing tests.
Lead with concrete findings and evidence.
Avoid style-only comments unless they hide a real bug.
Return the requested structured handoff.
"""

.codex/agents/verifier.toml

name = "verifier"
description = "Read-only verifier for checking claims against cited sources, commands, counts, or current docs."
model = "gpt-5.6"
model_reasoning_effort = "high"
sandbox_mode = "read-only"
nickname_candidates = ["Verifier", "Crosscheck", "Evidence"]

developer_instructions = """
Your job is verification, not generation.
Check only the assigned claims against the provided sources, commands, or docs.
Do not inspect the generator's reasoning unless explicitly asked.
Return supported, partly-supported, unsupported, or source-not-found per claim.
Quote or cite the exact evidence that settles each verdict.
If evidence is missing or ambiguous, say so and mark confidence low.
Do not edit files.
"""

Registering Custom Agents from Config

Standalone files in .codex/agents/ are the simplest convention. If you want a config file to declare roles explicitly, Codex's sample config also supports:

[agents]
max_threads = 6
max_depth = 1

[agents.parallel_explorer]
description = "Fast read-heavy explorer for bounded slices."
config_file = "./agents/parallel-explorer.toml"
nickname_candidates = ["Atlas", "Kepler", "Noether"]

[agents.reviewer]
description = "Find correctness, security, and test risks."
config_file = "./agents/reviewer.toml"
nickname_candidates = ["Ada", "Grace"]

[agents.verifier]
description = "Verify claims against cited evidence without seeing generator reasoning."
config_file = "./agents/verifier.toml"
nickname_candidates = ["Verifier", "Crosscheck"]

Paths in config_file are relative to the config.toml that defines them.

Verification Defaults

Recommended acceptance bars for this workflow:

Codex-native helpers:

codex exec Fleet Pattern

For scriptable parallel writes, create one git worktree per attempt/slice and run one codex exec per worktree:

git worktree add ../repo-auth-audit -b audit/auth
git worktree add ../repo-api-audit -b audit/api

codex exec --cd ../repo-auth-audit --sandbox workspace-write \
  --model gpt-5.6 -c 'model_reasoning_effort="high"' \
  "Audit and fix auth slice only. Return a code/edit handoff."

codex exec --cd ../repo-api-audit --sandbox workspace-write \
  --model gpt-5.6 -c 'model_reasoning_effort="high"' \
  "Audit and fix API slice only. Return a code/edit handoff."

Use --json for event streams and --output-schema when a script needs machine-readable results.

Skill Location Guidance

Current official Codex skill authoring locations:

Ray's local setup has previously used a ~/.codex/skills to $HOME/.agents symlink/plugin path, so ~/.codex/skills/<skill-name>/ may work on this machine. For a portable Codex-native skill, prefer $HOME/.agents/skills or repo .agents/skills.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.