Lesson 6 of 9 · 3 min read
Deep Research Agents
In this lesson
TL;DR: A deep research agent has four stages. A planner turns the question into sub-questions that do not overlap and together cover it. Workers, usually subagents with their own context windows, search and read in parallel and return evidence: claims with the quote and source that support them, not essays. A writer composes the report from that evidence only. A verifier checks every sentence with a citation against the quoted source and removes or flags what is unsupported. Parallel workers make it fast and broad and expensive; the verifier and an evaluation on questions with known answers make it trustworthy.
After this lesson, you should be able to lay out a deep research pipeline, decide what workers should return, design citation verification, set stop conditions and budgets, and evaluate a research agent beyond "the report reads well".
Before you read
Commit to an answer now. The lesson that follows explains it, and having guessed first, even wrongly, makes the explanation easier to remember.
1A research agent's report cites a source for a figure, but the source never mentions that figure. The report reads perfectly. Which stage failed, and what should have caught it?
The pipeline
Planner
non-overlapping sub-questions
Parallel workers
own context each
Evidence
claim + quote + source
Writer
from evidence only
Verifier
every citation checked
Budgets around all of it
searches per worker, workers per run, tokens and wall time, with a named stop
Planner. The hardest part to see. Sub-questions that overlap waste workers on the same sources; gaps leave parts of the question unanswered. A good planner states each sub-question's scope and what would count as an answer.
Workers. Searching in parallel with separate context windows lets each read deeply without filling one shared window. Multi-agent research is token-hungry; the multi-agent track covers when that cost pays.
Evidence, not essays. Workers should return structured findings: the claim, the exact quote, the source URL and date, and their confidence. Prose summaries lose the link between a statement and its source, which the verifier needs.
Writer. Composes only from returned evidence and cites the finding each sentence relies on. It should not add facts from its own knowledge without marking them.
Verifier. Checks that each cited quote actually supports the sentence citing it, and removes or flags sentences that fail.
Verifying citations
The simplest useful check is lexical and structural; real systems add a model-based entailment check, calibrated against human judgement. Here is the shape:
evidence = {
"e1": {"quote": "the queue grew to 40,000 messages before the outage", "url": "https://example.org/postmortem"},
"e2": {"quote": "retries were capped at three attempts", "url": "https://example.org/runbook"},
}
report = [
("The queue reached 40,000 messages before the outage.", "e1"),
("Retries were capped at three attempts.", "e2"),
("The outage cost the company two million dollars.", "e1"),
]
def supported(sentence, quote):
words = {w.strip(".,").lower() for w in sentence.split() if len(w) > 3}
hits = sum(w in quote.lower() for w in words)
return hits / max(len(words), 1) >= 0.5
kept = [s for s, ref in report if supported(s, evidence[ref]["quote"])]
print(len(kept), "of", len(report), "sentences kept")
# => 2 of 3 sentences kept
The third sentence cites the post-mortem for a figure the post-mortem never states, so it is cut. A word-overlap check is crude (paraphrases fail, coincidences pass); it shows where verification sits, not how strong it must be.
Stop conditions
Research has no natural end. Bound it: a maximum number of sub-questions, searches per worker and total tokens; a rule that the planner may fill gaps once, not indefinitely; and a stop when new sources stop adding new claims. Report what was not covered rather than spending without limit.
Evaluating a research agent
- Questions with known answers, including ones requiring several sources, scored on correctness.
- Citation precision: the share of cited sentences actually supported by their source.
- Coverage: whether the report addresses each part of the question.
- Cost and time per report.
A report that reads well is not evidence of anything; graders read for support, not style.
Say it in 30 seconds
"A deep research agent plans non-overlapping sub-questions, sends parallel workers, usually subagents with their own context windows, to search and read, and has them return evidence, claim plus quote plus source, not essays. A writer composes only from that evidence, and a verifier checks every cited sentence against its quote and cuts what isn't supported. It's bounded by budgets on sub-questions, searches, tokens and time, with one gap-filling pass and a stop when new sources add nothing. I evaluate it on questions with known answers, citation precision, coverage and cost, not on how well the report reads."
Check yourself
Answer aloud or on paper before revealing. Producing the explanation unaided is exactly what a panel listens for.
1Why should research workers return structured evidence rather than prose summaries?
2What is citation precision, and why measure it separately from answer correctness?
3Name three budgets or stop conditions for a deep research run.