Supervisor / Router
Orchestration · Topology
One coordinator routes work to specialists and merges results.
A hub worker classifies or decomposes incoming work, delegates to specialist workers, and synthesizes their outputs. Edges fan out from the supervisor and converge on a merge or final responder.
Pattern guide
ProblemMonolithic prompts hide routing logic and make it hard to swap specialists without rewriting the whole system.
When to use
- Tasks decompose into distinct specialist roles (research, code, review).
- You need a single owner for routing, retries, and final packaging.
- Specialists can run with different models or tool sets.
When not to use
- Every step must run in strict order with no branching.
- Routing is trivial enough for one worker with tools.
- Latency-sensitive paths where parallel fan-out is mandatory from the start.
Forces
- Clear ownership at the hub
- Low coupling between specialists
- Easy to add or replace a specialist node
Framework notes
- LangGraph: Supervisor node with conditional edges to worker subgraphs; merge via reduce or final LLM node.
- AutoGen: Group chat with a manager agent delegating to nested chats or registered agents.
- LangChain τ-bench: Maps to the supervisor / swarm routing benchmark topology.