Supervisor
Also known as: manager agent, agents as tools, subagents
- Who decides
- A manager agent
- Shape
- Hub
Intent
Put one agent between the user and a small team of specialists, and let it pick, step after step, which specialist acts next, or decide to reply or stop. Each worker does its part and control always comes back to the supervisor, which then decides again.
About the name. “Supervisor” and “orchestrator” are often used for the same thing. On this site, a supervisor routes each next step to one worker from a fixed roster and gets control back, while an orchestrator invents a batch of subtasks at run time and merges the results.
Problem
You are building the support assistant for an online electronics store. It covers orders and shipping, refunds, the product catalog and store policies, and each domain has its own API tools and its own rules. A customer writes: “My last order arrived broken. Refund it to my card and tell me whether the newer model is in stock.”
That message needs the orders tools, then the refund tools, then the catalog, with the order number carried from one step to the next. The two obvious designs both break:
- One agent with every tool picks the wrong one. With two domains it works. With six, the prompt carries over 100 tool schemas and six sets of policies, and the model calls the wrong tool or applies the shipping rules to a refund.
- A one-shot router handles only the first part. A router classifies the message as “orders” and sends it to the orders specialist. Nobody then issues the refund or checks the stock, because a router never gets control back.
What is missing is one place that keeps the whole request in view, sends each part to the right specialist and checks what comes back.
Solution
Give a supervisor the roster of workers and the rules, but no business tools. On every hop it reads the conversation and the results gathered so far, and makes exactly one decision: call a worker with an instruction, reply to the user, or finish. The worker runs its own tool loop and returns its result, and the supervisor decides again.
On the customer’s message, a turn runs like this:
- Receive. The message goes to the supervisor and only to it, so input checks sit in one place.
- Decide. The supervisor sees
orders_agent,refunds_agent,catalog_agentandfaq_agent, and callsorders_agent: “Find customer C-77’s most recent order and whether it is eligible for a damage refund.” - Work. The orders agent runs its own ReAct loop with the order tools and returns order 8812, model X200, eligible for a refund.
- Decide again. Control is back with the supervisor. The refund and the stock check do not depend on each other, so it calls
refunds_agent(“Refund order 8812 in full to the original card, reason: arrived damaged”) andcatalog_agent(“Is the successor of model X200 in stock, and at what price?”) in the same hop. - Check. Both results come back: refund R-551 issued, 3 to 5 days; model X300 in stock at $249. The supervisor checks that every part of the request is covered.
- Respond. It writes one reply to the customer. On the next message the loop starts again at the supervisor, which still holds the whole conversation.
That turn took three supervisor calls and three worker runs, but no agent ever held the tools of every domain. The developer fixes the roster, each worker’s tools and what a worker sees; the supervisor decides which worker acts next and when the turn is over.
The nearest pattern, Orchestrator–Workers, plans a batch of subtasks and merges them once; a supervisor routes one step at a time to named specialists and decides again after each result.
Structure
Hover over a number, or tap it, to read what it is.
- User. Talks only to the supervisor, on every turn. One user turn can take several hops.
- Supervisor. An agent in a loop, with the roster and the rules in its prompt and usually no domain tools. It writes each worker’s instruction, checks each result and decides when the turn is done.
- Delegation. How a decision becomes a worker run, most often a tool call whose body runs the worker. The developer chooses what the worker receives: only the instruction, or part of the history.
- Workers. A fixed, named roster. Each has a description the supervisor routes on, its own prompt and tools, and usually its own tool loop.
- Result. Control goes back to the supervisor whatever happens. What it sees is chosen by the developer: the worker’s last message, a structured object or a reference to a stored file.
- Rules and limits. Code outside the model that caps hops per turn, tokens and time, and blocks repeated identical calls.
Use it when / Avoid it when
Use it when
- Several domains would overload one agent. Many tools or conflicting policies make a single agent pick wrong tools; each worker sees only its own.
- Requests often need several specialists in turn. The supervisor carries IDs from one worker to the next and checks each result before moving on.
- You want one voice to the user. Guardrails, tone and the final answer live in one place.
- Different teams own different specialists. Each worker can be built, tested and replaced without touching the others.
Avoid it when
- One agent with a moderate set of tools works. Use a single ReAct agent, which costs fewer calls.
- Each request belongs to exactly one domain. Use Routing, which classifies once and hands over.
- The specialist should own the conversation once engaged. Use Swarm / Handoffs, which has no relay layer.
- Latency budgets are tight. Use a single agent: in AWS’s study of its own supervisor design, turns took about two to three times as long as with one agent.
How it fails
- Telephone game
-
The supervisor rewrites worker answers in its own words and drops details or changes numbers on the way to the user.
Mitigation: forward a worker’s customer-ready text unchanged, and have workers return structured results with IDs.
- Worker lacks context
-
A worker receives “refund the order” without the order number, and fails or guesses.
Mitigation: require every instruction to be self-contained, with a typed input schema on each worker tool.
- Mis-routing
-
Vague or overlapping worker descriptions send requests to the wrong specialist, which answers with a failure or “not my job”.
Mitigation: write precise descriptions that say what each worker cannot do, and test routing on real messages.
- Ping-pong
-
The supervisor calls the same worker again and again, or alternates between two, and the turn never ends.
Mitigation: cap hops per turn in code, block repeated identical calls, and hand over to a person when the cap is hit.
Related patterns
- Routing: classifies once and never gets control back; a supervisor is a router that runs on every hop and checks results.
- Orchestrator–Workers: the same hub shape, but the lead invents a batch of subtasks and merges them instead of routing each next step.
- Swarm / Handoffs: the active agent hands control to a peer, which then answers the user itself; there is no center and no relay.
- Hierarchical teams: supervisors whose workers are supervisors, the next step when one roster grows too large.
Try it
Describe your team and its workers. The generator writes a system prompt for the supervisor, plus a block to add to each worker’s prompt so results come back in a shape the supervisor can check.
Open the generator on this pattern
Further reading
- Benchmarking multi-agent architectures (LangChain, 2025): supervisor against swarm and a single agent, and the telephone-game fixes.
- Towards Effective GenAI Multi-Agent Collaboration (Shu et al., AWS, 2024): the supervisor design behind a production multi-agent system, with its costs.
- AI agent orchestration patterns (Microsoft, 2026): why a single agent is often the right default.