AI agent orchestration patterns and the job each one fits

AI agent orchestration comes in four patterns: a router, a pipeline, a supervisor and a swarm. Start with a router, use a pipeline when the steps are fixed, promote a step to a supervisor when its failures need a decision, and keep swarms for exploration. Most teams asking about multi-agent systems have a job that is two or three model calls from done, and they reach for a swarm before they have tried a router.
Key takeaways: a router is one classification plus one handler and is enough more often than teams expect; a pipeline fits when the steps are known; a supervisor is for a step that can fail in a way someone must decide on; a swarm is for exploration and rarely belongs in production.
What are the four AI agent orchestration patterns?
Each pattern answers two questions: who decides what happens next, and how many model calls one task takes.
- A router classifies the input once, then hands it to one of several narrow handlers.
- A pipeline runs fixed steps in order, each feeding the next.
- A supervisor delegates to workers, evaluates their output, and decides whether to accept, retry or escalate.
- A swarm lets peers coordinate with each other, with no single authority.

These map closely onto the workflows Anthropic describes in Building effective agents: routing, prompt chaining, orchestrator-workers and evaluator-optimizer. Its advice matches ours: start with the simplest thing that works.
Router, the cheapest pattern and right more often than you expect
A router is two calls. One cheap classification reads the input and labels the intent, then one handler with a narrow prompt and toolset does the work for that label.

Teams underrate it. A single general prompt handling five intents degrades, and the team concludes the fix is five agents. The cheaper fix is one classifier plus five narrow prompts. You keep a small model on classification and spend the expensive model only on the handler that needs it. You can test the classifier against a labeled set, and a wrong label shows up as one cell in a confusion matrix instead of a mystery.
Misclassification is the failure mode, and the fix is boring: route anything below a confidence threshold to a general handler or a human.
Pipeline, when the steps are known
Use a pipeline when the steps are fixed and every input walks the same path. Extract structured fields from a support email, validate them against the order database, draft a reply, format it. Each step is one model call or one tool, and each output feeds the next input.
Testability is the reason to prefer it. You can test each step with its own fixtures, checkpoint between steps, and swap one step without touching the others. Latency is additive and predictable, and when something breaks, the failing step points at itself.
Errors compound, though. A wrong extraction in step one poisons every later step, and by step three you are polishing a wrong answer. The fix is a validation gate between steps. Add a "does this look right, retry if not" check, and your pipeline has become a supervisor.
Supervisor, when a step can fail and someone must decide
Use a supervisor when a step can fail in a way that needs a decision, beyond a plain retry. The supervisor hands work to workers, reads what comes back, and chooses to accept it, re-prompt with feedback, or escalate to a human.

This is the pattern for anything consequential. A support reply that goes out with the wrong refund amount costs you money and trust, so a supervisor checks the draft against policy and sends the uncertain ones to a review queue. Of the four patterns, only the supervisor builds the "who decides" question into the structure instead of hoping the model gets it right.
You pay for the check. A supervisor run is the supervisor call, the workers it delegates to and an evaluation pass, plus any retries, which makes it the most expensive of the patterns you should ship. Watch for retry loops, where a supervisor re-prompts the same worker three times because its feedback is too weak to change the output. Cap retries and escalate when the cap is hit.
Swarm, the pattern that rarely should ship
A swarm demos best and ships worst, for operational reasons. You cannot reproduce a swarm run reliably, so you cannot debug it the way you debug a pipeline or a supervisor. You cannot point at the peer that made the wrong call, because the wrong call came out of the interaction. Cost has no ceiling: peers keep talking until they converge, and nobody wrote down how many messages that takes.
The MAST study, "Why Do Multi-Agent LLM Systems Fail?", annotated more than 1,600 traces across seven multi-agent frameworks and found 14 failure modes grouped into three categories: system design issues, inter-agent misalignment and task verification. Inter-agent misalignment and task verification are the two categories a swarm gives you the least structure to prevent.
A swarm fits one narrow case, exploration. If you want many independent attempts at an open problem, the value lies in the diversity of those attempts, and a wrong answer costs a re-run instead of a customer-facing error, a swarm can earn its keep. Even then, most of what people call a swarm is a parallel fan-out with a reduce step, which is a pipeline or a supervisor under another name.
Multi agent orchestration in LangGraph, CrewAI and the OpenAI Agents SDK
Each major framework makes some patterns cheaper to express than others.
- LangGraph expresses a router as a conditional edge, a pipeline as a chain of nodes, and a supervisor as a node that routes back to workers based on state.
- CrewAI ships two processes: sequential, which is a pipeline, and hierarchical, where a manager agent or manager LLM delegates tasks, which is a supervisor. Routers fit best in CrewAI Flows.
- The OpenAI Agents SDK documents agent orchestration two ways. Handoffs let a triage agent pass the conversation to a specialist, which is a router. Agents-as-tools keep a manager agent in control while it calls specialists, which is a supervisor.
Our AI agent frameworks comparison covers state, retries and approvals across all three, and the CrewAI vs LangGraph head-to-head shows one agent built in both.
Cost and latency per pattern
Cost and latency follow from how many calls each pattern makes.
| Pattern | Model calls per task | Latency | Cost | Failure mode |
|---|---|---|---|---|
| Router | 2 (classify + handle) | one round trip | lowest | misclassification |
| Pipeline | N steps | additive | additive per step | errors compound |
| Supervisor | supervisor + workers + eval | additive plus retries | highest of the shippable three | retry loops |
| Swarm | unbounded | unbounded | unbounded | non-reproducible |
The ratios matter more than absolute values, and the following numbers are illustrative, not measured. Suppose one task carries a 4k token working context. A router pays a cheap 500 token classification plus a 2k token handler, about 2.5k input across two calls. A three-step pipeline at 2k per step is 6k. A supervisor with three workers plus an evaluation pass lands at 8k to 12k before any retry. A swarm has no ceiling you wrote down. Routing costs well under half of a pipeline, and a supervisor can cost double a pipeline before it retries.
Latency compounds the same way, and a swarm answers whenever it stops.
How to pick an orchestration pattern from the product
Demos show swarms because swarms demo well. In production, AI agent orchestration mostly means routers, pipelines and the occasional supervisor. Work through these questions in order and stop at the first yes.
- Can one classification send each input to a single narrow handler? Use a router.
- Do all inputs walk the same fixed steps? Use a pipeline, with a validation gate after any step whose output later steps depend on.
- Can a step fail in a way that needs judgment, such as a wrong amount, a policy breach or a low-confidence answer? Promote that step to a supervisor, with a retry cap and a human escalation path.
- Does the product need many independent, disposable attempts at an open problem? Only then consider a swarm, and budget for the cost ceiling you will have to impose yourself.

If you cannot name which step fails and who decides, you have a design problem, and adding orchestration will not fix it. Our guide on when to use multi-agent systems covers that earlier question, and the Agentic AI page describes how we approach the design work.
Next step
Take your current agent, count the model calls per task, and label each step with the pattern it follows. If you find a swarm where a router would do, collapse it and measure the difference. When an existing system keeps failing on the same step, our AI development team starts with a diagnosis, or you can pick the orchestration pattern your product needs with the Stack Picker.
Written by
Tayyab Hanif
Leading client builds since 2019Founder & CEO
Founder & CEO of Robust Devs. Leads delivery and works directly with every client, across AI marketing, healthtech, and fintech builds, and has done since 2019.
More notes from production
Tactical writing for founders building AI products. Browse the archive for more field notes like this one.
Browse all articles
Put these notes to work.
If you are building in this space, schedule your call or get in touch.