Multi-step autonomous research methodology for deep investigation tasks with structured synthesis
Trigger phrases: "research", "investigate", "deep dive", "find evidence for", "comprehensive analysis of"
Never synthesize without reading sources. Every claim in the final report must trace to a source retrieved during Phase 2.
Phase 1: Scope — Restate as one research question. Define 3–5 sub-questions, success criteria, constraints, and non-goals. Cannot proceed without a written scope block.
Phase 2: Multi-Source Search — Run 3+ WebSearch queries. WebFetch each source URL. pnpm search:code for prior-art. Maintain evidence log: URL, claim, confidence (HIGH/MEDIUM/LOW), sub-question. Each sub-question needs ≥2 independent sources.
Phase 3: Synthesis — Group evidence by sub-question. CONSENSUS (2+ sources) → HIGH; CONFLICT → LOW, flag for user. Build synthesis matrix. Label unsupported claims [UNVERIFIED].
Phase 4: Validation
Phase 5: Report — Save to .claude/context/reports/backend/<topic>-research-<YYYY-MM-DD>.md with sections: Executive Summary, Findings (finding + confidence + evidence per sub-question), Conflicts, Recommended Actions, Knowledge Gaps, Sources.
| Tool | Phase | Purpose |
|---|---|---|
WebSearch | 2A | Broad source discovery |
WebFetch | 2B | Extract content from URLs |
Read / Grep | 2C | Search codebase for prior art |
Write | 5 | Save report |
.claude/context/reports/backend/<topic>-research-<YYYY-MM-DD>.md.claude/context/tmp/research-evidence-<YYYY-MM-DD>.mdpnpm search:code "<query>" — primary intent-based searchSkill({ skill: 'ripgrep' }) — exact keyword/regex matchesWebSearch / WebFetch — external sourcesGrep — fallback for single-file targeted checksBefore starting:
Read .claude/context/memory/learnings.md
Check for: prior reports on same topic (avoid duplicates), unreliable sources in issues.md, relevant ADRs in decisions.md.
After completing:
.claude/context/memory/learnings.md.claude/context/memory/issues.md.claude/context/memory/decisions.mdASSUME INTERRUPTION: Save evidence log and partial findings before Phase 3.