AI agents
multi-agent systems
agent swarms
orchestrator
subagents
LLM engineering
Claude Code

Agent Swarms: When Multi-Agent AI Wins, and When It Backfires

By Job Fit Studio · · 8 min read

One AI agent against a swarm of them. The swarm won by 90%.

That's from Anthropic. A system where a lead agent (Claude Opus 4) handed work to subagents (Claude Sonnet 4) beat a single Claude Opus 4 agent by 90.2% on Anthropic's internal research eval.

So the answer is "always use more agents", right? Not quite. In a study of 180 agent setups, Google Research found that on tasks where every step depends on the one before, every multi-agent setup they tested did worse than a single agent, by 39% to 70%.

Same idea, opposite results. The difference is what you point the swarm at. This guide covers five rules for knowing when to use one.

In this guide

  1. The 5 rules at a glance
  2. Rule 1: Know the pattern
  3. Rule 2: Use it for wide, parallel work
  4. Rule 3: Skip it for chains of steps
  5. Rule 4: Always keep a lead agent
  6. Rule 5: Watch the bill
  7. A quick decision checklist
  8. The orchestrator prompt
  9. Sources

The 5 rules at a glance

#RuleWhyThe number
1Lead agent + subagentsSplit, fan out, merge. Each subagent gets a clean context3 to 5 subagents in parallel (Anthropic)
2Use it for wide, parallel workResearch, comparing sources, many tools+81% on a finance benchmark (Google)
3Skip it for chains of stepsCoordination breaks up the reasoning−39% to −70% on sequential planning (Google)
4Always keep a leadAgents working blind multiply mistakes17.2x error amplification vs 4.4x with an orchestrator (Google)
5Watch the billEvery agent reads and writes its own tokens~15x the tokens of a chat (Anthropic)

Rule 1: Know the pattern

When people say "agent swarm", they usually mean one of two things:

  • Independent agents: several agents work on the problem at the same time and don't talk to each other. You combine whatever they return.
  • Orchestrator and workers: one lead agent plans the work, writes a brief for each subagent, runs them in parallel, and merges the results.

The second one is what Anthropic built for Claude's Research feature, and it's the one that works best in the data below. It goes like this:

  1. Split. The lead agent reads the request and breaks it into parts that can run independently.
  2. Fan out. It spins up subagents in parallel. Anthropic's lead agent typically starts 3 to 5 of them, and each subagent uses 3 or more tools in parallel. Together, those two changes cut research time by up to 90% on complex queries.
  3. Merge. The lead agent collects what comes back, checks it, and writes the final answer.

The key detail: each subagent gets its own clean context window. It doesn't have to carry the whole conversation. It gets one objective, does it, and returns a short result. That's how a swarm can handle more information than fits in a single context window.

Rule 2: Use it for wide, parallel work

A swarm wins when the work is broad: many separate things to look at, and none of them needs the others' results to get started.

Good fits:

  • Research: "What are the pricing models of the top 10 vector databases?" Each subagent takes a few vendors.
  • Comparing sources: reading several papers, docs or reports and pulling out the same facts from each.
  • Many tools: one subagent searches the web, one reads your docs, one queries a database.
  • Huge context: more material than one context window can hold.

Google Research measured this directly. On Finance-Agent, a financial reasoning benchmark where separate agents can look at revenue, costs and market comparisons at the same time, a centralized setup (with an orchestrator) improved performance by 80.9% over a single agent.

Anthropic describes the sweet spot the same way: multi-agent systems "excel at valuable tasks that involve heavy parallelization, information that exceeds single context windows, and interfacing with numerous complex tools."

Rule 3: Skip it for chains of steps

Here's where it goes wrong. If step 2 needs the output of step 1, and step 3 needs step 2, there's nothing to run in parallel. Splitting the work only adds handoffs.

Google Research tested this on PlanCraft, a planning benchmark where each step depends on the last. Every multi-agent variant they tested got worse, by 39% to 70%. In their words, the overhead of communication "fragmented the reasoning process," leaving less budget for the actual task. They also found that the coordination cost grows as tasks need more tools.

This matters a lot for coding. Anthropic notes that "most coding tasks involve fewer truly parallelizable tasks than research," and that LLM agents "are not yet great at coordinating and delegating to other agents in real time." A refactor where every change depends on the one before is a chain. One good agent will usually beat a swarm there.

A simple test: could you hand each part to a different person who never talks to the others, and still get a good result? If yes, a swarm can help. If not, use one agent.

Rule 4: Always keep a lead agent

What happens when one agent makes a mistake? In a swarm with no lead, nobody catches it, and it flows straight into the final answer.

Google Research measured this as error amplification:

  • Independent agents (working in parallel without talking): errors amplified 17.2x.
  • Centralized agents (with an orchestrator): 4.4x.

The lead agent is your quality control. It decides what each subagent does, so the work doesn't overlap. It checks results against each other, so conflicts get flagged instead of averaged. And it decides when the job is done.

Anthropic's big lesson here is teach the lead agent how to delegate. Vague briefs like "research the semiconductor shortage" led subagents to duplicate each other's work or miss parts of it. Each brief needs:

  • an objective (one clear question),
  • an output format (exactly what to return),
  • the tools and sources to use,
  • clear boundaries (what's out of scope),
  • a budget (how much effort before stopping).

Rule 5: Watch the bill

Every agent in the swarm reads its own context and writes its own output. That adds up fast.

From Anthropic's data:

ModeTokens vs a normal chat
Chat1x
Single agent~4x
Multi-agent system~15x

Anthropic also found that token usage alone explained 80% of the difference in performance on their browsing eval. Part of why swarms do better is simply that they spend more. That's fine when the answer is valuable. It's a waste for a question one agent could answer in a minute.

Practical ways to keep costs down:

  • Scale the swarm to the task. Anthropic's guidance to its lead agent: a simple fact-finding question gets one agent with a few tool calls, a comparison gets 2 to 4 subagents, and only complex research gets more.
  • Use a smaller model for subagents. Anthropic's own setup uses Opus as the lead and Sonnet for the subagents.
  • Ask for short results. Subagents should return summaries, not raw dumps that the lead then has to read.

A quick decision checklist

Before you reach for a swarm, run through this:

  • Can the task be split into parts that don't need each other's results?
  • Is there more material than one context window can comfortably hold?
  • Is the answer worth roughly 15x the tokens of a chat?
  • Do you have a lead agent that writes clear briefs and checks the results?

Four yeses: use a swarm. Any no: start with one good agent.

The orchestrator prompt

Paste this as the system prompt of your lead agent:

You are the lead agent. You plan, delegate, and merge. You do not do the deep work yourself.

1. Decide if a swarm is worth it.
   - Split the task only if its parts can run independently (research, comparing sources, checking many files).
   - If each step depends on the previous one, do it yourself, step by step. Do not spawn subagents.
   - Simple question: 0 subagents. Comparison: 2-4. Broad research: up to 6. Never more than needed.

2. Write one brief per subagent. Every brief has:
   - Objective: one sentence, one question to answer.
   - Output format: exactly what to return (e.g. 5 bullets + source links, or a JSON object).
   - Tools and sources: which to use, which to skip.
   - Boundaries: what is out of scope, so subagents don't overlap.
   - Budget: max tool calls / when to stop.

3. Run independent subagents in parallel. Each starts with a clean context: give it everything it needs in the brief, nothing else.

4. Merge.
   - Check results against each other. Flag conflicts instead of averaging them.
   - If a result is missing or weak, send one focused follow-up brief, not a new swarm.
   - Write the final answer yourself, citing which subagent each claim came from.

5. Stop when the question is answered. Report how many subagents you used and why.

And a template for each subagent brief:

Objective: <one question>
Return: <format>
Use: <tools/sources>   Skip: <out of scope>
Stop after: <N tool calls or when you have X>

The takeaway

More agents isn't automatically better. A swarm is a tool for wide problems, not deep ones. Give it parallel work, keep a lead agent in charge, write clear briefs, and only pay the 15x when the answer is worth it.

Save this for the next time someone on your team says "let's just add more agents."


Sources

The +90% and the −70% come from different studies and different tasks, so they aren't a direct comparison. They show the same point from both sides: the task decides whether a swarm helps.

More guides