Contents

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:

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.

A customer request that spans three domains goes either to one agent holding every tool, which picks wrong tools, or to a one-shot router, which handles only the first part.Customer requestorders + refund + stockOption AOne agent, all tools100+ tools, 6 policy setsWrong tool pickedpolicies mixed upOption BRouter, one shotsends it to orders onlyRefund and stocknever handled
Scroll to see all of it.
One agent drowns in tools and mixes up policies; a router sends the request to one specialist and never sees it again.

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:

  1. Receive. The message goes to the supervisor and only to it, so input checks sit in one place.
  2. Decide. The supervisor sees orders_agent, refunds_agent, catalog_agent and faq_agent, and calls orders_agent: “Find customer C-77’s most recent order and whether it is eligible for a damage refund.”
  3. Work. The orders agent runs its own ReAct loop with the order tools and returns order 8812, model X200, eligible for a refund.
  4. 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”) and catalog_agent (“Is the successor of model X200 in stock, and at what price?”) in the same hop.
  5. 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.
  6. 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

The user talks only to the supervisor. The supervisor calls one of three workers, each worker returns its result to the supervisor, and hard limits bound the loop.requestreplyUserSupervisorcall / respond / finishdecides every hopRules and limitsmax hops, budgetOrders agentown prompt, own toolsRefunds agentown prompt, own toolsCatalog agentown prompt, own toolsWorkers never talk to each other or to the user.123456
Scroll to see all of it.

Hover over a number, or tap it, to read what it is.

Solid arrows carry a request, accent arrows are delegations (one hop each), and dashed arrows carry results and the reply. Every worker result goes back to the supervisor, never to another worker.
  1. User. Talks only to the supervisor, on every turn. One user turn can take several hops.
  2. 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.
  3. 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.
  4. Workers. A fixed, named roster. Each has a description the supervisor routes on, its own prompt and tools, and usually its own tool loop.
  5. 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.
  6. 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

Avoid it when

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

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.

Further reading