Orchestrating Agent Teams: Supervisor, Swarm and Hierarchical Patterns
One agent cannot do everything well. Supervisor, swarm and hierarchical patterns split work across specialists. Here is how each works and when to choose it.
By Galactic News Editorial · Published 2026-11-24T07:55:07+00:00 · Updated 2026-11-24T07:55:07+00:00
Orchestrating Agent Teams: Supervisor, Swarm and Hierarchical Patterns
One agent can search the web, run code, or write a draft. It cannot do all three well at once. Orchestrating agent teams solves this by splitting work across specialists and defining how they coordinate. Three patterns dominate: supervisor, swarm, and hierarchical. Each one fits a different kind of problem.
This comparison explains how each pattern works, shows the LangGraph building blocks, and gives a clear rule for choosing between them.
The Three Patterns at a Glance
| Pattern | Topology | Control flow | Best for |
|---|---|---|---|
| Supervisor | Star: one central agent, many workers | Central coordinator routes to workers; workers report back | Structured workflows with clear delegation |
| Swarm | Peer-to-peer handoffs | Any agent hands off to any other agent directly | Dynamic routing, customer service triage |
| Hierarchical | Tree: supervisors managing supervisors | Top supervisor routes to team leads, who route to workers | Large systems with domain-separated teams |
The three patterns also differ in cost. Supervisor calls add one routing decision per step. Swarm handoffs can multiply calls when agents bounce a task between them. Hierarchical adds a routing decision at every level of the tree. Measure tokens per completed task, not per agent call. That is the number that decides whether a team is worth its coordination overhead.
Supervisor Pattern
The supervisor is the workhorse. A single central agent receives the request, decides which worker should handle it, dispatches the task, and collects the result. The supervisor is itself a language model. It reasons about which agent to call and what to pass.
In LangGraph, the langgraph-supervisor-py package wraps this pattern in one call. create_supervisor takes a list of worker agents and a model, and it auto-generates transfer_to_* handoff tools for each worker. Each worker is usually a create_react_agent instance with its own tools and prompt. Workers run in isolation and return their result to the supervisor.
Supervisor fits task pipelines. A research team is the classic example. The supervisor sends a question to a researcher, passes the findings to a writer, and sends the draft to a verifier. Each step is explicit. Debugging is straightforward because every routing decision passes through one node.
The weakness is the bottleneck. Every decision flows through the supervisor. If the supervisor misroutes, the whole run suffers. Long tasks also accumulate context in the supervisor, which raises token cost.
Swarm Pattern
Swarm removes the centre. Agents hand off to each other peer to peer, with no supervisor deciding. A research agent that discovers a billing question hands control directly to a billing specialist. The specialist may hand off again, or finish the task.
LangGraph provides this through langgraph-swarm-py and the create_swarm helper. Each agent is a create_react_agent. Handoffs happen through function calls or Command objects. A sub-agent can hand control to another agent in the parent graph using Command.PARENT, which applies the routing update to the parent rather than the subgraph.
Swarm fits conversations that change direction mid-task. Customer service triage is the standard case. The agent who first hears the problem is rarely the one who solves it. Handoffs let the conversation move to the right specialist without returning to a central router each time.
The weakness is unpredictability. Without a central coordinator, routing depends on each agent's judgement. Loops are possible. Two agents can hand a task back and forth forever unless you add a step limit or a termination rule.
Hierarchical Pattern
Hierarchical is supervisor of supervisors. A top-level supervisor routes to department supervisors. Each department supervisor routes to its own workers. The pattern is recursive: create_supervisor can sit inside another create_supervisor, so a supervisor can manage other supervisors as if they were workers.
This fits large systems. A customer service department might have billing, technical, and dispute teams. The top supervisor classifies the request and sends it to the right team lead. The team lead manages its own specialists. Each level sees only the context it needs, which keeps prompts short and decisions focused.
The cost is complexity. More levels mean more routing decisions, more latency, and more places for errors to hide. State management gets harder too. Each agent keeps its own state through subgraph scoping, and the shared state schema must be designed carefully so results flow up the tree without collisions.
Orchestrating Agent Teams: How to Choose
Use this checklist before you build.
- Start with a single supervisor. If your task has clear steps and a small team, the supervisor pattern is enough. Add complexity only when you can point to a specific failure.
- Move to hierarchical when routing breaks. If the supervisor faces too many peer options and starts misrouting, split the team into departments with their own leads.
- Reach for swarm only with a concrete example. Choose swarm when a handoff genuinely cannot be decided until a specialist is mid-task. Customer triage is the usual case.
- Define the routing strategy first. Never build multi-agent systems without a clear rule for how agents are selected. Vague routing produces vague results.
- Isolate state per agent. Use subgraph scoping so each agent keeps its own state. Shared message lists work for brainstorming, not for production teams.
- Add a human checkpoint for risky actions. LangGraph supports human-in-the-loop interruption. Use it before agents send messages, spend money, or change data.
Common Mistakes
Three mistakes recur in multi-agent projects.
First, building a team when one agent would do. A single create_react_agent handles simple two or three tool tasks fine. Teams earn their cost only when specialists genuinely differ in tools, prompts, or knowledge.
Second, reusing the same stateful subgraph in parallel. Namespace conflicts follow. Give each parallel instance its own scope.
Third, skipping the termination rule. Every team needs a clear end condition: a final answer, a step limit, or a human decision. Without one, supervisor loops and swarm handoff cycles run until the token budget dies.
Bottom Line
Orchestrating agent teams supervisor swarm hierarchical is a choice of topology, not of fashion. Supervisor wins for structured pipelines. Swarm wins for conversations that change direction mid-task. Hierarchical wins for large systems with separate domains. Start with a supervisor, split into hierarchy only when routing fails, and use swarm only when a handoff must wait for a specialist's judgement. The simplest pattern that works is the right one.