Consider the following request:
“Find all meeting records about the proposed library expansion last year.”
To answer it, an agent needs to find the right sources, try searches, and inspect the results. Some searches won't be useful. Others will find records that need a closer inspection. It also needs to know whether it has searched enough to answer “all.”
Our first search agent at Peregrine had a monolithic design: one agent, one model, one context. It performed searches, inspected results, and wrote the answer. As we added capabilities, we wanted to move some of that exploratory work to faster models while keeping a frontier model responsible for what the user sees.
We moved those workflows into specialist agents. In our production search comparison, median latency was an estimated 17% lower overall. Median main-agent output was about 39% lower, and median net context growth per run was 41% lower. Internal quality benchmarks supported consistent answer quality throughout development.
Scaling axes
Our multi-agent setup is inspired by the orchestrator-workers pattern described in Anthropic's Building effective agents: a main agent delegates tasks and uses the results to produce an answer. We applied this in two ways.
Vertical scaling uses specialists for different capabilities within a request: schema discovery, record search, or file and media search. Horizontal scaling splits independent jobs across agents, such as separate data-source integrations or coding tasks. Both can run in parallel.
Figure 1. Vertical specialists divide responsibilities within a request. Horizontal workers take on independent jobs. Both can run in parallel.
Vertical scaling fit our search system well. A search specialist only has to find and check records. It doesn't need to satisfy the full set of user-facing requirements. The main agent keeps those instructions and decides what reaches the user.
Subagent coordination
The main agent uses tools to launch and coordinate subagents. It spawns subagents with task parameters such as search filters or context, reads findings while work is in progress, and asks follow-up questions. Subagents publish findings as they work, including the evidence and anything still uncertain.
In Anthropic's 2025 write-up of Claude Research, the lead waited for each batch of subagents to finish before proceeding. We alter this slightly by allowing subagents to publish matches immediately, which benefits performance for certain queries (more on this below).
Figure 2. Specialists publish findings while they work. The main agent checks the evidence and writes the answer.
After a task finishes, the main agent can ask the same subagent to refine its result. For example, does a meeting record actually discuss the expansion, or just mention the library? The follow-up uses the subagent's existing history, so it can continue from the work it already did. It doesn't have to get everything right in one round.
Key design points
Published reports on specialist subagents show mixed results. Algolia found that delegating e-commerce retrieval lowered model cost but took longer to finish than calling tools directly. Cognition reported shorter coding runs with Fast Context, its SWE-grep code retrieval feature, enabled than with it off.
While we cannot compare our system to either of those directly, we did identify several key design points that were necessary in order for vertical scaling to work well in our system without any quality loss. Without these ingredients, searches would sometimes take longer in the multi-agent setup. We share some of these below.
1. Bounding subagent behavior
“In the last day” can mean different things. If the intended window is the previous 24 hours, searching yesterday's calendar date or today so far gives the wrong coverage. We found that fast models are less capable at guessing certain search filters, even when given the same instructions, so allowing the main agent to bound subagent searches reduced the decision space of the subagents and resulted in better overall performance.
The stronger main agent has the full conversation and can resolve the intended range and time zone, asking the user if necessary. It then passes explicit timestamps with UTC offsets in the task's search scope. The specialist can focus on finding records within that scope rather than deciding what the date range should be.
Figure 3. An illustrative UTC example where “the last day” means the previous 24 hours. The main agent resolves the intended window before delegating, rather than leaving the specialist to guess.
2. Eagerly publishing findings
We found that subagents sometimes do not know when to stop searching. They frequently aim for exhaustive search, which makes searches take longer than necessary when the first match is all the user needed.
To handle this, we allow specialists to publish findings mid-execution. This alerts the main agent so it can decide on how to handle the event. The main agent reads and checks findings and subagent traces while the task continues. The main agent can then decide to respond immediately or continue processing the request.
Figure 4. Publishing a finding lets the main agent check it before the search task finishes. This example needs one verified match; the opening request for all meeting records still requires sufficient coverage.
3. Asking follow-up questions
A specialist may read the right document but return a summary that leaves out a detail needed for the answer. For example, “the expansion was discussed” does not tell the main agent whether funding was approved, even if the specialist already read that decision in the minutes. To achieve the desired context reduction, we need to keep exploratory context out of the main agent, but give it the ability to recall important context from subagents as needed.
After the task finishes, the main agent can ask the same specialist for the missing decision and supporting passage. The follow-up uses the specialist's saved history, so it can continue from the evidence it already examined instead of starting the search again.
Figure 5. A follow-up to a completed task reuses the specialist's history. The specialist checks the evidence and returns the missing detail; the main agent remains responsible for the answer.
Production analysis
We compared production runs with and without retrieval specialists. In Before, the main agent called the search tools directly. In After, it invoked the corresponding specialists. For each metric, we show an overall result and a breakdown by workflow:
- Structured search: Finding records with explicit filters on dates, locations, or other properties.
- Semantic search: Finding records relevant to a natural-language query, including matches that use different wording.
- Schema discovery: Understanding data storage, semantics, and relationships.
- File search: Locating files by name and metadata.
- Support search: Looking up product documentation to answer questions about Peregrine.
For the vertical specialists, we used a high throughput model with minimal reasoning, while the main agent in the After system control for the model id and reasoning level.
Latency
We found that estimated median run latency was 17% lower After moving to specialist subagents. Generating a search tool call using a frontier model takes orders of magnitude more time than actually executing the call, and is often iteration-heavy and does not require frontier reasoning.
Figure 6. Estimated median full-run latency overall and by search workflow. Each group sets its own Before value to 1.
Output tokens generated
We also compared median output from the main agent before and after the change. The main agent runs on a frontier model, so reducing its generation is a particularly important lever for cost and latency. It was about 39% lower After.
We also show the median output from specialists in green to give a sense of how much generation happens outside the main agent. Those tokens come from faster models and do not carry the same cost or latency per token.
Figure 7. Main-agent and specialist output medians for Before (left) and After (right). Each group uses its own Before reference of 1.
Context growth
Specialists keep their exploratory tool calls and results in their own message histories. For each run, we took the token difference between the main agent's final and first API inputs. Median net context growth was 41% lower After.
In our observation, larger contexts have higher latencies—presumably due to pre-fill—and more frequent compactions, so reducing context usage improves system performance along multiple dimensions.
Figure 8. Median net context growth overall and by search workflow. Growth is final input minus first input. Each group sets its own Before median to 1.
Figure 8. Median net context growth overall and by search workflow. Growth is final input minus first input. Each group sets its own Before median to 1.
Conclusion
Using specialist subagents allows exploratory output to come from specialists running on faster models. Specialists generate high-frequency search iterations, while the main agent’s stronger reasoning and instruction-following capabilities are reserved for bounding, quality assurance, and coordination. When subagent failure modes are properly handled, this allows for our system to operate with lower latency and, in the main agent, use less context and generate fewer output tokens.
Acknowledgements
Thank you to Ben Rudolph and Ashim Datta for their support in authoring this article; Cory Zue and Hunter Thompson for their input on scaling matters; and Wyatt Berlinic, Jia Wang, Matthias Reichenbach, Jeff Ericson, Betty Hu, and Milap Patel for their feedback on design, implementation, evaluation, and rollout.

