/deep-research-graph:deep-researchfrom Deep Research Graph
Run a fixed research graph — a planner splits the question into angles, one researcher per angle works in its own context, a skeptic panel attacks the whole corpus, and a merge node writes a cited brief that rules on every objection in the open. Use when the user says /deep-research, 'run deep research on X', or asks a question that needs more than one agent loop.
Ships in Deep Research Graph. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A predefined subagent graph that replaces the regular agent loop for research questions. The graph is identical every run — only the question varies.
PLAN ──▶ RESEARCH (parallel: one node per angle, own context each)
│
▼
SKEPTIC (reads the WHOLE corpus; 1 node carrying every lens by default)
│
▼
MERGE ──▶ writes the brief
Human gate: the graph returns a brief. It never acts on it. Do not book, buy, email, commit, file, or change anything the brief recommends. Present it and stop.
## Contested
section is the audit trail: read the rulings against the objections if one looks convenient.Extra skeptic nodes are not a jury. Same model, same corpus, same prompt shape means their verdicts correlate, so counting votes would be theatre. More nodes means fewer lenses per context, which buys depth per lens. All four lenses are covered at every setting.
Take these from the user's request. Ask for nothing but the question.
| arg | default | meaning |
|---|---|---|
question | required | the research question |
speed | medium | fast / medium / slow — how deep the nodes dig |
skeptics | from speed | 1–4 nodes. Lens coverage is always complete; more nodes = more depth per lens |
| angles | findings per angle | skeptic nodes | reading | brief | |
|---|---|---|---|---|---|
fast | 2–3 | 2–4 | 1 | one search pass, skim the 2–3 strongest sources | tight half page |
medium | 3–5 | 3–8 | 1 | search, then read the strongest sources; prefer primary over aggregators | 1 page |
slow | 4–6 | 4–12 | 4 | iterate: follow citations to primary sources, verify numbers at origin, chase the dissent | no length limit |
With 1 node, that node carries all four. With 2, split them 2 and 2. With 4, one each.
There are two paths. Check for the workflow first; fall back to subagents.
If the Workflow tool is available in this session, run the bundled script instead of the
steps below. It holds the graph in code, so intermediate results never enter your context:
Workflow({ name: "deep-research-graph", args: { question: "<the question>", speed: "medium" } })
If that name does not resolve, pass the script directly instead — it ships with this plugin at
workflows/deep-research.js, two levels up from this file:
Workflow({ scriptPath: "<plugin root>/workflows/deep-research.js", args: { ... } })
Invoking this skill is the user's opt-in to run that workflow. If the tool is not available — Cowork, or a session without dynamic workflows — use Path B. Either way the user gets the same brief, so do not narrate which path you took.
Every node writes its output to a file and the next node reads it. You never read the findings yourself. That is the point: it keeps the corpus out of the main conversation, the same way the workflow does. Passing findings back through your own context defeats the graph.
Pick a short kebab-case slug from the question. Create:
.deep-research/<slug>/findings/
.deep-research/<slug>/review/
Call that directory RUN below. Use the absolute path when you talk to subagents — they may
not share your working directory.
Do this yourself, in one pass. No subagent.
Split the question into angles that fit this question. Do not force a template. Axes you may mix or ignore: sub-question, source type (academic / industry / news / primary documents / practitioner), discipline, time period, geography, stakeholder, case-for vs case-against.
Rules:
Give each angle an id A1, A2, … and a focus of 2–3 sentences: what it must establish and
where to look. log the split to the user in one line.
Spawn every researcher in a single message so they run at the same time. Each gets:
You are researcher node
<Aid>("") in a deep-research graph.QUESTION:
<question>ANGLE FOCUS:<focus>Research ONLY this angle.
<reading style from the speed preset>. Aim for<N>–<M>findings that are individually verifiable. Each finding needs a precise claim, the evidence behind it (specifics: numbers, dates, direct statements), and the sources that support it. Flag your confidence honestly. Do not pad. A finding without a source is not a finding, and fewer solid findings beat a padded list.Write your output to
<RUN>/findings/<Aid>.mdin exactly this format:# <Aid>: <title> <2-3 sentence summary of what this angle established> ## [<Aid>F1] claim: <one precise sentence> evidence: <the specifics> confidence: high | medium | low sources: - <title> — <url>Number findings from 1. Ids are structural and are quoted downstream, so
<Aid>F3must stay<Aid>F3. Reply with one line only: the file path and the finding count. Do not paste the findings back.
A researcher that fails or returns nothing is dropped. Note the loss — say it out loud later. If every researcher failed, stop and tell the user. Do not publish an empty brief.
Spawn skeptics nodes, in one message, with the lenses split as described above. Each gets:
You are skeptic node
<i>of<n>. Your lenses:<the full text of each lens assigned to this node>Read every file in
<RUN>/findings/. That is the ENTIRE corpus.The strongest objections come from CROSS-REFERENCING, not isolated nitpicks:
- a source in one angle that undercuts a claim in another angle
- two findings that cannot both be true
- several findings that all trace back to one press release or one vendor's claim
QUESTION UNDER INVESTIGATION:
<question>Judge only what is present. Do not invent findings. Refute only what you can name a specific defect in — an objection you cannot state plainly is not an objection. Your reason is quoted downstream verbatim, so make it stand alone.
Write to
<RUN>/review/skeptic-<i>.md:## Verdicts - [<id>] refute | uphold — lens: <EVIDENCE|COHERENCE|OPPOSITION|INFERENCE> — <one-line reason> ## Contradictions - {<id>, <id>} <why they cannot both hold> ## Gaps - <what the corpus as a whole never established — invisible to any single researcher>Give a verdict for every finding id you find. Only cite ids that exist in the corpus. Reply with one line only: the file path and the refute count.
If every skeptic failed, stop. Do not publish unreviewed findings. If some failed, say so.
Spawn one merge subagent:
Synthesize the reviewed corpus into
<brief length from the speed preset>.QUESTION:
<question>Read every file in
<RUN>/findings/and every file in<RUN>/review/.Before you write, reconcile the reviews:
- Drop any verdict, contradiction, or gap that names a finding id absent from the corpus.
- Collapse duplicates: two nodes wording the same objection is one objection, and a contradiction reported twice is one contradiction.
- A contradiction needs at least two real ids, or it is not a contradiction.
Objections are flags, not votes. Nothing is deleted by arithmetic. You must rule on EVERY challenged finding in the open — stands, falls, or unresolved — and give your reason. A finding whose objection you reject may be used in the brief, but it stays listed with your ruling. You are the author as well as the judge, so hold yourself to it: do not wave an objection away because the finding is convenient.
<if angles were lost:>NOTE:<k>planned research angle(s) failed to report. Say so under "Where it is weak" — the corpus is incomplete, not empty.Write
<RUN>/brief.mdwith exactly these sections:## Bottom line (2-5 sentences) ## What the evidence supports (each claim cited by finding id; a challenged finding appears here only if you ruled it stands) ## Where it is weak (contradictions with ids, gaps, and anything the objections leave genuinely unresolved) ## Contested (every challenged finding, one line each: id — claim — the objection — your ruling and why) ## Sources (deduped, title + url)Cite findings by stable id inline. Do not soften contradictions — show both sides. Do not introduce claims that are not in the corpus. Reply with one line only: the file path.
Read <RUN>/brief.md and show it to the user in full. Then one line of stats:
N angles (K lost) · F findings · C challenged · S skeptic node(s) · speed
If any angle was lost, say plainly that the corpus was incomplete. Point at <RUN>/ for the
raw findings and reviews.
Then stop. The brief is the deliverable. Acting on it is the user's call.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jvsteiner/deep-research --plugin deep-research-graph