Judge a multi-agent design
Decide whether a problem justifies parallel or specialized agents, and find the flaw in how a proposed orchestrator delegates, shares context and handles failure.
Scenario
A product team demos its new "agent swarm": a planner, five researchers, a critic and a writer, all on Claude. It answers a question about the travel policy in 40 seconds.
The same question, sent once to Claude with the policy attached, takes four seconds and gives the same answer. The swarm was designed before anyone asked what the extra agents were for.
Explanation
A multi-agent system is several agents (Claude using tools in a loop) working together. The common shape is orchestrator-worker: a lead agent plans, delegates subtasks to subagents that each have their own context window, and synthesizes what they return.
When it pays. In Anthropic's account of its Research feature, multi-agent designs did best on:
- breadth-first work with several independent directions that can run in parallel;
- information that exceeds one context window, since each subagent reads its share and returns only a condensed result;
- many complex tools, where separate agents get focused prompts and narrower toolsets.
What it costs. Anthropic reported that in its own data agents typically used about 4 times the tokens of a chat interaction, and multi-agent systems about 15 times. Those are one team's figures for its research system, not a rule, so measure your own; the point stands that the task must be worth the extra tokens. Work where every agent needs the same context, or where steps depend tightly on each other (much coding work), fits poorly. Anthropic's general advice is to start with the simplest design and add complexity only when it measurably helps.
What the orchestrator must get right:
- The brief. A subagent starts with a fresh context: the delegation prompt is all it gets from the parent, so constraints, file paths and decisions must be in it. Each brief needs an objective, an output format, the tools or sources to use, and clear boundaries. Vague briefs cause duplicated work and gaps.
- Effort. Scale the number of subagents to the task. Early versions of Anthropic's system spawned far too many for simple queries.
- Hand-back. Ask for condensed results. Large outputs can go to storage, with only a reference passed back, so the lead's context isn't flooded and nothing is lost in retelling.
- Failure. Errors compound in long-running agents. Checkpoint state and resume from where it failed, with retries for transient errors, instead of restarting the whole run.
Worked example
A hospital group's procurement lead asks for a comparison of 24 telehealth vendors: security certifications, integration with the group's records system, and contract terms, each from the vendor's own documents.
Before (single agent): one agent reads vendor after vendor. By vendor 15 its context is full of earlier documents; the last vendors get thin, partly guessed rows, and the run takes hours.
After (orchestrator-worker): the lead splits the vendors into six groups of four and sends each subagent a brief like this:
Objective: for vendors 13-16 only, fill one row per vendor: security certifications, records-system integration (yes/no/partial, with the page), contract term and notice period.
Sources: only the vendor documents in /vendors/13-16. If a field isn't stated, write "not stated"; don't search the web.
Output: a JSON array of 4 rows, saved to /results/group-3.json. Return only the file path and any open questions.
The six groups run in parallel. If group 3 fails, the lead reruns group 3, not the other five. It then merges the files into one table.
The same team's next request, "answer staff questions about the travel policy", gets a single call with the policy attached. Nothing in it runs in parallel or overflows a context.