Module 1 · Multi-agent system foundations
When (not) to use multiple agents
5 min read
"What if we used several agents?" It's often the first idea in front of a complex task — and often a bad one. A multi-agent system multiplies costs, latency and failure points. This lesson gives you a grid to decide — and to defend your choice in an architecture review.
What an extra agent costs
Each agent adds:
- Tokens. Every agent rereads instructions, context and results. A multi-agent system commonly uses several times the tokens of a single agent for the same question.
- Latency. Sequential steps add up; only parallel steps overlap.
- Failure points. Every interface between agents is a place where information can be lost, distorted or misread.
- Debugging complexity. When the final answer is wrong, you have to find which agent went off track, and why.
A quick estimate lets you reason before building. For Atlas with 3 sub-questions and one revision:
planner 1 call (main model)
researchers 3 calls (economy model, in parallel)
writer 2 calls (first draft + revision)
critic 2 calls
──────────────────────────────
total 8 LLM calls for a single note
That is exactly what Atlas's tracing measures (tracing.summary() shows "llm_calls": 8). A single well-equipped agent might have done the job in 3 or 4 calls. So the question is: what do these extra calls buy?
Good reasons to use several agents
1. Parallelism on broad tasks
When a task breaks down into independent sub-tasks (exploring several sources, analyzing several documents, comparing options), parallel agents reduce total latency and cover more ground. This is the strongest use case: "breadth-first" research.
2. Context isolation
An agent that reads 40 documents ends up with a context saturated with details irrelevant to what comes next. Delegating the reading to sub-agents that return a summary keeps the orchestrator's context clean. This reason is often underestimated: you don't pay for agents to "think together", but to avoid loading everything in one place.
3. Specialization and least privilege
Different agents can have different tools and permissions. The Atlas researcher can read the knowledge base but has no write tool; a "publishing" agent could write but never read external content. This separation is a security tool (module 4).
4. Different models for different difficulty
Bounded, repetitive tasks (extracting, summarizing, classifying) can run on a fast, economical model, while planning and critique stay on the most capable model. Atlas uses WORKER_MODEL for its researchers for this reason.
Bad reasons
- Anthropomorphism. "A company has a project manager, a developer and a tester, so I need three agents." Models don't get tired and don't lack skills per role: splitting by human "job" often creates useless interfaces.
- Tightly coupled tasks. Writing code is the classic example: each decision depends on the previous ones. Spreading this work across agents that don't share the full context produces inconsistencies. A single agent with good tools does better.
- Hiding a bad prompt. Adding a "checker" agent to compensate for vague instructions costs more than clarifying the instructions.
- The impressive demo. Ten agents "talking" make great videos; they rarely make good products.
The decision grid
Before any agent — and a fortiori before several — ask four questions:
| Criterion | Question | If "no" |
|---|---|---|
| Complexity | Is the task multi-step and hard to specify in advance? | Workflow or single call |
| Value | Does the outcome justify higher cost and latency? | Stay simple |
| Viability | Is the model actually capable at this kind of task? | Rethink the scope |
| Cost of error | Can errors be detected and corrected (tests, review, rollback)? | Add human oversight or don't do it |
Then, to go from one agent to several:
Can the task be split into independent sub-tasks? → parallelism
Would a single agent's context become saturated? → isolation
Are different permissions or tools needed? → specialization
Can part of the work run on a cheaper model? → model tiering
No "yes"? Stay with a single agent.
The underrated alternative: one agent, better tools
Before adding an agent, ask whether a better tool would do. A search_and_summarize tool that does search and summarization in one deterministic call sometimes replaces an entire sub-agent — for a fraction of the cost and with predictable behavior.
Likewise, a workflow (code chaining calls) disguised as a multi-agent system is common: if the order of steps is always the same, write it in code. Atlas itself is a hybrid: the structure (plan → research → write → critique) is fixed by the graph, and the model's autonomy is concentrated where it adds value (what to search, how to write, what to fix).
Key takeaways
- Several agents = more tokens, more latency, more failure points. That cost must be justified.
- Good reasons: parallelism, context isolation, permission specialization, model tiering.
- Bad reasons: copying a human org chart, splitting a tightly coupled task, compensating for a vague prompt.
- The best system is often hybrid: a structure fixed by code, autonomy where it creates value.
Hands-on
- Take an agent project you know (yours or a public example). Apply the grid: is every agent justified by at least one good reason?
- Estimate Atlas's LLM call count for a question with 4 sub-questions and 2 revisions. Check it with
ATLAS_FAKE_LLM=1andtracing.summary(). - Propose a single-agent version of Atlas with two tools. What do you lose? What do you gain?