Orchestrator-workers pattern (supervisor)
One model plans the task, hands parts of it to worker models or subagents, and combines their results.
The orchestrator-workers pattern has one model plan a task, hand parts of it to worker models or subagents, and combine their results. Agent frameworks often call it the supervisor pattern or hierarchical agents. It suits work whose parts you cannot list before you start.
Unlike a fixed parallel workflow (fan-out and fan-in), the orchestrator decides at run time how to split the work: which files to review, which sources to research. Workers get only their slice of context, which keeps them focused and lets cheaper models do routine parts, see model routing. The weak point is the merge: the orchestrator must check and reconcile results rather than paste them together. The split is the second weak point, because a vague task can turn into many workers doing overlapping work.
In Anthropic’s Building effective agents it is one of five workflow patterns, next to evaluator-optimizer. Built in your own code, it gives you control over limits, logging and retries. A dynamic workflow moves the plan into a generated script, and an agent team replaces short-lived workers with long-running peers. When the orchestrator writes the full plan first and then executes it step by step, the pattern is called plan-and-execute.
Sources
- Anthropic: Building effective AI agents anthropic.com
Related terms
- Multi-agent system (multi-agent orchestration): Several AI agents with separate roles and contexts working on one task, usually coordinated by a lead agent or a fixed workflow.
- Subagent: A separate agent run with its own fresh context, started by a main agent for one subtask.
- Agentic workflow (workflow vs agent): A process where your code fixes the steps and a model does some of them, as opposed to an agent that decides its own steps.
- Fan-out and fan-in (parallelization): Splitting work into parallel model calls or subagents (fan-out) and merging their results in one step (fan-in).
- Dynamic workflow: An orchestration script the agent writes at run time. A runtime executes it, starting many subagents in phases and combining their results in code.
- Agent team: A lead agent coordinating several long-running agent sessions that share a task list and message each other directly.
- Plan-and-execute: A planner model writes a step-by-step plan, executor models carry out the steps, and the planner revises the plan when a step fails.
- Cost cap: A hard spending limit enforced by your code, per user, per day or per month.
- Advisor model: A cheaper executor model does the work and consults a stronger advisor model at key moments, such as planning or a final review.
