AI glossary

What is a multi-agent system in AI?

Ask most engineers what a multi-agent system is and you will hear a short answer: several AI agents working together on one goal. That is right, but the useful part is how they divide the work. In a multi-agent system each agent has its own role, instructions, tools and context, and something coordinates them, whether that is a lead agent, a fixed pipeline or a set of handoff rules. I run multi-agent teams built on Claude every day, and this page explains the idea, the main patterns and the trade-offs.

Talk about an agent system

A clear definition

An agent is a language model that can use tools and take several steps towards a goal. A multi-agent system is a group of these agents, each with a narrow job, plus the rules for how work and information move between them.

The idea is old in computer science, where it described independent software agents cooperating or competing. In today's AI usage it almost always means LLM agents that split a large task into parts. One agent plans, another builds, a third reviews, and the system as a whole delivers a result none of them would produce as reliably on its own.

If you want the wider picture of agents working in steps with human checkpoints, my page on what an agentic workflow is covers the process view. This page focuses on the structure: how many agents, which roles, and how they coordinate.

Single agent vs multi-agent system

Single agentMulti-agent system
RolesOne generalistSeveral specialists
ContextOne shared context windowEach agent keeps its own focused context
ToolsEvery tool in one listEach agent gets only the tools its role needs
CostLowerHigher, since more model calls run
DebuggingOne trace to readSeveral traces and the handoffs between them
Best forFocused tasks with a clear pathLarge tasks with distinct stages or parallel parts

My rule of thumb: start with one agent. Move to several when one agent's context gets crowded, when its tool list grows long enough that it picks the wrong tool, or when parts of the work could run in parallel.

Common patterns

Orchestrator and workers

A lead agent breaks the goal into tasks, hands each task to a worker agent, then collects and checks the results. This is the most common pattern and the easiest to reason about. The orchestrator owns the plan, and workers stay narrow.

Pipeline

Agents run in a fixed order, each taking the previous agent's output as input. Plan, then build, then test, then review. Pipelines are predictable and easy to gate, because you can add a check between any two stages.

Handoff

An agent passes the conversation to another agent when the topic moves outside its role, for example a triage agent handing a billing question to a billing agent. This suits support and routing flows.

Reviewer and critic

One agent produces work and a second agent reviews it against clear criteria before anything moves on. This is cheap to add and catches a lot, as long as the reviewer has a different brief from the author.

How I use multi-agent systems

My own engineering work runs on multi-agent teams built on Claude Code and the Claude Agent SDK. The core is an orchestration plugin that takes an approved ticket through planning, build, tests with coverage gates, and QA, security and performance review, ending in a merged pull request. Each stage is handled by a specialised agent with a narrow role. A person approves the ticket at the start and the merge at the end.

Around it, a personal AI manager agent triages incoming work and routes each task to the right session, while a headless agent fleet handles development, production fixes and peer PR reviews in parallel. Each task runs in its own git worktree so parallel agents don't overwrite each other, and a load gate stops the machine from being overloaded. Together this gives me 10 to 20x more output than typical AI assisted development. The full story is in my AI native engineering workflow case study.

What goes wrong

  • Too many agents too soon. Every agent adds model calls, cost and another place for errors. Add agents only when a single one clearly struggles.
  • Lost context at handoffs. An agent only knows what it is given. If the handoff drops a key decision, the next agent works from a wrong picture. Pass structured summaries, not vague notes.
  • Agents agreeing with each other. A reviewer that sees the author's reasoning tends to accept it. Give reviewers the output and the criteria, not the author's argument.
  • Shared state collisions. Two agents editing the same files or records at once cause conflicts. Isolate their workspaces.
  • No stop condition. Agents that can call each other can loop. Set limits on steps, time and spend.
  • No human at the decisions. Approvals on plans and merges keep the system safe while trust builds.

Context limits sit behind many of these problems. I explain why models lose track of long inputs in Inside the Black Box.

Do you need one?

If your use case is a single focused task, probably not yet. If you are automating a process with clear stages, many tools or parallel work, a multi-agent system is often the cleaner design. The connections to your real systems usually come through MCP servers, which give each agent a standard way to use tools.

If you are planning an agent system for your product or team, see my AI agent development service or contact me to talk through your use case.

Frequently asked questions

What is the difference between an AI agent and a multi-agent system?

An AI agent is one model that can use tools and take steps towards a goal. A multi-agent system is several agents with separate roles, plus the coordination that passes work and information between them.

What is an example of a multi-agent system?

A software delivery pipeline is a clear example. One agent plans the change, another writes the code, another writes and runs tests, and a reviewer agent checks quality and security before a person approves the merge.

Are multi-agent systems better than a single agent?

Not always. They cost more and are harder to debug. They help when a task has distinct stages, needs many tools, or has parts that can run in parallel. For a focused task, one well-designed agent is usually the better choice.

Which frameworks can I use to build a multi-agent system?

Most major model providers now offer agent SDKs, and there are open source orchestration frameworks as well. I build on the Claude Agent SDK and Claude Code. The framework matters less than clear roles, good tools and checkpoints.

How do agents in a multi-agent system communicate?

Usually through an orchestrator that passes tasks and results, through structured handoffs, or through shared files and task records. Whichever method you use, keep the messages structured so nothing important is lost between agents.

Let's talk about your project

Software Architect, AI Native. Google Certified Generative AI Leader with 14+ years of experience.

Talk about an agent system