Module 06 · Lesson 6.1
When Multi-Agent Architecture Is Worthwhile
On this page
- What you will learn
- One agent or several agents: what is the difference?
- What splitting one agent into several costs
- Four conditions that can justify more than one agent
- A decision checklist: single agent or multi-agent?
- Score a task against the checklist with Python
- Conclusion and your next step
- Common errors and fixes
- Validation checklist
- Hands-on exercise
- Knowledge check
- Frequently asked questions
- References
A corner shop with one clerk is simple. The clerk serves, restocks and counts the till. If the shop gets busy, you might hire a second person. But a second person also means handovers, messages like "customer at the counter needs a refund", and two people who can disagree. Sometimes it is worth it. Often a better till or a clearer sign would have solved the problem.
AI agents face the same choice. A multi-agent system is a design where several agents, each with its own job, work together on one task. It sounds powerful, and it can be. It also costs more and breaks in new ways. This lesson helps you decide when to split, using a checklist. Most of it needs no coding. A short Python scorer at the end turns the checklist into code.
What you will learn
- Compare a single-agent design with a multi-agent design for the same task.
- Name the costs of splitting one agent into several.
- List the conditions that can justify a split.
- Use a checklist, and a small Python scorer, to recommend a single or multi-agent design.
Before you start
- Practical Lab: Build a Multi-Step Research Agent, the last lesson of Module 5.
- No coding experience is needed for most of this lesson.
- Optional: Python 3.10 or later, if you want to run the example yourself.
One agent or several agents: what is the difference?
So far you have built single agents. One model reads the instructions, picks tools and writes the reply. In a multi-agent system, more than one such agent exists. Each has its own instructions and, usually, its own tools. Something decides who works on what.
Think of a small bike repair stand. In design one, a single mechanic takes the bike in, fixes it, orders parts and takes payment. In design two, a front-desk person takes the bike in and passes it to a mechanic, who passes the bill to a cashier. Design two can be faster for a big shop. For three bikes a day, it is just more walking.
- Single agent
- One model loop with one set of instructions and one set of tools. It does every step itself.
- Multi-agent system
- Several agents, each with its own role, instructions and tools, working on one task together.
- Supervisor
- An agent whose only job is to decide which other agent should work next. You will build one in this module.
- Specialist
- An agent with a narrow job and a small toolset, such as "answer help-centre questions".
- Handoff
- The moment one agent passes the task, and what it knows so far, to another agent.
| Question | One agent | Several agents |
|---|---|---|
| How many model calls for one task? | Few. One loop. | More. Each agent runs its own loop, plus the routing call. |
| Where does a mistake hide? | In one loop and one history. | Between agents: a wrong route, a lost detail, a repeated step. |
| Who holds which tools? | One agent holds all of them. | Each agent holds only its own. |
| How long is the instruction text? | One long text that covers every case. | Several short texts, one per role. |
| How do you test it? | Run scenarios on one agent. | Test each agent, the routing and the handoffs. |
| What can you run at the same time? | Usually one step after another. | Independent parts can run in parallel. |
What splitting one agent into several costs
Every extra agent is a bill that arrives later. Look at the costs before you look at the benefits.
- More model calls. A supervisor call to pick a specialist is one extra call before any work starts. Each specialist then runs its own loop. More calls mean more money and more waiting.
- More handoffs. Each handoff can drop a detail. If the supervisor forgets to pass the order number, the specialist asks the customer again.
- Harder debugging. When an answer is wrong, you must ask: was the route wrong, was the message wrong, or did the specialist fail? One agent has one place to look. Several agents have many.
- More things to keep in step. Three instruction texts and three tool lists can drift apart. A rule you fix in one place may stay broken in another.
- New failure modes. Agents can pass a task back and forth forever. The lessons Shared State and Inter-Agent Communication and Avoiding Infinite Loops and Unnecessary Agent Handoffs cover these.
Anthropic's article Building effective agents (opens in a new tab) makes the same point in general terms: start with the simplest design that works and add complexity only when it clearly helps. Anthropic's write-up on its multi-agent research system (opens in a new tab) is a useful look at a case where several agents did pay off, and it is open about the extra cost.
Four conditions that can justify more than one agent
A split earns its cost when it solves a real problem. These four conditions are the common ones. Each one has a plain test.
1. Separate tools or permissions per role
Say one role may only read data and another role may change it. If both live in one agent, that agent holds the dangerous tool all the time, even when it is only answering a simple question. Two agents let the reading agent have no write tool at all. You met this idea in Authentication, Secrets and Least-Privilege Access. Test: would a mistake by one role be worse if it held the other role's tools?
2. Separate context per specialist
A specialist that answers help-centre questions needs help pages. A specialist that handles orders needs order records. Put both in one agent and its context gets crowded, which can make it slower and less accurate. Test: does each role need background material the other role would never use? See Context Design: What the Agent Needs at Each Step for why a crowded context hurts.
3. Parallel, independent work
If three parts of a task do not depend on each other, three agents can work at the same time. A research task that reads three separate sources is a good example. Test: can part B start without waiting for part A, and without changing anything part A reads? The Sequential, Parallel and Conditional Tool Execution lesson covers the same rule for tools.
4. Different review needs
Some work should be checked by something other than the agent that did it. A writer agent and a checker agent with different instructions can catch mistakes a single agent would miss in its own text. Test: does this output need a second pair of eyes with different rules?
A decision checklist: single agent or multi-agent?
Use this list before you add a second agent. Answer each line with yes or no, and write down why.
Step 1: Build and measure one agent first
Run your scenario tests on a single agent. Note where it fails and what it costs per task. Without this baseline you cannot show that a split helps.
Step 2: Name the problem the split solves
Is it one of the four conditions above, or only "it feels cleaner"? A clean diagram is not a reason.
Step 3: Try the cheaper fixes
Could clearer instructions, a smaller tool list, a validation function or better retrieval fix the same problem? Try these first.
Step 4: Count the extra cost
Estimate the extra model calls and handoffs per task. Decide whether the benefit is worth it.
Step 5: Split in the smallest way
Move to two agents, not five. Keep the old single agent so that you can compare results on the same scenarios.
In the Quillfeather support desk, the orders work uses request_return, a tool that writes. The help-centre work reads 16 pages. Those two roles have different tools, different context and different risk. That is a good case for a split, and it is the one you will build in the lab at the end of this module. A simple status helper with one read-only tool is not.
Score a task against the checklist with Python
You can encode the checklist as a tiny scorer. It does not use a model. It takes yes-or-no answers about a task and returns a recommendation with reasons. The scorer is deliberately cautious: it says "single" unless you have measured one agent and at least two conditions apply.
CHECKLIST = [
("separate_permissions", "roles need different tools or permissions"),
("separate_context", "roles need different background material"),
("parallel_work", "parts can run at the same time without touching each other"),
("separate_review", "parts need different review or checks"),
]
def advise(task):
reasons = [text for key, text in CHECKLIST if task[key]]
if not task["single_agent_measured"]:
verdict = "SINGLE - build one agent first and measure it"
elif len(reasons) >= 2:
verdict = "MULTI - the evidence and the reasons both support a split"
elif len(reasons) == 1:
verdict = "SINGLE - one reason is weak; fix the one agent or its tools first"
else:
verdict = "SINGLE - nothing justifies the extra cost"
print(task["name"], "->", verdict)
for reason in reasons:
print(" reason:", reason)
advise({"name": "Order status helper", "separate_permissions": False,
"separate_context": False, "parallel_work": False,
"separate_review": False, "single_agent_measured": True})
advise({"name": "Support desk (orders and help centre)", "separate_permissions": True,
"separate_context": True, "parallel_work": False,
"separate_review": False, "single_agent_measured": True})
advise({"name": "Support desk, nothing measured yet", "separate_permissions": True,
"separate_context": True, "parallel_work": False,
"separate_review": False, "single_agent_measured": False})
advise({"name": "Report with a safety review", "separate_permissions": False,
"separate_context": False, "parallel_work": False,
"separate_review": True, "single_agent_measured": True})Runs offline with Python 3.10 or later. Save it and run python split_score.py.
What each part does
CHECKLISTis a list of pairs. Each pair holds a key (a short name) and a plain sentence that explains the condition.reasons = [text for key, text in CHECKLIST if task[key]]builds a new list. It keeps the sentence for every condition the task answeredTrueto.- The
ifandeliflines are the decision rule. No measurement means "single". Two or more reasons mean "multi". One reason is not enough. len(reasons)counts how many conditions apply.print(task["name"], "->", verdict)shows the recommendation, and theforloop prints each reason below it.- Each
advise({...})call describes one task as a dictionary, a set of name and value pairs.
Order status helper -> SINGLE - nothing justifies the extra cost
Support desk (orders and help centre) -> MULTI - the evidence and the reasons both support a split
reason: roles need different tools or permissions
reason: roles need different background material
Support desk, nothing measured yet -> SINGLE - build one agent first and measure it
reason: roles need different tools or permissions
reason: roles need different background material
Report with a safety review -> SINGLE - one reason is weak; fix the one agent or its tools first
reason: parts need different review or checksConclusion and your next step
Several agents cost more calls, more handoffs and more debugging. They are worth it when roles need different tools or permissions, different context, parallel work or separate review. Start with one agent, measure it, and split only when you can point to evidence.
Your next step: take an agent idea of your own and answer the four conditions with yes or no, with a reason for each. Then continue to Supervisor, Specialist and Handoff Patterns, where you learn the common ways to organise agents once a split is justified.
For related reading, see Choosing the Right Use Case: Agent or Conventional Automation? and the Agent Launch Safety Checklist.
Common errors and how to fix them
The team builds five agents for a task that one agent could do.
Why it happens: The diagram looked impressive and nobody measured a single-agent baseline.
Fix: Build one agent first, record where it fails and what it costs, and split only to fix a named problem.
A task costs three times as much after the split and quality is the same.
Why it happens: Every agent runs its own loop and the routing adds a model call, but nothing was gained from separate tools or context.
Fix: Compare model calls per task before and after. If there is no quality gain, go back to one agent.
Specialists ask the customer for details the customer already gave.
Why it happens: The handoff did not pass the order number or earlier facts.
Fix: Pass a structured case record with each handoff. The next lessons show how.
A split is justified by "the instructions got long".
Why it happens: A long instruction text is a symptom, not a reason on its own.
Fix: First try tidying the instructions. Split only if roles truly need different tools, context or review.
Validation checklist
Tick each item once you have confirmed it.
Hands-on exercise
Decide for three designs
Use the four conditions and the decision checklist to decide whether each design below should be a single agent or a multi-agent system. Write one sentence of reasoning for each.
You will need
- Design A: an agent that answers questions about delivery times and returns, using only the 13 customer help pages. It has one read-only tool, search_help.
- Design B: an agent that reads three supplier price lists, checks stock and also creates purchase orders. The price lists are large and unrelated. Purchase orders spend real money.
- Design C: an agent that writes customer emails. A second pass must check every email against a strict tone and policy list before sending.
Acceptance criteria
Your work is done when every one of these is true.
Hints (3)
- For each design, ask the four test questions in order.
- Remember the baseline: nothing is decided before one agent has been measured.
- Ask whether a plain function could do the checking before reaching for an agent.
Show a model answer
Design A is a single agent. It has one read-only tool and one kind of context, so none of the four conditions apply. Design B is a candidate for a split. The purchase tool spends money and should not sit in the same agent that reads untrusted price lists (different permissions), and the three large unrelated lists crowd one context (different context). Measure one agent first, then split the reading from the buying. Design C needs a different review. The checker could be a second agent with strict instructions, or a plain function if the policy is a list of simple rules. Try the function first because it is cheaper and gives the same answer every time.
Knowledge check
Choose an answer, then check it. Nothing is recorded — this is for you.
Show the answer and explanation
Answer: B. With one tool and one kind of context, a split adds cost and new failure modes without solving a problem. The first option is tempting because it sounds advanced, but more agents are not better by default.
Show the answer and explanation
Answer: B. Separate permissions limit the damage a mistake or a bad input can do. The third option is wrong because a split normally adds model calls and therefore cost.
Show the answer and explanation
Answer: A. Without a baseline you cannot tell whether the split helped. Choosing a number of agents or writing a supervisor first starts from the solution instead of the evidence.
Frequently asked questions
What is a multi-agent system in simple words?
It is a design where more than one AI agent works on the same task. Each agent has its own job, instructions and tools. Something, often another agent, decides who works next.
Are multi-agent systems better than a single agent?
Not by default. They can help when roles need different tools, context or review, or when work can run in parallel. They also cost more model calls and are harder to debug. Many tasks are done well by one agent.
How many agents should I start with?
One. Measure it. If you then find a clear problem that a split would fix, move to two agents and compare the results with the single-agent baseline.
Do multi-agent systems cost more?
Usually yes. A supervisor adds a routing call and each specialist runs its own loop, so a task needs more model calls. Count the calls per task before and after a split so you know the real difference.
- Written by
- PromptFable Editorial
- Last updated 18 Nov 2026
- Review
- Reviewed by Waseem Nadir, Technical Reviewer
- Last reviewed 27 Nov 2026
References
Primary sources for the technical details in this lesson. Vendor platforms change — check the official page if anything here looks different from what you see.
- Building effective agents(opens in a new tab)
Anthropic · Official documentation · Advice to start simple and add complexity only when it clearly helps, with common workflow and agent patterns.
- How we built our multi-agent research system(opens in a new tab)
Anthropic · Official documentation · A case study of a multi-agent design, including trade-offs and lessons from building it.
- LLM06:2025 Excessive Agency(opens in a new tab)
OWASP Foundation · Official documentation · Why an agent should hold only the tools and permissions its job needs.
- Python tutorial: data structures(opens in a new tab)
Python Software Foundation · Official documentation · Background for the lists and dictionaries in the example.
PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.