Agentic Pattern Libraryby Vikas Goyal
← All patterns
49

Deep Research Loop

Also known as: deep research, research agent, iterative research

Iteratively plan, search, read and assess until new sources stop adding information, then write a cited synthesis.

TrackAgentic systems FamilyCore loop Maturity Established ChangesDecisionContext
01

Problem

Some questions can’t be answered from one search or one retrieval pass: market scans, technical comparisons, due diligence, literature reviews. A single pass finds the obvious sources and misses the rest, while an open-ended agent keeps searching long after it has enough, or stops early and presents a thin answer as complete.

  • Good research needs many searches, and each answer raises new questions.
  • Every round costs time and tokens, with diminishing returns.
  • Sources conflict, repeat each other or vary widely in quality.
  • Readers need to check claims, so every statement needs a source.
02

Solution

Run research as a loop with an explicit stopping rule. First break the question into sub-questions and a research plan. Each round, search, read the most promising sources and extract findings with their citations into a running notes file. Then assess: which sub-questions are answered, where sources conflict, and what’s still missing. Plan the next round around the gaps. Stop when a round adds little new information, all sub-questions are covered, or the budget runs out. Finally, write a synthesis where every claim cites its source and open questions or conflicts are stated, not hidden.

03

Diagram

Questionsplit it up Searchper gap Read + extractwith citations Assessgaps · conflicts Synthesisclaim → source notes file stop: low new info,full coverage or budget gaps remain → plan next round

The assess step drives everything. It decides what to search next and when new rounds are no longer worth their cost.

04

When to use

Use it when

  • Questions that need many sources to answer well
  • The reader needs citations they can check
  • Minutes of runtime are acceptable for a better answer
  • Reports, briefs, comparisons or due diligence

Avoid it when

  • A single lookup or one retrieval pass answers the question; use Agentic RAG
  • Answers are needed in seconds
  • Sources are behind access the agent doesn't have, so the loop can only find surface material
05

Trade-offs

Latency Several rounds of search and reading; minutes, not seconds
Cost Many searches and long reads per question
Complexity Sub-questions, notes file, stopping rule, citations
Reliability Broad coverage with checkable sources

Gains

  • Covers a topic far more broadly than a single search
  • Every claim traceable to a source
  • Explicit gaps and conflicts instead of false confidence

Costs

  • Slow and expensive per question
  • Source quality varies; weak sources can dominate if not filtered
  • Stopping rules need tuning to avoid quitting early or looping on
06

Worked example

Scenario
A solutions architect asks how mid-size insurers are using AI agents in claims handling, for a customer briefing.
  1. PlanSplits the question into 4 sub-questions: use cases in production, measured results, regulatory concerns, and common failure points.
  2. Round 1Runs 8 searches and reads 12 sources. Use cases and failure points are covered, but measured results come only from vendor marketing.
  3. AssessFlags a gap: no independent results. Flags a conflict: two sources disagree on whether claims agents may approve payouts on their own.
  4. Round 2Targets industry association reports and regulator guidance. Reads 7 more sources, which resolve the payout question: human approval is expected above a threshold.
  5. Round 3 → stopAdds only 1 new finding from 6 sources. Information gain is below the stop threshold, so the loop ends.
  6. SynthesisA 2-page brief with 24 citations. It states one open question plainly: independent ROI data is still scarce.
07

Failure modes

FailureSymptomMitigation
Never-ending researchRounds keep running with little new informationStop on low information gain, full coverage or budget, whichever comes first
Shallow stopAnswer written after one round, missing whole sub-questionsCheck every sub-question is answered or marked open before writing
Source echoMany sources repeating one original claim count as consensusTrace claims to their original source; weight independent sources
Unsupported synthesisThe final write-up adds claims no source madeRequire a citation per claim; verify with Draft–Verify