An agent swarm is a group of AI agents working together on one task: a coordinator agent splits the work, specialised agents each do one part in parallel, and the results are checked and assembled into a single deliverable. It's the difference between handing a project to one person and handing it to a small, well-organised team.
This guide explains in plain terms how it works, when it helps (and when it doesn't), with concrete examples. If you're new to the topic, start with what is an AI agent: a swarm is several of those agents cooperating.
Agent swarm: the simple definition
An AI agent is an AI that acts to finish a task: it searches the web, reads files, writes, runs code, then hands you a result. An agent swarm brings several such agents together around a shared goal, with three ingredients:
- Roles: each agent has a precise assignment (find prices, analyse regulations, write a section, review).
- Coordination: one agent, often called the orchestrator or coordinator, splits the work, manages the order (who waits for whom) and gathers the results.
- A shared space: a common board, a folder of files or messages, so agents can pass information to each other.
The word comes from swarm intelligence, a term proposed in 1989 by researchers Gerardo Beni and Jing Wang for systems where many simple individuals produce intelligent behaviour together, like an ant colony or a bee swarm. Modern agent swarms are less "simple" (each agent is a powerful language model), but the idea is the same.
How an agent swarm works, step by step
- The task is described: "Run a market study of heat pumps in France", possibly with documents.
- The coordinator plans: it splits the work into independent parts, creates one agent per role, writes each one an assignment with success criteria, and notes dependencies (the writer waits for the researcher, the reviewer waits for the writer).
- Agents work in parallel: everyone who can start right away does so at the same time. This is where a swarm saves time.
- They coordinate: one agent posts a useful source on the shared board, another asks a teammate a precise question, the reviewer gets the work as soon as it's ready.
- The coordinator checks and assembles: it compares the work with the request, sends parts back for fixes if needed, then writes the final deliverable.
Why several agents beat one (sometimes)
A single agent handles things one after another, with one "working memory" (its context window) that fills up fast. A swarm splits the work: each agent has its own context, focused on its part, and they all move at once.
Anthropic measured the effect on its research system: a team made of a lead Claude Opus 4 agent and Claude Sonnet 4 subagents scored 90.2% better than a single Opus 4 agent on its internal research evaluation. The gain was clearest on "broad" questions that require exploring many leads at once.
The flip side: a swarm uses a lot more. According to Anthropic, an agent uses about 4 times more tokens than a chat, and a multi-agent system about 15 times more. A swarm is worth it when the task is valuable enough to justify that cost. We compare both approaches in agent swarm vs single agent.
Concrete agent swarm examples
- Market research: one agent per angle (players, prices, subsidies, trends), a writer, a reviewer who checks sources.
- Document analysis: 40 PDFs split between 8 agents, then a cross-checked summary by the coordinator.
- Competitive intelligence: one agent per competitor, a comparison table at the end.
- Small web project: one agent for copy, one for code, one for tests, a reviewer.
We go through twelve of them in agent swarm use cases.
Limits to know about
- Cost: more agents means more AI usage, hence the value of a spending cap.
- Tightly linked tasks: if each step depends closely on the previous one (lots of code in the same file, for instance), parallelism helps little. Anthropic itself notes that coding parallelises less well than research.
- Coordination: poorly briefed agents duplicate work or wait for each other. Everything rests on a good split.
- Verification: a swarm can be confidently wrong. A critical reviewer role reduces that risk; it doesn't remove it.
How to launch an agent swarm without code
There are two families of tools: frameworks for developers (OpenAI Agents SDK, CrewAI, LangGraph, Microsoft Agent Framework), where you write the code that defines the agents, and ready-made products, where you just describe the task. We compare them in agent swarm tools in 2026.
On Baguette Bot, Agent Swarm works like this:
- You describe the task and attach documents if needed (PDF, Word, Excel, images, up to 10 files).
- You pick the number of agents: 3 on the free plan, up to 10 on Pro, 20 on Max, 30 on Ultra. You can set a spending cap.
- The coordinator builds the team, and you follow everything live: who is working, who delivered, what they share.
- You get one final result, and you can chat with any agent.
The agents work on a cloud computer hosted in France, with a browser, a terminal and a shared folder. One honest caveat: all of an account's agents share the same computer and browser, so they favour web search and the terminal to stay out of each other's way.
FAQ
What's the difference between an agent swarm and a multi-agent system?
They're nearly the same thing. "Multi-agent system" is the older, general term; in 2026 "agent swarm" usually means a group of AI agents working in parallel on one task, often with a coordinator. Kimi, for example, uses the name for its feature that orchestrates up to 300 subagents.
How many agents should a swarm have?
It depends on how broad the task is. For a short task, 3 to 5 agents are enough. For a study with many sources or documents, 10 to 20 agents make sense. Beyond that, cost grows faster than quality.
Is an agent swarm smarter than a single agent?
Not smarter, but broader and faster on tasks that can be split: it explores more leads at once and can have its work reviewed by another agent. On a short or tightly linked task, a single agent does as well for less.
Can I use an agent swarm for free?
Yes, to try it. On Baguette Bot, the free plan allows 3-agent swarms with the trial credits, no credit card. Open-source frameworks are free, but then you pay for the AI models and the infrastructure.
Sources
- Anthropic, "How we built our multi-agent research system", June 2025: https://www.anthropic.com/engineering/multi-agent-research-system
- Kimi, "Agent Swarm" (help center): https://www.kimi.com/help/agent/agent-swarm
- OpenAI, Swarm repository (replaced by the Agents SDK): https://github.com/openai/swarm
- Beni, G. and Wang, J., "Swarm Intelligence in Cellular Robotic Systems", 1989 (origin of the term swarm intelligence)