Orchestrator-workers
Definition
A pattern where one model breaks a task into subtasks at run time, hands each to a worker model, and combines the results.
In more detail
Unlike a fixed chain, the orchestrator decides the subtasks based on the input. A coding agent changing several files, or a research agent that splits a question into searches, are common examples; the workers are often subagents with their own context windows.
The pattern pays off when subtasks are independent and can run in parallel, and it costs more tokens than a single agent. Write clear briefs for workers and ask for short, structured results, because the orchestrator only sees what they send back.
Related terms
Multi-agent system
An application in which several agents, often with different roles, tools or instructions, cooperate or hand work to each other.
Parallelisation (agent pattern)
A workflow pattern that runs several model calls at once, on parts or copies of one task, and combines their outputs in code.
Routing (agent pattern)
A workflow pattern where a first step classifies the input and sends it on to a specialised prompt, tool or model for that type.
Subagent
A separate agent instance with its own context window, launched by a main agent to handle a focused task and report back a short result.
Handoff (agents)
A transfer of control between agents: one agent passes the conversation and its history to another, which carries on with the user.
Read more about Orchestrator-workers
- Multi-agent systems: when one agent is not enough
Orchestrator-workers, subagents and handoffs compared on context, cost and failure modes.
- Multi-agent orchestration
Splitting work across subagents or cooperating agents with separate context.
- Workflows vs agents: start with the simplest thing that works
Most LLM features should be a fixed workflow, not an agent. How to tell which one you need, when an agent earns its cost, and the useful patterns in between.
- Subagent
A separate agent instance with its own context window, launched by a main agent to handle a focused task and report back a short result.