Help us improve
Share bugs, ideas, or general feedback.
From claude-code-toolkit
Decomposes research questions into a DAG of sub-questions, executes parallel subagent searches, iterates on gaps, and synthesizes a final report. Useful for thorough, structured research on complex topics.
npx claudepluginhub rohitg00/awesome-claude-code-toolkitHow this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-toolkit:deep-diveThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Autonomous deep research using the same DAG-based planning pattern as Google's Deep Research — but running entirely on Claude Code with no external dependencies.
Guides research planning: analyzes query complexity, decomposes via Self-Ask, Least-to-Most, DAG, parallel strategies; scales effort, sets stopping criteria, avoids anti-patterns.
Executes multi-agent research pipeline on any topic with Scout, Investigators, Deep Diver, Verifier, Synthesizer, and Critic reviews to produce verified, sourced reports.
Conducts deep web research with parallel agents, multi-wave exploration for gaps, and structured synthesis. Activates for investigating topics, comparing options, best practices, or comprehensive web info.
Share bugs, ideas, or general feedback.
Autonomous deep research using the same DAG-based planning pattern as Google's Deep Research — but running entirely on Claude Code with no external dependencies.
Given the research question, generate a DAG of sub-questions. Each node has:
q1, q2a)Rules for decomposition:
Print the DAG as a table so the first brain can see the plan, then immediately proceed to execution — do not wait for confirmation.
Create a task for each DAG node using TaskCreate (description: the sub-question, status: pending). Also create tasks for "Gap analysis" and "Synthesize report". Update each task to in_progress when its wave launches and completed when the subagent returns. This gives the first brain real-time visibility into progress.
| ID | Question | Depends on |
|----|----------|------------|
| q1 | ... | — |
| q2 | ... | — |
| q3 | ... | q1 |
| q4 | ... | q1, q2 |
Process the DAG in topological order:
Wave 1: Mark all Wave 1 node tasks as in_progress. Launch all nodes with no dependencies as parallel Agent subagents. As each subagent returns, mark its task completed. Each subagent gets this prompt:
You are a focused researcher. Answer this ONE question using web search:
Question: [the sub-question]
Instructions:
- Use WebSearch to find current, authoritative information
- Use 1-3 searches maximum
- Be specific and cite what you find
Return your answer in this exact format:
## Findings
[Your answer with specific facts, dates, numbers. Cite sources inline.]
## Gaps
[List anything you couldn't fully answer, contradictions you found, or
follow-up questions that would strengthen the answer. If none, say "None."]
## Sources
[List each source as: Title — URL]
Citation persistence: After each wave completes, append all sources from that wave to a file at /tmp/deep-dive-sources-[topic-slug].json as an array of {"node_id", "title", "url"} objects. This survives context compaction — if subagent results get compressed out of context, the sources file remains the source of truth. Read this file during synthesis to build the final Sources section.
Wave 2+: Once Wave 1 completes, mark all Wave 2+ node tasks as in_progress and launch nodes whose dependencies are now satisfied. Mark each task completed as its subagent returns. Include the findings from dependency nodes in the subagent prompt:
You are a focused researcher. Answer this ONE question using web search:
Question: [the sub-question]
Context from prior research:
[Paste findings from dependency nodes]
[same instructions as above]
Continue until all nodes complete.
Mark the "Gap analysis" task as in_progress. After all nodes complete, review the collected gaps across all subagents:
Only do ONE gap iteration round. This is not an infinite loop.
Mark the "Gap analysis" task as completed when done (whether gaps were found or skipped).
Mark the "Synthesize report" task as in_progress. Combine all findings into a final report. Mark it completed when the report file is written. Structure:
## Deep Dive: [Topic]
### Executive Summary
[3-5 sentences: the key takeaway]
### Findings
#### [Theme/Section 1]
[Synthesized findings from relevant nodes, not just copy-paste]
#### [Theme/Section 2]
[...]
### Open Questions
[Anything that couldn't be resolved — be honest about what's still unclear]
### Sources
[Deduplicated list of all sources from all subagents]
docs/deep-dive/ directory (create it if needed). Determine the project root from the current working directory or the context of the research request. Use a slugified topic name with date as the filename (e.g., 2026-04-02-jira-docs-from-microservices.md). Never write final reports only to /tmp — they must land in a durable location within the relevant project.