TecnoStack
Start a projectالعربية
An Orchestrator card splits the work down three parallel lanes to three Subagent cards, whose arrows meet again at one Merged answer card.
AI engineering

Multi-agent systems split one task between several AI agents, usually an orchestrator and subagents. They pay off for broad tasks with independent parts, after a measured single-agent baseline falls short. This guide covers the patterns, where they fail, and how to cap the cost of every run.

In this article

Silent video with on-screen text. The transcript below repeats every screen and describes what it shows.

Watch on the video page

  1. 0:00–0:06

    Research question • Measure one agent first • Single-agent baseline • Quality, cost and time

    The Research question badge stays fixed in its lane. One blank agent block slides in, labelled "Single-agent baseline". A dashed arrow leads from it to three empty measure slots that draw in one after another under "Quality, cost and time". The slots stay empty and their dashed edges keep moving: nothing has been measured yet. The illustrative task is an open-ended research question. Before any split, one agent or a fixed workflow runs a small set of real tasks, recording quality, cost per accepted result and time.

  2. 0:06–0:12

    Research question • Read why the baseline falls short • Breadth? • Context overflow? • Missing check?

    The same agent block stays in place. Three question tags slide in beside it: "Breadth?", "Context overflow?" and "Missing check?". A cyan pointer sweeps past all three, down, back up and down again, without stopping on any: which cause applies is still open. Splitting helps only when the baseline's failures come from breadth, an overflowing context or a missing independent check. Failures from missing knowledge, vague instructions or a weak model rarely improve with more agents. Which applies here is still open.

  3. 0:12–0:18

    Research question • Split only the independent parts • Sub-questions apart • Independent parts • Run in parallel • Dependent steps • One agent or workflow

    The article's figure enters whole: "Independent parts", three separate cards, each with its own arrow under "Run in parallel"; and "Dependent steps", three cards linked end to end inside one tray, "One agent or workflow". Markers leave the three independent cards at the same moment and travel their parallel arrows, twice; "Sub-questions apart" is written beside the arrow tips. The dependent chain does not move. Researching sub-questions that do not need each other's answers is one of the signals the article lists for independent breadth. Steps that depend on each other stay with one agent or a fixed workflow.

  4. 0:18–0:24

    Research question • Keep sources through the hand-offs • Trace ID per delegation • Subagent outputs • Sources attached • Merged result • Check against sources

    The article's hand-off figure enters: three "Subagent outputs" cards, each with a cyan source tag ("Sources attached"), arrows converging on the "Merged result" card, which holds three tags, and a dashed line to an empty ring, "Check against sources". One after another, a copy of each tagged card travels its arrow into the merged card; a thin trace line writes under each arrow, labelled "Trace ID per delegation". The ring stays empty and the line to it stays dashed: the check has not run. Most failures happen in the hand-offs between agents. Outputs pass through the orchestrator with sources attached, every delegation is logged with a trace ID, and the merged result is checked against sources before it leaves.

  5. 0:24–0:30

    Research question • Compare against the baseline • Cost per accepted result • Criteria agreed first • Decision pending

    "Criteria agreed first" is written first, and a bar draws under it. Two blank result columns draw in beneath the bar, side by side: the baseline (one agent block) and the multi-agent version (an orchestrator with three subagents). Each has three empty rows; the bottom rows, "Cost per accepted result", are joined to their label by dashed leaders and stay empty. A dashed "Decision pending" slot sits between the columns. Nothing is filled in. The multi-agent version runs the same set and is kept only if it wins on measures agreed in advance, including cost per accepted result. Here the comparison has not run and the decision is pending.

Multi-agent systems split one task between several AI agents, each with its own instructions, context and tools. Most use an orchestrator that plans the work and subagents that do the parts. They pay off when a task has broad, independent parts and a single agent you have already measured falls short. Otherwise they add cost and new ways to fail.

A multi-agent system is software in which two or more model instances work on parts of the same task and something coordinates them. The coordinator can be ordinary code that splits the work and gathers results, or a lead agent that decides the subtasks while it runs.

The most common shape is orchestrator and subagents. The orchestrator reads the request, breaks it into parts, hands each part to a subagent with a clear brief, then merges what comes back. Each subagent sees only its own slice of context and only the tools its part needs. That isolation is the main benefit, and the main source of trouble, because no single agent sees the whole picture.

Several patterns get called multi-agent, and the difference is who decides how the work is split. Anthropic's guide to building effective agents (published 19 December 2024) separates workflows, where "LLMs and tools are orchestrated through predefined code paths", from agents, which direct their own process and tool use. Most multi-agent designs sit somewhere on that line.

PatternWho decides the splitGood fitWatch out for
Parallel sectionsYour code, in advanceThe same checklist applied to many documents or suppliersParts that turn out not to be independent
VotingYour code, in advanceSeveral attempts at one judgement, then a majority or a reviewPaying several times for answers that share the same error
Orchestrator-workersA central model, at run timeTasks whose subtasks depend on the inputThe orchestrator splitting work badly or skipping parts
Lead agent with autonomous subagentsThe lead agent, as it goesOpen-ended research across many sourcesToken cost, slow runs and hard-to-trace failures

The first two rows are workflows, and they handle many problems that look like they need autonomous agents. Our CTO playbook explains when a workflow beats an agent; the same test applies before you add a second agent.

Multi-agent systems help when the work is broad and the parts do not depend on each other. Look for these signals in the task itself:

  • Independent breadth. Comparing dozens of suppliers, checking hundreds of contracts against one policy, or researching sub-questions that do not need each other's answers.
  • More material than one context handles well. Each subagent reads its share and returns a short summary with sources, instead of one agent juggling everything.
  • Different permissions per part. A worker that reads customer records and a worker that drafts public text can run under separate, server-enforced credentials.
  • Time pressure. Independent parts run in parallel, so the task can finish sooner even if it costs more.
  • A separate check. A reviewer with fresh context and its own criteria can catch errors the author missed, though it can also share the author's blind spots.

They hurt when each step depends on the one before it, when every part needs the same shared state, or when the task is short enough that coordination eats the gain. Anthropic says the same about its own system: domains that need all agents to share the same context, or that involve many dependencies between agents, "are not a good fit for multi-agent systems today", and most coding tasks have fewer truly parallel parts than research does.

Independent parts fan out to run in parallel; dependent steps form a chain that stays with one agent or workflow.

Split work when its parts do not need each other's answers, so they can run in parallel. When each step depends on the one before it, splitting adds coordination without a gain; keep one agent or a fixed workflow.

Anthropic's write-up of its multi-agent research system (published 13 June 2025) provides a public case study of the architecture and evaluation, as of October 2026. A Claude Opus 4 lead agent planned the research and delegated searches to Claude Sonnet 4 subagents running in parallel. On Anthropic's internal research evaluation, that setup outperformed a single Claude Opus 4 agent by 90.2%.

The same article is frank about the bill. Anthropic reports that agents typically use about 4 times more tokens than chat interactions, and multi-agent systems about 15 times more. In its analysis of the BrowseComp evaluation, token usage by itself explained 80% of the variance in performance. So a large share of the gain came from spending more tokens on the problem, in parallel.

Two lessons carry over to your own work. The results belong to that system, on research tasks, so they are not a forecast for yours. And the design only makes economic sense where a better answer is worth several times the token spend.

A baseline tells you whether you need more agents at all, and if so, which part is failing. Build the simplest version that could work, then measure it:

  1. Build one agent or a predefined automation workflow with clear instructions and the tools the task needs.
  2. Collect a small test set of real tasks, with permission and with personal data removed. Anthropic started its evaluation with about 20 queries representing real usage; a set that size already shows large differences.
  3. Record quality, cost per accepted result and time for each task.
  4. Read the failures. If they come from breadth, an overflowing context or the lack of an independent check, splitting the work may help. If they come from missing knowledge, vague instructions or a weak model, more agents rarely fix them.
  5. Build the multi-agent version and run the same set. Keep it only if it wins on the measures you agreed in advance.

For grading answers, our guide to scoring RAG answers against sources covers test sets and graders you can reuse for the comparison.

Most failures happen in the hand-offs between agents. The 2025 study Why Do Multi-Agent LLM Systems Fail? annotated more than 1,600 traces across 7 popular multi-agent frameworks. It found that the gains of these systems on popular benchmarks "are often minimal", and grouped 14 failure modes into three categories:

CategoryWhat it looks like in a runDesign response
System design issuesVague roles, a task split with gaps or overlaps, steps repeatedWrite each subagent's objective, boundaries and output format; split by document, source or sub-question
Misalignment between agentsOne agent ignores another's output or withholds information it needsPass structured outputs through the orchestrator; keep sources attached to every claim
Task verificationThe run stops early, or nobody checks the merged resultAdd an explicit check against sources or tests before the result leaves the system

You will spend most of your design time on coordination. Decide in advance who resolves contradictions between subagents, what happens when one times out or returns nothing, and how you trace a run: log each delegation and tool result with a trace ID, and redact or minimise sensitive payloads instead of storing every raw output.

Subagent outputs travel with their sources attached into one merged result, which waits at an open check against sources.

Most failures happen at the hand-offs. Pass structured outputs through the orchestrator with sources attached to every claim, and check the merged result against sources or tests before it leaves the system.

Give every run hard limits and enforce permissions outside the model. A multi-agent run can grow in ways a single call cannot: more workers, more steps, more retries. Anthropic's agent guide notes that it is common to add stopping conditions, such as a maximum number of iterations, to keep control. Before production, set:

  • Caps: maximum workers, steps per worker, tokens or spend per run, and wall-clock time.
  • A rule for hitting a cap: return a clearly marked partial result or stop. If you allow a fallback to a single agent, give it its own reserved budget so an exhausted run cannot start another unbounded one.
  • Safe retries: cancel outstanding workers, and stop retries or fallbacks from repeating external actions by making those actions idempotent in your application.
  • Least privilege per worker: each subagent gets the narrowest credentials its part needs, checked by your servers. A prompt that says "do not read customer data" enforces nothing.

The separation of read and write access, and where an agent's tools should sit beside an existing system, are covered in our guide to LLM architecture for legacy applications.

Track cost per accepted result rather than cost per call. A design that costs more per run can still earn its place if it produces results the baseline could not, or the same quality fast enough to matter.

We start from one defined task with a named owner. Our agent work gives an agent approved tools, permission checks, a person in the loop for approvals, and evaluation before a controlled pilot. For a multi-agent idea, that means building and measuring the single-agent baseline first, and splitting the work only where the baseline's failures point to breadth, context size or a missing independent check.

Before you approve a multi-agent design, check that you can answer yes to each of these:

  • You measured a single agent or workflow on real tasks, and it fell short for a reason splitting can fix.
  • Each subagent has a written objective, output format and its own server-enforced permissions.
  • Every run has caps on workers, steps, spend and time, and a rule for what happens at a cap.
  • Your team checks the merged result against sources or tests before anyone acts on it.
  • You compared quality, cost per accepted result and time against the baseline, using criteria agreed in advance.

If a task of yours passes that list, our team builds AI agents with approval steps, and we can start with the baseline before anyone commits to several agents.

The baseline steps, limits and checklist in this article are TecnoStack's guidance, not requirements set by Anthropic or the study's authors.

Discuss your website, store, app or AI project in Arabic or English. We agree the scope before work starts.

Book a free scoping callCompare services and prices