/navigator:nav-deep-researchfrom navigator
Performs web deep research with cited sources, adversarial review, and knowledge graph ingestion. Auto-activates for research queries outside the codebase.
Ships in navigator. 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.
Read when SKILL.md points to them.
One question in, one cited report.md out, conclusions in the knowledge graph. This
file is a thin router: each step's procedure lives in steps/N-name.md and is loaded
with Read at the moment the step starts, so a long run never depends on a procedure
that compaction has already evicted. All fetching, drafting, critique and patching
happens in subagents; the main session sees digests, findings and the final report.
python3 - <<'EOF'
import json, pathlib
cfg = json.loads(pathlib.Path(".agent/.nav-config.json").read_text()) if pathlib.Path(".agent/.nav-config.json").exists() else {}
d = cfg.get("deep_research") or {}
print(json.dumps({"enabled": bool(d.get("enabled", False)), "config": d}))
EOF
If enabled is false, stop and tell the user:
Deep research is off. Enable it with: "enable deep_research"
(or set deep_research.enabled: true in .agent/.nav-config.json). Ships off because a
run fetches dozens of third-party pages and spends several opus subagent calls.
Resolve the functions directory once and reuse the absolute path in every command and every spawn prompt:
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$(cat "${NAVIGATOR_CONFIG_HOME:-${XDG_CONFIG_HOME:-$HOME/.config}/navigator}/plugin-root" 2>/dev/null)}"
[ -d "$PLUGIN_DIR/skills" ] || PLUGIN_DIR="$HOME/.claude/plugins/marketplaces/navigator-marketplace"
NDR=""
for cand in "$PLUGIN_DIR/skills/nav-deep-research/functions" "$PWD/skills/nav-deep-research/functions"; do
[ -f "$cand/research_run.py" ] && NDR="$cand" && break
done
echo "NDR_FUNCTIONS=$NDR"
Config knobs (defaults in hooks/nav_hook_lib/config.py): max_sources 30,
min_sources 8, fetchers 4, max_full_reads 10, critic_enabled true,
models.{fetcher,writer,critic,patcher}.
New run:
python3 "$NDR/research_run.py" init --query "<the user's prompt, verbatim>"
Prints slug, dir, backend. If backend is hyperresearch, follow the handoff
section below instead of the pipeline.
Resume (the user says "resume research ", or you wake up unsure where you are):
python3 "$NDR/research_run.py" resume --run <slug>
Prints next_step. Read that step file and continue. python3 "$NDR/research_run.py" list shows runs.
| Step | Loads | Who works | Artifact |
|---|---|---|---|
| 1 Decompose | steps/1-decompose.md | main session | search-plan.md, atomic items in run.json |
| 2 Sweep | steps/2-sweep.md | main session WebSearch, N deep-research-fetcher | sources/NNN.md |
| 3 Draft | steps/3-draft.md | one deep-research-writer | report.md |
| 4 Critique | steps/4-critique.md | one deep-research-critic (+ one gap wave) | findings/critic.json |
| 5 Patch | steps/5-patch.md | one deep-research-patcher | patch-log.json |
| 6 Ship | steps/6-ship.md | main session | ship.json, graph memories, README line |
The report follows the readable layout in reference/REPORT-FORMAT.md (answer-first
Summary, At-a-glance table for comparisons, one section per atomic item, paragraph cap);
the writer reads that file at step 3 and the gate checks it at steps 3 and 6.
Steps 4 and 5 are skipped (research_run.py step --skip N --reason "critic disabled")
when critic_enabled is false. Before each step:
python3 "$NDR/research_run.py" step --run <slug> --start N; after it: --done N.
Step files are under the plugin's skills/ tree, so the read guard ignores them; source
notes under .agent/research/ are allowlisted by prefix.
The prompt you pass to any deep-research-* agent starts with, in this order:
research_query, verbatim, block-quoted from <run_dir>/query.md. Never paraphrased.run_slug, run_dir (absolute), functions_dir (absolute, the $NDR value).Skipping any of these is a process violation. Spawn parallel fetchers in ONE message.
Use subagent_type: navigator:deep-research-<role> and the model from
config.models.<role>.
report.md, the only changes are
the patcher's Edit hunks and your own hunks when fixing a gate failure. Never write
a second report.--min-sources, editing
ship_gate.py, or explaining the check away. Three fix rounds without a pass means
the run stays blocked and you say so.-p mode a
text-only response ends the process. While waiting, append thoughts to
<run_dir>/orchestrator-notes.md with a tool call instead.Lost track of the step? research_run.py resume reads the manifest first and falls
back to this artifact scan:
| Artifact present | Step done |
|---|---|
search-plan.md | 1 |
sources/*.md | 2 |
report.md | 3 |
findings/critic.json | 4 |
patch-log.json | 5 |
ship.json | 6 |
Then Read the next step file. Re-Read this file if you have lost the contract itself.
When run.json says backend: hyperresearch (the project has a .hyperresearch/
directory), the heavier harness is installed. Tell the user:
hyperresearch is installed here. Run it for the full pipeline:
/hyperresearch <the same query>
When it finishes, say "resume research <slug> at step 6" and I will ingest its
research/notes/final_report_*.md into the knowledge graph.
At step 6 in that mode, copy the final report to <run_dir>/report.md, skip the
citation gate (its citation format differs), and run only report_to_graph.py. Mark
steps 1-5 as skipped with reason hyperresearch.
No SQLite vault, no academic APIs, no PDF extraction, no browser lane, no source
quality scoring. Sources are gitignored (.agent/research/*/sources/); source_store.py refetch --run <slug> rebuilds them from the recorded URLs and reports sha mismatches.
functions/research_run.py — manifest, resume, statusfunctions/source_store.py — fetch, write, list, digest, refetchfunctions/ship_gate.py — deterministic checks, exit 1 on failurefunctions/report_to_graph.py — Key findings → knowledge graphfunctions/untrusted.py — the <nav-untrusted-source> fencereference/REPORT-FORMAT.md — the readable report layout, gate rules, fix pathagents/deep-research-{fetcher,writer,critic,patcher}.md.agent/tasks/archive/TASK-74-nav-deep-research.mdfunctions/report_parse.py (opens in a new tab)functions/report_to_graph.py (opens in a new tab)functions/research_run.py (opens in a new tab)functions/ship_gate.py (opens in a new tab)functions/source_store.py (opens in a new tab)functions/test_report_to_graph.py (opens in a new tab)functions/test_research_run.py (opens in a new tab)functions/test_ship_gate.py (opens in a new tab)functions/test_source_store.py (opens in a new tab)functions/untrusted.py (opens in a new tab)reference/REPORT-FORMAT.md (opens in a new tab)steps/1-decompose.md (opens in a new tab)steps/2-sweep.md (opens in a new tab)steps/3-draft.md (opens in a new tab)steps/4-critique.md (opens in a new tab)steps/5-patch.md (opens in a new tab)steps/6-ship.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
33 skills in this plugin
/backend-endpointCreate REST/GraphQL API endpoint with validation, error handling, and tests. Auto-invoke when user says "add endpoint", "create API", "new route", or "add route"./backend-testGenerate backend tests (unit, integration, mocks) for existing code. Auto-invoke when user says "write test for", "add test", "test this", or "create test"./database-migrationCreate database migration with schema changes and rollback. Auto-invoke when user says "create migration", "add table", "modify schema", or "change database"./frontend-componentCreate React/Vue component with TypeScript, tests, and styles. Auto-invoke when user says "create component", "add component", "new component", or "build component"./frontend-testGenerate frontend component tests (React Testing Library, Vue Test Utils, snapshot) for existing components. Auto-invoke when user says "test this component", "write component test", or "add component test"./nav-briefRender a one-screen intent brief (Goal/Scope/Approach/Limits/Verify/Won't-do/Contradiction) before implementing ambiguous task-shaped prompts, triggered by the prompt_brief op (UserPromptSubmit via hooks/nav_dispatch.py). Confirms scope with max 2 open questions before touching files; detects brief drift mid-task.npx claudepluginhub qf-studio/navigator --plugin navigatorOther plugins' skills for the same job