What this thread does
Do first: Ask Codex to delegate independent parts explicitly, specify each task and return format, and tell the main agent to wait for all results before combining them.
Short answer
Current local releases enable subagent workflows by default. Delegation starts after your direct request or applicable project/skill instructions. Use read-heavy work first; parallel edits require file ownership to avoid conflicts.
What to do
A useful request: assign separate agents to security risks, missing checks and maintainability; wait for every agent; return findings grouped by topic with file references. This describes a request to make in your own session, not a run performed here.
| Control | Value / action |
|---|---|
| CLI thread inspection | /subagents switches between active threads; the main thread collects results |
| App / IDE inspection | Open the subagent thread from main-thread activity; where available, expand the IDE background-agent panel for status or stopping agents |
| Steering / stopping | Ask Codex to steer a running agent, stop it or close completed threads |
| Enable tools | [agents] in config.toml: enabled = true by default; false disables multi-agent tools |
| Concurrent thread limit | agents.max_concurrent_threads_per_session, number, excludes primary; unset lets Codex choose the default; old agents.max_threads remains a legacy alias |
| Spawn defaults | agents.default_subagent_model, agents.default_subagent_reasoning_effort; explicit spawn values override these |
| Interruption message | agents.interrupt_message = true by default; false omits the model-visible interruption message |
| Built-in roles | default general fallback; worker implementation/fixes; explorer read-heavy exploration; a custom agent of the same name takes precedence |
| Project definitions | Standalone TOML files under .codex/agents/; one custom agent per file |
| Required custom-agent fields | name, description, developer_instructions; identity comes from name, not filename |
| Custom model controls | model, model_reasoning_effort, model_reasoning_summary, model_verbosity |
For models, use gpt-6.1-sol for demanding tasks or gpt-6-luna for focused scans. Effort labels documented here are low, medium, high, xhigh, max, ultra, only when supported by the model. Start Luna at high or Astra at low when explicitly configuring them.
Without a configured model or effort, agents inherit both from the parent. Before applying a custom file, resolution is explicit spawn value → agents default → parent. Selecting a model in a spawn request or agents default without an effort uses the selected model's default effort. Custom-file values win afterward; a file setting only model preserves the already resolved effort. Set its effort too when needed.
To reduce capabilities in a custom file, set supported keys to false: features.shell_tool, features.apps, features.plugins, features.memories, features.request_permissions_tool. Individual skills use skills.config; bundled skills use skills.bundled.enabled = false; skills.include_instructions = false omits the automatic skill-instructions block.
Set sandbox and approval controls on the parent before delegation. In interactive CLI, an approval can arrive from an inactive thread; press o to open its source thread. A non-interactive action needing new approval fails and reports back to the parent.
Limits and open questions
- Each agent spends its own model/tool tokens; parallel runs consume more than comparable single-agent runs.
- Custom instructions asking for read-only behavior do not create a separate read-only sandbox. Parent permissions, provider, MCP servers and service-tier preference remain in force; custom-file
sandbox_mode,approval_policy,model_provider,mcp_serversdo not replace them. - ChatGPT Work web has hosted execution: Subagents shows read-only Active/Done lists, not controls to steer or stop individual agents. Ultra can delegate proactively there; local Codex still follows direct requests or applicable instructions.
- The page gives no fixed numeric default concurrency limit.
Not for: Claude Code Markdown subagent definitions.
Sources
- Subagents, OpenAI.
- Markdown version, OpenAI.
Checked
2026-11-16; read Subagents and its Markdown version, including triggering, orchestration, thread controls, parent permissions, custom agents and global settings; no command was run.
Started from a post by @OpenAI, packaged by the editor. Original post