short · 3 min
Orchestrator-workers
One LLM call splits a task into subtasks it picks at run time, worker calls do them, and the results are combined.
updated 29 Sept 2026
Draw this pattern on a whiteboard and it looks exactly like parallel calls: one input, several calls fanning out, the results coming back together. So why does it get its own name?
Because of one question: who wrote the list of subtasks?
With parallel calls, we did, in code. Every input gets the same ones, say "answer it" and "screen it for abuse". Here, a model writes the list, fresh for each input. Another input gets a different list, maybe a longer one. That one change is what this pattern is.
Watching one run
Someone asks a docs assistant, "How do I build a RAG chatbot?" Which concepts does the answer need? It depends on the question. One about testing needs different pieces than one about deployment.
- The orchestrator call reads the question and sends back a plan: a short list of subtasks, each with a description, in a fixed format our code can read.
- Our code parses the plan and calls a worker once per subtask. Each worker gets the original question as well as its own piece, so it knows what the piece is for.
- A last call reads what the workers wrote and puts it together.
The model decides what the subtasks are. Our code still decides how the work runs: plan once, fan out, combine once, stop. That's why it's one of the LLM workflows and not an agent, where the model would keep choosing its next move from what came back, for as many steps as it took. It's the workflow that sits closest to an agent, though.
When would we want this? When the split really depends on the input. Anthropic's examples are a coding tool that has to change several files (how many, and what changes in each, depends on the task) and a search that pulls from several sources. If every input splits the same way, plain parallel calls are cheaper and easier to test.
What can go wrong
The plan is the weak spot. If the orchestrator splits the job badly, every worker does the wrong job well, and the final answer looks fine. So it's worth testing the plans on their own, and logging the plan next to every answer. When an answer is bad, the plan is the first place to look.
The plan also has to parse, because it drives our code. A malformed list means missing work. A strict schema for the plan helps here (structured output).
And it costs one call per subtask plus one for the plan, with the model choosing how many. Capping the number of subtasks, in the prompt and in code, keeps that from running away. One suggestion that comes with Anthropic's version: a strong model to plan, cheaper ones to work.
That version, in their cookbook, is worth reading because it's honest about what it leaves out. Its class says it runs workers in parallel, but the code calls them one after another, and the notebook admits it. There's no combining step yet; it hands back the list of worker outputs. And an empty reply from a worker gets swapped for an error string, with no retry.
Now, what if the workers weren't single calls? If each worker ran its own loop with tools, we'd have a multi-agent system: the same shape with a lot more freedom, and the higher costs and piling-up mistakes that come with agents.
Further reading
- Building effective agents, Erik Schluntz and Barry Zhang (Anthropic), 2024. Where the pattern is named, and how it differs from parallel calls. Note the header saying the tooling has moved on since.
- Orchestrator-Workers Workflow, Anthropic cookbook, 2026. A short working version. The limitations section at the end is the most useful part.