Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Lesson 1 of 6 · Concept · 15 min · revision 3

When More Agents Help and When They Hurt

Examine the operational trade-offs of multi-agent architectures versus monolithic agents, identifying when context partitioning pays off and when coordination overhead dominates.

Contentsand lesson path

On this page

  1. The Multi-Agent Premise and the Coordination Tax
  2. Architectural Trade-offs: Single versus Multi-Agent
  3. Verify Your Understanding
  4. Apply it
  5. Review prompt

Lessons of Multi-Agent Orchestration

  1. When More Agents Help and When They Hurt Concept · 15 min
  2. Supervisors, Handoffs and Agents as Tools Worked example · 25 min
  3. Lab: Parallel Sub-Agents with Isolated Context Lab · 25 min
  4. How Multi-Agent Systems Fail Concept · 15 min
  5. Single Versus Multi-Agent on One Task Set Lab · 25 min
  6. Check: Choose a Topology Knowledge check · 8 questions

What you will learn

  • Justify a multi-agent design against a single-agent baseline using measured quality, latency and token cost.

Prerequisites: Agent Loops & ReAct

01. The Multi-Agent Premise and the Coordination Tax

Multi-agent designs are popular in talks and vendor demos. A typical demo shows a team of specialised agents: an architect agent drafts a specification, a coder agent writes functions, a QA agent writes unit tests and a manager agent tracks progress.

The idea of agents working together like a human team is easy to like. In production it often brings a surprise: the new system is slower, uses several times more tokens and fails in new ways, for example when two agents keep handing the same task back and forth.

More agents are not always better than one well-prompted agent; the choice is a trade-off. Every extra agent adds calls, hand-offs and checks, which this lesson calls the coordination tax. In return you get smaller, focused contexts and work that can run in parallel. This lesson shows how to tell when that trade pays off.

The cost side is real and measurable. Anthropic reports that in its data agents typically use about 4 times the tokens of a chat interaction, and its multi-agent research system about 15 times; the same post reports that the multi-agent design did much better on its own research evaluation, so the extra tokens bought something there. Whether they buy anything for your task is what you have to measure. The goal is not the largest number of agents; it is the most reliable result per dollar. So measure both designs on your own tasks before you commit; the last lab of this skill shows how.

02. Architectural Trade-offs: Single versus Multi-Agent

To decide, weigh four forces that pull in different directions.

Context partitioning. The main technical reason to split work across agents is to keep each context focused. Models tend to use information in the middle of a long context less reliably (the "lost in the middle" effect that Liu et al. measured in 2023), and long lists of tool descriptions, schemas and old observations compete for attention. When one agent juggles database administration, code generation and financial accounting at once, its reasoning tends to get worse.

As an agent's context grows, adherence to instructions and attention to details in the middle of the prompt tend to degrade; where that starts depends on the model and the task, so measure it on your own workload rather than assuming a fixed token threshold. The model may skip tool schemas listed in the middle of a long system prompt, or mix up contradictory old logs. If you split the work, each sub-agent gets a short prompt with only the tools for its own domain: a SQL auditor agent loads only database schemas, and a compliance agent loads only the policy rules. This keeps each prompt small and stops one domain's material from crowding out another's.

The coordination tax. Context partitioning is not free. A single agent keeps one continuous trajectory. In a multi-agent hierarchy, every delegation is a round trip: the supervisor writes an instruction, the worker builds its own prompt, runs its tools, writes a summary and passes it back, and the supervisor reads that summary and folds it into its own reasoning.

Each hop re-sends instructions and context, so token use multiplies; the Anthropic figures above are one measured example, and your own traces are the only reliable source for your system. Each sequential handoff also adds at least one more model call to the wall-clock time; how much depends on how many hops are sequential and how long each call takes.

Parallel throughput. Multi-agent systems help most with work that splits into independent parts. If a task must search five separate documentation repositories, run static analysis on twenty services or audit twelve regulatory frameworks, a single agent that works through them one by one takes the sum of their times. A supervisor can start five workers at once, so the total time approaches that of the slowest worker, as long as the provider's rate limits let all five run together.

Error cascades. In a multi-agent chain, one agent's mistake becomes the next agent's input. If worker A misreads a customer requirement and produces a wrong JSON summary, worker B treats that summary as ground truth and builds on it, and the error can reach actions that change real systems. Debugging such cascades needs tracing across agents and structured contracts for what passes between them.

Python · decompose.py
def should_decompose_to_multi_agent(
    has_disparate_security_clearances: bool,
    independent_subtasks: int,
    subtask_needs_own_context_or_tools: bool,
    measured_single_agent_accuracy_drop: bool,
) -> bool:
    """Does the task justify the coordination cost of several agents?"""
    # Criterion 1: tools that must never share a context or credentials
    if has_disparate_security_clearances:
        return True
    # Criterion 2: parallel sub-tasks that each need a lot of their own context
    # or tools. Mere parallel lookups do not count: one agent can issue
    # parallel tool calls without any coordination cost.
    if independent_subtasks >= 2 and subtask_needs_own_context_or_tools:
        return True
    # Criterion 3: you measured the single agent losing accuracy as its context
    # or tool list grew (not a fixed token threshold)
    if measured_single_agent_accuracy_drop:
        return True
    # Default: a single agent is faster, cheaper and easier to debug
    return False


if __name__ == "__main__":
    print(should_decompose_to_multi_agent(False, 3, False, False))  # parallel lookups
    print(should_decompose_to_multi_agent(False, 3, True, False))   # 3 deep audits
Terminal (Python 3.12 or later)
python3 decompose.py
Expected output
False
True

Three independent lookups do not justify a second agent: a single agent can request them as parallel tool calls in one turn. Three audits that each need their own large context and tool set do. Criterion 3 asks for a measurement, not a token count, because the point where a single agent degrades differs by model and task.

Three situations usually justify the coordination tax:

  1. Security and permission boundaries. Some tools need elevated credentials, such as write access to a production database or the power to send money, and those credentials should never be exposed to the general customer-facing agent. A separate agent with narrow permissions, reached only through audited handoffs, keeps them apart.

  2. Wide parallel gathering. The answer needs information from many separate sources at the same time, and no worker needs to know about the others until the results are combined.

  3. Different models for different sub-tasks. A small, cheap model can handle high-volume summarising and extraction, while a larger model acts as the supervisor. This only pays off if the sub-tasks really need different capabilities.

One limit applies to all of them. As with Amdahl's law in parallel computing, the speed-up from parallel workers is bounded by the part of the task that must run in sequence. If forty percent of a workflow is sequential reasoning that cannot be split, no number of parallel workers makes that part faster. Map the dependencies between sub-tasks before you add orchestration.

03. Verify Your Understanding

Practice check · 3 questions

Multi-Agent Trade-offs Knowledge Check

Three scenarios on when to split work across agents, where the extra tokens come from and how far parallel workers can cut the time.

Q1. A task needs three independent API lookups, each returning a few hundred tokens. Is a multi-agent design justified?
Q2. Anthropic reports that its multi-agent research system used about 15 times the tokens of a chat. Where do the extra tokens mainly come from?
Q3. Half of a workflow is sequential reasoning that cannot be split. What is the most that adding parallel workers can do for total time?
Practice only: not graded, not saved, not evidence.

04. Apply it

Before you build the research assistant for this skill, write down the case for splitting it:

  1. List the three sub-questions your lead agent will delegate. For each one, note the tools and context it needs, and whether it needs the result of another sub-question first.
  2. Run should_decompose_to_multi_agent, or your own version of it, on that list. Record which criterion justifies a separate agent. If none does, plan parallel tool calls in one agent instead.
  3. Estimate the sequential share of the workflow, such as planning and the final merge, and use it to bound the speed-up you can expect.
  4. Build the single-agent version first and keep it. It is the baseline for the comparison in the last lab of this skill.

05. Review prompt

Without looking back, name the four forces that pull the single-agent or multi-agent decision in different directions, with one example of each. Explain why three independent lookups do not justify a second agent while three deep audits might, and why the sequential part of a workflow limits the speed-up that parallel workers can give.

References

Your progress

Reading state

Sign in to save that you finished reading this lesson.

Sign in to mark reading complete

Prove this skill

8 questions · about 6 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.
Take the skill check