---
title: "Claude Deep Research: How It Works & How to Build Your Own"
description: "How Claude's Research mode works (a lead agent plus parallel subagents), which plans have it, the numbers Anthropic published, the prompting lessons, and a tested orchestrator-worker research agent in Python, with what went wrong when we ran it."
category: "guides"
url: https://keirolabs.cloud/blog/claude-deep-research
published: 2026-11-24
updated: 2026-11-24
---

# Claude deep research: how Claude's Research mode works, and how to build your own

## The 60-second version

**Claude's Research mode is a multi-agent system: a lead agent plans the research and sends several subagents to search in parallel, then writes a cited report.** In the Claude apps it's called **Research**. It's available on paid plans and needs web search turned on.

| | Claude Research |
|---|---|
| **Who can use it** | Paid Claude plans: Pro, Max, Ultra, Team and Enterprise, on web, desktop and mobile |
| **Requirement** | Web search must be on |
| **How it works** | A lead agent plans, spins up subagents that search in parallel, then a citation step attaches sources |
| **Model** | Claude Opus 5.5, falling back to Claude Opus 4.8 when needed, per Claude's help center |
| **Limits** | Same usage limits as normal chats, but research uses them up faster |
| **Published result** | The multi-agent design outperformed a single agent by 90.2% on Anthropic's internal research eval |

Sources: Claude's help article [Use research on Claude](https://support.claude.com/en/articles/11088861-use-research-on-claude) and Anthropic's engineering post [How we built our multi-agent research system](https://www.anthropic.com/engineering/multi-agent-research-system) (June 2025).

## How does Claude deep research work?

**Anthropic describes "an orchestrator-worker pattern, where a lead agent coordinates the process while delegating to specialized subagents that operate in parallel."** In the version described in the engineering post:

1. **The lead agent plans.** It reads the question, decides on an approach, and saves the plan to memory, because long research can overflow the context window.
2. **Subagents search in parallel.** Each gets a sub-question; it "independently performs web searches, evaluates tool results using interleaved thinking, and returns findings."
3. **The lead agent synthesizes,** and can send out more subagents if gaps remain.
4. **A citation agent** processes the documents and the report "to identify specific locations for citations."

**In that post, the lead agent was Claude Opus 4 and the subagents were Claude Sonnet 4.** Today's Research mode runs on newer models, but the architecture is the published reference.

## The numbers Anthropic published

- **90.2% better** than single-agent Claude Opus 4 on their internal research eval.
- **Token usage alone explained 80% of the performance variance** on the BrowseComp evaluation; three factors together explained 95%.
- **Agents use about 4× the tokens of a chat, and multi-agent systems about 15×.** Deep research is expensive by design.
- **Parallel tool calls cut research time by up to 90%** for complex queries: the lead spins up 3 to 5 subagents in parallel, and each uses 3 or more tools in parallel.
- **Effort scales with the question:** simple fact-finding gets 1 agent with 3 to 10 tool calls; comparisons get 2 to 4 subagents with 10 to 15 calls each; complex research gets more than 10 subagents.

**The takeaway:** deep research works mostly by spending more tokens on more searches, organized so they run at the same time.

## What made it work: the prompting lessons

The post lists eight lessons. The ones that matter most if you build your own:

- **Teach the orchestrator how to delegate.** Vague sub-tasks made subagents duplicate each other's work. Each one needs an objective, an output format, tool guidance and clear boundaries.
- **Scale effort to query complexity.** Early versions spawned 50 subagents for simple queries.
- **Start wide, then narrow down.** Agents defaulted to long, specific queries that returned few results; short, broad queries first work better.
- **Tool design and selection are critical.** Bad tool descriptions send agents down the wrong path.
- **Parallel tool calling transforms speed and performance.**

## Claude Research vs ChatGPT and Gemini deep research

**All three follow the same idea:** plan, search many times, read, synthesize with citations, taking minutes rather than seconds. The differences that matter in practice are which sources each can reach (web only, or also your connected apps), how long a run takes, the usage limits on your plan, and how the report cites sources. **Compare them on your own questions:** run the same three research questions through each and check every citation against its source.

## Can I use Claude deep research in the API?

**Research mode is a feature of the Claude apps, not a single API endpoint.** In the API you build the same pattern yourself: Claude with a search tool, in an orchestrator-worker loop. Claude's API has a built-in web search tool ([Claude web search tool](/blog/claude-web-search-tool)), or you can give Claude your own search API as a tool and pass results back as `search_result` blocks for native citations.

## Build your own deep research agent

**The orchestrator-worker pattern in about 40 lines.** A lead call plans sub-questions, subagents search and summarize in parallel, and a final call writes the report:

```python
import json, os, requests
from concurrent.futures import ThreadPoolExecutor

def search(query: str, n: int = 6) -> list[dict]:
    r = requests.post("https://api.keirolabs.cloud/api/v2/search/lite",
                      headers={"Authorization": f"Bearer {os.environ['KEIRO_API_KEY']}"},
                      json={"query": query, "count": n}, timeout=30)
    r.raise_for_status()
    return r.json()["results"]

def plan(question: str, today: str) -> list[str]:
    text = llm(f"Today is {today}. Split this research question into 2-4 independent sub-questions, "
               f"each answerable with a few web searches. Return only a JSON array of strings.\n\n{question}")
    return json.loads(text[text.find("["): text.rfind("]") + 1])[:4]

def subagent(sub: str) -> dict:
    """One worker: search, then return a compact finding with its sources."""
    results = search(sub)
    listing = "\n".join(f"- {r['title']} ({r['url']}): {r.get('snippet', '')}" for r in results)
    finding = llm(f"Sub-question: {sub}\n\nSearch results:\n{listing}\n\n"
                  "Answer in at most 120 words, using only these results. After each fact, put its URL in parentheses.")
    return {"question": sub, "finding": finding}

def research(question: str, today: str = "2026-11-24") -> str:
    subs = plan(question, today)
    with ThreadPoolExecutor(len(subs)) as pool:            # subagents run in parallel
        findings = list(pool.map(subagent, subs))
    brief = "\n\n".join(f"## {f['question']}\n{f['finding']}" for f in findings)
    return llm(f"Write a concise report answering: {question}\n\n"
               f"Use only these findings and keep their URLs as citations.\n\n{brief}")
```

`llm()` is any function that sends a prompt to a model and returns text: Claude through the Anthropic SDK, or anything else.

## What happened when we ran it

**We asked:** "How do AWS, Microsoft and Perplexity each sell web search to AI agent developers in 2026?" The planner produced three good sub-questions, one per company, and the three subagents ran in parallel. **The report was fluent, and it had two real problems:**

1. **It missed the biggest fact.** AWS released a standalone web search API for agents in mid-November 2026 ([AgentCore Web Search API](/blog/agentcore-web-search-api)), about two weeks before our run. The AWS subagent did one search, got generic AWS pages, and reported that "specific search API offerings and pricing for 2026 are not detailed."
2. **One citation pointed to the wrong source.** A claim about an AWS SDK was cited to an unrelated Anthropic article.

**That's the gap between this sketch and Claude's Research mode,** and it matches Anthropic's lessons: subagents need several searches each (broad first, then narrow), they need to read full pages rather than only snippets, and citations need a separate checking step.

## From sketch to real deep research

- **Let each subagent loop:** search, read, decide whether it has enough, search again. Cap it at 5 to 15 tool calls.
- **Read full pages for the best results,** not just snippets: Keirolabs `/search/content` returns results with page text in one call.
- **Pass today's date everywhere,** and ask for recent sources when the question is about "now".
- **Check citations:** confirm each claim's quoted text appears in the source it cites ([LLM citations](/blog/llm-citations)).
- **Scale effort to the question:** one agent for simple lookups, parallel subagents for comparisons.
- **Or skip the build:** Keirolabs `/deep` runs multi-step research in one call, and scores 96.5% on SimpleQA ([deep search update](/blog/deep-search-update)). There's more on the build-vs-buy choice in [deep research APIs: turnkey vs build your own](/blog/deep-research-apis-2026-turnkey-vs-build-your-own).

New Keirolabs accounts get up to 2,000 free credits with no card ([get a key](https://platform.keirolabs.cloud/register)).
