Module 5 · Lesson 1 · 12 min read
Why multi-agent systems?
Why Multi-Agent Systems?
Introduction
When a task grows and its skills become varied, a single agent becomes weighed down by long instructions and many tools. In this lesson we learn about the multi-agent system, and determine when dividing the work among a team helps and when a single agent is the smarter choice.
Learning objectives
- Define the multi-agent system and distinguish it from a single agent
- Name four main benefits of dividing the work among specialized agents
- Identify the costs and risks of multiple agents
- Apply a simple decision checklist to choose one agent or a team
From one agent to a team
We learned in the previous modules that an AI agent is a system that combines a language model with instructions, tools and memory, and works inside a loop: it observes, then thinks, then takes an action, then reads the result. A multi-agent system is a group of these agents, each with a specific role, that exchange messages or share a single state to accomplish a common goal.
The idea is close to human work teams: we do not ask one person to be a researcher, a programmer, a reviewer and an editor all at once; we divide the roles. But agents are not people; every extra agent means extra calls to the model, new points of failure, and coordination that needs to be designed.
When do multiple agents help?
- Specialization: each agent carries short, focused instructions and a small set of tools, so it is less likely to choose the wrong tool or mix up different tasks.
- Context window management: instead of one agent carrying all the documents and results, each agent works in its own context and returns only a short summary.
- Parallelism: independent subtasks, such as searching three different sources, can be carried out at the same time.
- Separation of permissions: one agent can have read-only access, while another has write permission after human approval, so the effect of any error is smaller.
- Independent review: a critic agent that reviews another agent's work with different instructions may find mistakes the writer does not see in their own work.
When do you not need it?
In its article "Building effective agents", Anthropic recommends starting with the simplest solution that works, and adding complexity only when it is shown to improve results. Many tasks are served well enough by a simple chain of calls or a single agent with good tools.
| Criterion | A single agent | A team of agents |
|---|---|---|
| Number of model calls | Lower | More, and it may double |
| Ease of tracing and debugging | Easier | Harder; needs a log of every message |
| Very varied tasks | The instructions crowd each other | Clearer specialization |
| Latency | Usually shorter | Longer, except with parallelism |
A practical example: a university report assistant
A student wants a brief report on renewable energy. A single agent could search, write and review, but its instructions would grow long and the stages of the work would get mixed up. The alternative design is a team of three roles: a researcher who gathers facts from a knowledge base, a writer who drafts the report from those facts only, and a reviewer who checks the draft against clear rules. In the following simulation we represent each agent with a deterministic Python function (without a real language model) to see the shape of the workflow, and we count the calls to remember that each role has a cost:
# An educational simulation: each "agent" is a function with one role and clear inputs and outputs
calls = {"count": 0}
def researcher(topic):
calls["count"] += 1
knowledge = {
"Solar energy": "Photovoltaic panels convert sunlight into electricity.",
"Wind energy": "Wind turns turbines that generate electricity.",
}
return [f"{k}: {v}" for k, v in knowledge.items()]
def writer(facts):
calls["count"] += 1
return "A brief report on renewable energy\n" + "\n".join("- " + f for f in facts)
def reviewer(draft):
calls["count"] += 1
issues = []
if len(draft.splitlines()) < 3:
issues.append("The report is too short")
if "Source" not in draft:
issues.append("It does not cite the source of the information")
return issues
facts = researcher("Renewable energy")
draft = writer(facts)
issues = reviewer(draft)
print(draft)
print("Reviewer notes:", issues or "None")
print("Number of calls:", calls["count"])Notice that the reviewer found the missing source, a note that can go back to the writer in a second round. This is exactly what separating the writer from the reviewer adds, and in return the number of calls rose to three instead of one.
A simplified decision checklist
Before you build a team, ask yourself:
- Does the task contain stages that really need different skills or tools?
- Does the amount of information clearly exceed what fits in one agent's context?
- Are there independent subtasks that can be carried out in parallel?
- Do you need to separate sensitive permissions from the rest of the work?
- Can you bear the extra cost and time, and do you have a way to trace the messages?
If the answer is "no" to most of the questions, start with a single agent and improve its tools and instructions, then move to a team when a specific need appears that you can measure.
Summary
A multi-agent system is a group of agents with specific roles that cooperate to accomplish a common goal. Its main benefits are specialization, context management, parallelism, separation of permissions and independent review. But it raises the number of calls and the time, and makes tracing harder. The practical rule is to start with the simplest solution that works and add agents only for a clear need that can be measured.
Terms
| Term | English | Definition |
|---|---|---|
| Multi-agent system | Multi-Agent System | A group of agents with different roles that cooperate to achieve a common goal |
| Specialization | Specialization | Each agent focusing on a single role with limited instructions and tools |
| Context window | Context Window | The maximum amount of text the model can process in a single call |
| Critic agent | Critic Agent | An agent that reviews another agent's outputs and suggests corrections |
| Parallelism | Parallelism | Carrying out independent subtasks at the same time |
Review questions
- What is the difference between a single agent with many tools and a team of specialized agents?
- Name three benefits of multiple agents and two of their costs.
- Why might a reviewer agent find mistakes that the writer agent did not notice?
- Describe a task from your studies that needs no more than one agent, and explain why.
References
- Building effective agents (Anthropic) www.anthropic.com Reviewed on 2026-11-18
- AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation arxiv.org Reviewed on 2026-11-18
