How we built our multi-agent research system

Our Research feature uses multiple Claude agents to explore complex topics more effectively. We share the engineering challenges and the lessons we learned from building this system.

Overview

The article discusses the development of a multi-agent research system, detailing its architecture, benefits, and the lessons learned during its transition from prototype to production. It emphasizes the importance of agent coordination, prompt engineering, and the challenges faced in building reliable AI applications.

What You'll Learn

1

How to design a multi-agent system for complex research tasks

2

Why prompt engineering is critical for agent coordination

3

How to evaluate multi-agent systems effectively

4

When to use asynchronous execution in agent architectures

Prerequisites & Requirements

  • Understanding of multi-agent systems and AI principles
  • Familiarity with AI/ML tools and frameworks(optional)

Key Questions Answered

What are the benefits of using a multi-agent system for research?
Multi-agent systems excel in handling open-ended research tasks due to their ability to operate autonomously and adapt based on discoveries. They allow for parallel exploration of different aspects of a query, enhancing efficiency and breadth of information retrieval.
How does the architecture of the multi-agent system function?
The architecture employs an orchestrator-worker pattern where a lead agent coordinates the research process and delegates tasks to specialized subagents that operate in parallel, allowing for efficient information gathering and processing.
What challenges arise in evaluating multi-agent systems?
Evaluating multi-agent systems is complex due to their non-deterministic nature. Unlike single-agent systems, agents may take different paths to achieve the same outcome, necessitating flexible evaluation methods that focus on final results rather than prescribed steps.
What role does prompt engineering play in agent performance?
Prompt engineering is crucial as it guides agents in task execution and coordination. Effective prompts help prevent duplication of efforts among subagents and ensure that tasks are clearly defined, which enhances overall system efficiency.

Key Statistics & Figures

Performance improvement of multi-agent system over single-agent system
90.2%
This improvement was observed in internal evaluations when using Claude Opus 4 as the lead agent with Claude Sonnet 4 subagents.
Token usage increase in multi-agent systems
15× more tokens than chats
Multi-agent systems typically consume significantly more tokens compared to standard chat interactions, necessitating high-value tasks to justify the cost.
Variance explanation in BrowseComp evaluation
95%
Three factors, including token usage, tool calls, and model choice, accounted for this variance in performance evaluation.

Technologies & Tools

AI/ML
Claude
Used as the lead agent and subagents in the multi-agent research system.

Key Actionable Insights

1
Implement a robust prompt engineering strategy to enhance agent performance.
By carefully designing prompts that clearly define tasks and expectations, you can significantly improve the efficiency and effectiveness of multi-agent systems, reducing errors and enhancing coordination.
2
Utilize parallel tool calling to speed up research tasks.
Incorporating parallel execution of subagents and tools can drastically reduce research time, allowing agents to cover more ground in less time, which is particularly beneficial for complex queries.
3
Adopt a flexible evaluation framework for multi-agent systems.
Since agents may take varied paths to achieve results, using a flexible evaluation method that focuses on outcomes rather than strict adherence to processes will yield more accurate assessments of agent performance.
4
Consider asynchronous execution to improve system scalability.
Transitioning to asynchronous execution can alleviate bottlenecks caused by synchronous task handling, enabling agents to operate more independently and efficiently.

Common Pitfalls

1
Overloading agents with excessive subagents for simple queries.
This can lead to inefficiencies and confusion, as agents may duplicate efforts or become distracted. It's important to establish clear task boundaries and appropriate scaling rules to prevent this issue.
2
Failing to adapt prompts based on agent performance feedback.
Without iterative improvements to prompts based on observed agent behaviors, systems may continue to struggle with the same issues, leading to suboptimal performance.

Related Concepts

Multi-agent Systems
Prompt Engineering
AI/ML Evaluation Techniques
Asynchronous Execution In AI Architectures