From claude-code-toolkit
Executes Claude-native deep research via DAG-based query planning, parallel subagent execution, gap analysis, iterative refinement, and final synthesis. For complex topics.
npx claudepluginhub rohitg00/awesome-claude-code-toolkitThis skill uses the workspace's default tool permissions.
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.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides MCP server integration in Claude Code plugins via .mcp.json or plugin.json configs for stdio, SSE, HTTP types, enabling external services as tools.
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.