Repository navigation
Reusable multi-agent orchestration workflow #21998
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestplanIssues involving plan modeIssues involving plan modeskillsIssues related to skillsIssues related to skillssubagentIssues involving subagents or multi-agent featuresIssues involving subagents or multi-agent features
Description
Codex issue draft: reusable multi-agent orchestration workflow
Problem
Large coding tasks often need one strong planning agent and many cheaper execution
agents. Today the user must repeatedly explain the orchestration pattern:
- use the best available model for planning, issue decomposition, and integration;
- break work into zero-context packets that cheaper workers can execute safely;
- keep worker write scopes disjoint;
- route worker questions back to the orchestrator, not directly to the user;
- run validation waves before final handoff.
This is repetitive and easy to get wrong, especially when workers start with no
context.
Proposed Codex capability
Add a built-in skill or plugin workflow named multi-agent-orchestrator that
turns a user goal into an executable parallel work graph.
The orchestrator should:
- Inspect the repo and relevant
AGENTS.mdfiles before planning. - Produce a dependency graph of subtasks with explicit read/write ownership.
- Generate self-contained worker packets:
- objective;
- repo path;
- files/directories owned by the worker;
- forbidden files/directories;
- required commands and tests;
- local project instructions;
- default decisions;
- question policy;
- final response format.
- Spawn cheap worker agents for implementation, exploration, and validation.
- Use the strongest model for planning, resolving worker questions, and final
integration. - Escalate model quality only when a worker fails twice, produces conflicting
evidence, or hits a design decision not covered by the packet. - Keep the user out of the loop unless the orchestrator cannot answer a product
or risk decision from local context.
Codex-specific fit
This should map cleanly onto existing Codex concepts:
- Skills: package the reusable orchestration instructions.
- Plugins: distribute the skill plus optional helper scripts/templates.
AGENTS.md: inject repo-specific workflow and safety rules into packets.- Subagents: use
spawn_agent/worker roles for parallel tasks. - Plan mode: produce the work graph before execution when required.
- Thread goals: keep the orchestrator anchored to the overall objective.
Worker question policy
Worker agents should not ask the user directly. They should:
- Use the default in their task packet when safe.
- Return
QUESTION_FOR_ORCHESTRATORwith the exact missing decision when no
safe default exists. - Stop only for true blockers, not routine uncertainty.
The orchestrator decides whether the answer is discoverable locally, can be
defaulted, or must be asked of the user.
Acceptance criteria
- A user can invoke one reusable skill/command instead of pasting a long custom
prompt. - Codex creates a parallelizable plan with disjoint worker ownership.
- Workers receive enough context to start from zero context.
- The orchestrator integrates worker results and runs validation.
- The workflow supports cheap-worker execution with strong-model planning.
- The final response includes changed files, tests, blockers, and unresolved
risks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestplanIssues involving plan modeIssues involving plan modeskillsIssues related to skillsIssues related to skillssubagentIssues involving subagents or multi-agent featuresIssues involving subagents or multi-agent features
Activity
github-actions commentedon May 10, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
douglas commentedon May 10, 2026
Closing this after revisiting the scope. Codex already has the relevant subagent primitives; this is better handled as an application-level skill/plugin workflow for autoresearch orchestration rather than a new upstream core capability.