Orchestrator workers
Description
A central orchestrator decomposes a complex task into discrete sub-tasks, dispatches each to a specialized worker (or worker invocation), and aggregates the results into a coherent final output. The structural trifecta is decomposition + delegation + aggregation — each move depends on the others; missing any one breaks the pattern (decomposition without delegation is just planning; delegation without aggregation produces orphan work; aggregation without decomposition is a no-op). The diagnostic question — “can the task be decomposed into independent sub-tasks the orchestrator can compose back together?” — is what makes orchestrator-workers a fit. Tasks with strong sequential dependencies (B requires A’s output) prefer prompt-chaining; tasks with parallelizable sub-tasks prefer orchestrator-workers; tasks where the sub-tasks interact in complex ways prefer mediator (or a richer coordination pattern).Triggers
User-initiated: User describes delegation, “split this up,” fan-out, parallel workers, or lead/follower agent architectures. Vocabulary cues: “orchestrator,” “workers,” “delegation,” “fan-out,” “decompose and dispatch.” Agent-initiated: Agent notices a complex task with parallelizable sub-tasks and considers whether decomposition + delegation would compound throughput. Candidate inference: “can this be decomposed into N independent sub-tasks; would parallel workers help?” Situation-shape signals: Tasks where one agent is doing too much sequentially. Parallelizable workloads. Architectures explicitly designating “lead” vs “subagent” roles. Complex queries that decompose into sub-queries.Exclusions
- Sequential-dependent tasks — when B requires A’s output, parallel workers can’t help; prompt-chaining or other sequential patterns fit better.
- Trivial tasks where decomposition overhead exceeds the work — orchestration adds coordination cost; pay it only when the work is non-trivial.
- Coupled-sub-task workloads — when sub-tasks interact in complex ways (need to share state, coordinate at boundaries), the simple decompose-dispatch-aggregate shape doesn’t fit; need richer coordination (mediator, blackboard pattern).
- Single-worker contexts — by definition the pattern requires multiple workers; one-shot tasks don’t fit.
Structure
Relationships
- mediator — contrast: mediator coordinates peer-to-peer; orchestrator commands hierarchically.
- multi-channel-ingest — workers’ results converge like multi-channel ingest; the aggregation point structurally identical.
- uniformity-dividend — uniform-interface workers amortize coordination cost.
- context-asymmetry — orchestrator and workers operate at deliberately different grains; the asymmetry is the design’s productive feature.
- doctrine — the orchestrator’s decomposition strategy is a doctrine; without one, the orchestrator drifts into ad-hoc dispatch.
Examples
Anthropic engineering blog, "Building Effective Agents" (2024) — orchestrator-workers pattern; broader: distributed-systems coordination literature; software engineering: ManageR pattern · computer-science
Anthropic engineering blog, "Building Effective Agents" (2024) — orchestrator-workers pattern; broader: distributed-systems coordination literature; software engineering: ManageR pattern · computer-science
Conductor and orchestra · performing-arts
Conductor and orchestra · performing-arts
Brigade system in restaurant kitchens (Escoffier, late 1800s) — pre-software canonical case. · family-and-consumer-science
Brigade system in restaurant kitchens (Escoffier, late 1800s) — pre-software canonical case. · family-and-consumer-science
Dean & Ghemawat (2004), "MapReduce: Simplified Data Processing on Large Clusters" — distributed-systems articulation. · computer-science
Dean & Ghemawat (2004), "MapReduce: Simplified Data Processing on Large Clusters" — distributed-systems articulation. · computer-science
MapReduce architectures · computer-science
MapReduce architectures · computer-science
Project manager and team · business
Project manager and team · business
Restaurant kitchen brigade · family-and-consumer-science
Restaurant kitchen brigade · family-and-consumer-science