All Articles

Router, Supervisor, Swarm: How Multi-Agent Patterns Fail and How to Bound Them

Before choosing a multi-agent pattern, check that you need more than one agent. Anthropic reported that its multi-agent research system used about 15× the tokens of a chat interaction, against roughly 4× for a single agent. It performed better on broad research tasks that split naturally into independent parallel threads, and they noted it suits tasks with a lot of parallelisable work. Those ratios describe that research system, not a general benchmark. Compare your proposed design with one agent or a workflow on the same tasks.

When you do need several agents, three patterns cover most designs. Each fails in a characteristic way, and each has limits that belong in code from the start.

Router

A single classification step sends each request to one specialised agent: billing, technical support, account management. The specialists don’t talk to each other.

How it fails: confident misrouting. A request that spans two domains, or doesn’t fit any, goes to whichever specialist scored highest. That agent then tries to handle something outside its tools and instructions. Because each specialist is usually competent at something, the failure looks like a bad answer rather than an error.

Bounds:

  • Give the router an explicit unclear or multiple label, routed to a person or a general agent, and track how often it’s used.
  • Let specialists hand a request back (“not billing, return to router”) exactly once. Two hand-backs means escalate to a person, not another round.
  • Evaluate the router on its own with a labelled set of real requests, including the awkward ones. It’s the cheapest component to test and the one that affects everything downstream.

Supervisor (orchestrator–workers)

A supervisor agent breaks the task into subtasks, delegates them to worker agents (often in parallel), and combines the results. This is the shape of most research and coding multi-agent systems.

How it fails: runaway delegation and lossy handoffs. The supervisor spawns more workers than the task needs, or workers spawn their own workers, and cost multiplies. Or the supervisor’s description of a subtask leaves out a constraint, so the worker does the wrong thing well. Anthropic’s write-up describes early versions spawning 50 subagents for simple queries and duplicating work between them.

Bounds:

  • Cap fan-out and depth in code. A maximum number of workers per task, and workers that cannot spawn workers unless depth is explicitly designed. Enforce it with permissions: the worker’s role doesn’t include the invoke action the supervisor uses.
  • Use a structured delegation format: objective, constraints, output format, tools allowed, budget. Free-text delegation is where constraints go missing.
  • Give each worker its own budget, and the supervisor a total that includes its workers.
  • Have workers return results, not raw transcripts. The supervisor’s context should grow by the answer, not by everything the worker read.

Swarm (peer handoff)

Agents pass control directly to each other with no central coordinator. The agent currently handling the conversation decides who should take it next.

How it fails: loops and lost ownership. Agent A hands to B because it’s “B’s area”, B hands back to A for the same reason, and the loop continues until something times out. Or after five handoffs nobody holds the original goal, and the conversation drifts.

Bounds:

  • A hop counter in the conversation state, with a hard limit. At the limit, escalate to a person.
  • No immediate hand-back. An agent can’t hand to the agent that just handed to it without a stated new reason, which is logged.
  • Pinned task state that every agent reads and none can drop: the original request, constraints, and progress so far.

Swarms are the hardest of the three to reason about and to test. Reach for them when a supervisor genuinely becomes a bottleneck, not as a default.

Limits every pattern needs

Whatever the pattern, put these in the harness, not in prompts:

Limit Why
Max agents per request (including nested) Stops runaway fan-out
Max handoffs or hops Stops loops
Token and spend budget per request, shared across agents Keeps cost bounded however the work is split
Wall-clock timeout per request Bounds staleness and user wait
Per-agent permissions scoped to the assigned task A compromised or confused worker can’t do the supervisor’s job

The last row is easy to skip. If workers run with the supervisor’s role, then a prompt injection in a document one worker reads has the supervisor’s full permissions. Give each agent type its own identity and only the permissions its assigned task requires. A supervisor may need delegation permission while a worker needs a specialized read permission; the scopes need not form a strict subset.

Tracing across agents

Multi-agent failures are almost impossible to debug without a trace connecting everything done for one request. Propagate a correlation ID through every handoff and delegation, and record parent–child relationships between agent runs. This post shows how with OpenTelemetry.

Where this stops

These bounds limit some expensive failure modes. Shared budgets need atomic reservations across workers, including in-flight calls; checking an accumulated total after each call can overshoot. They don’t make them better than a single agent, which you still have to demonstrate by running both on the same eval set and comparing quality, cost and latency. If the single agent is close, choose it. It’s one context to debug instead of many.