Curated summary
How we built our multi-agent research system
Anthropic's engineering team describes how they built the multi-agent Research feature for Claude, where a lead agent plans a query and spawns parallel subagents that search simultaneously. Their internal evaluation found the multi-agent setup (Claude Opus 4 lead, Sonnet 4 subagents) outperformed a single Opus 4 agent by 90.2%, mainly because it spends more tokens on hard, parallelizable problems. The post argues that this gain comes with roughly 15× the token cost of chat, so it only suits high-value, breadth-first tasks. Moving these systems to production, they add, is much harder than building a prototype.
Why Multi-Agent Systems Help Research
- Research is open-ended and path-dependent, so the steps can't be hardcoded in advance, and a linear pipeline can't handle it.
- Subagents compress information by working in parallel, each with its own context window, and returning only the most important findings to the lead agent.
- Token usage explained about 80% of performance variance on the BrowseComp evaluation, with tool calls and model choice explaining most of the rest, so distributing work across agents adds reasoning capacity.
- Agents use about 4× the tokens of chat, and multi-agent systems about 15×, so they fit only tasks valuable enough to justify the cost.
- Coding tasks, which have fewer parallelizable subtasks and need shared context, are a poor fit today.
Architecture: Orchestrator-Worker Pattern
- The lead agent analyzes the query, develops a strategy, and spawns subagents that iteratively search and return condensed results.
- Unlike static RAG, which fetches chunks similar to the query once, this design runs multi-step searches that adapt to new findings.
Prompt Engineering Principles
- Simulate the agents: Running the exact prompts and tools step by step revealed failure modes such as agents continuing after they already had enough results, using overly verbose queries, or picking the wrong tools.
- Delegate with detail: Vague instructions caused duplicated work and gaps. Each subagent needs an objective, an output format, tool guidance, and clear task boundaries.
- Scale effort to complexity: Simple fact-finding uses 1 agent with 3–10 tool calls, comparisons use 2–4 subagents with 10–15 calls each, and complex research uses more than 10 subagents. Without these rules, early versions overinvested in simple queries.
- Design tools deliberately: Each tool needs a distinct purpose and clear description, and agents should examine available tools first and match tool choice to user intent.
- Let Claude improve its own tools: A tool-testing agent that rewrote flawed MCP tool descriptions reduced task completion time by 40%.
- Start wide, then narrow: Agents should begin with short, broad queries and refine from there, instead of starting with long, specific ones.
- Use extended thinking as a scratchpad: The lead agent plans and sets subagent roles, and subagents evaluate tool results with interleaved thinking.
- Parallelize: The lead agent spins up 3–5 subagents in parallel, and subagents use 3+ tools in parallel, cutting research time by up to 90% on complex queries.
Evaluating Multi-Agent Systems
- Agents can reach the same correct answer by different valid paths, so evaluations should judge outcomes and reasonable process rather than fixed steps.
- Start with about 20 representative queries. Early changes have large effects, so small samples reveal them.
- An LLM judge using a single prompt that outputs 0.0–1.0 scores and a pass/fail grade agreed best with human judgment. It scores factual accuracy, citation accuracy, completeness, source quality, and tool efficiency.
- Human testing caught problems automation missed, such as early agents favoring SEO-optimized content farms over authoritative academic PDFs or personal blogs. Adding source-quality heuristics fixed this.
Production Reliability Challenges
- Stateful errors compound: Agents run for long periods, so the system checkpoints and resumes from the failure point rather than restarting, combining model adaptability with retry logic.
- Debugging is hard: Because agents are non-deterministic, the team added full production tracing and monitors decision patterns, without reading individual conversation contents, to protect privacy.
- Deployment is delicate: Agents may be mid-process during updates, so rainbow deployments gradually shift traffic between old and new versions while both run.
- Synchronous execution is a bottleneck: Lead agents wait for each subagent batch to finish and can't steer subagents mid-task. Asynchronous execution would add parallelism but complicates result coordination, state consistency, and error propagation.
Conclusion
The authors conclude that multi-agent research systems can run reliably at scale, but only with careful engineering, extensive testing, detailed prompt and tool design, and close collaboration across research, product, and engineering. Users reported finding business opportunities, navigating healthcare options, fixing technical bugs, and saving days of research work.
Appendix Tips
- End-state evaluation: For agents that change persistent state, judge whether the final state is correct, using checkpoints for complex workflows.
- Long-horizon memory: Agents summarize completed phases, store essential information externally, and hand off to fresh subagents when context limits approach.
- Filesystem artifacts: Subagents store outputs such as code, reports, or data visualizations in external systems and pass lightweight references to the coordinator, which avoids information loss and reduces token overhead.
Related reading
Continue with another curated summary.