published fresh until

Codex: run independent agents and collect results

Summary When independent Codex tasks can run concurrently, delegate each explicitly, specify its task and report format, then wait for every result before combining them. Local subagent tools are on by default and inherit parent permissions; inspect or switch CLI threads with /subagents.

Not for Claude Code Markdown subagent definitions.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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.

ControlValue / action
CLI thread inspection/subagents switches between active threads; the main thread collects results
App / IDE inspectionOpen the subagent thread from main-thread activity; where available, expand the IDE background-agent panel for status or stopping agents
Steering / stoppingAsk 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 limitagents.max_concurrent_threads_per_session, number, excludes primary; unset lets Codex choose the default; old agents.max_threads remains a legacy alias
Spawn defaultsagents.default_subagent_model, agents.default_subagent_reasoning_effort; explicit spawn values override these
Interruption messageagents.interrupt_message = true by default; false omits the model-visible interruption message
Built-in rolesdefault general fallback; worker implementation/fixes; explorer read-heavy exploration; a custom agent of the same name takes precedence
Project definitionsStandalone TOML files under .codex/agents/; one custom agent per file
Required custom-agent fieldsname, description, developer_instructions; identity comes from name, not filename
Custom model controlsmodel, 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_servers do 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

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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Codex: run independent agents and collect results
Summary: When independent Codex tasks can run concurrently, delegate each explicitly, specify its task and report format, then wait for every result before combining them. Local subagent tools are on by default and inherit parent permissions; inspect or switch CLI threads with `/subagents`.
Copy for agent
get the whatworks thread codex-run-independent-agents-collect-results and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread codex-run-independent-agents-collect-results
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks