deep-research

agent
Security Audit
Fail
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Fail
  • network request — Outbound network request in integrations/pi/package-lock.json
  • exec() — Shell command execution in integrations/pi/src/index.ts
  • process.env — Environment variable access in integrations/pi/src/index.ts
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Deep research agent for the terminal and browser. Plans a question into sub-topics, researches them in parallel on the web, fact-checks every claim against the pages it read, and writes a cited, auditable report (Markdown/PDF/JSON) you can ask follow-ups about. Any OpenAI-compatible, local or Claude model; free by default via OpenRouter + SearXNG.

README.md

deep-research

Deep research that checks its own claims, from your terminal, your browser
or your coding agent. drsh plans the question, reads the web in parallel,
checks each claim against the text of the pages it read, and saves a cited
report as Markdown, PDF and JSON.

Go version
CI
Release
golangci-lint
MIT license
Platform

Install · See a run · Use it from an agent

How a run works: the question is planned into sub-topics, which you can refine, each a thread of pages read in parallel, with optional follow-up searches; the pages become claims, the fact-check marks each supported, partial or contradicted, and only what passed reaches the cited report. Saved runs form a knowledge base: drsh kb check and kb search look through them, and --revisit has a new run try the pages you pick again, live

  • Free by default. OpenRouter's free models and public SearXNG search: a
    free key is all it needs. If a search fails, or you turn search off, the
    model suggests pages and drsh fetches them itself.
  • Nothing passes as read that was not. Reports mark sources that were
    snippet only or never fetched, and instant answers, which skip the
    fact-check, as unchecked.
  • Your past runs stay searchable, offline. drsh kb search needs no key
    or model; --revisit has a new run try a saved page again, live.

Quick install

Linux, macOS, WSL2, Termux (installs to ~/.local/bin):

curl -fsSL https://raw.githubusercontent.com/juanhuttemann/deep-research/main/scripts/install.sh | bash

Windows (native, PowerShell; without the live terminal UI, see below):

iex (irm https://raw.githubusercontent.com/juanhuttemann/deep-research/main/scripts/install.ps1)

Both fetch the latest release binary and verify its checksum; see
releases. After
that, drsh update replaces it with each new release.

The Windows installer adds its folder to your user PATH. install.sh
leaves your shell's startup files alone and, where ~/.local/bin is not on
PATH, says how to add it; DEEP_RESEARCH_MODIFY_PATH=1 (curl … | env DEEP_RESEARCH_MODIFY_PATH=1 bash) has it add the line itself, once, to
~/.bashrc and bash's login file, ~/.zshrc or fish's conf.d/drsh.fish,
after a # Added by the drsh installer comment; delete that comment and
the line under it to undo it. For other shells it only says how.

From source (Go 1.27+):

git clone https://github.com/juanhuttemann/deep-research.git
cd deep-research
make build

The build stamps the version into a drsh binary in the repo root.
Move it onto your PATH (or run it as ./drsh) for the examples
below.

The live terminal UI is unix-only. Windows binaries work, but the run
degrades to headless output — one log line per event, then the report.

Quick start

drsh setup
drsh -p "What are the latest advances in fusion energy?"

drsh setup asks three things, explains each choice, and saves nothing until
you confirm:

Step Choices
Model any provider's model; a free OpenRouter key (no card) is at https://openrouter.ai/keys
Web search public SearXNG (the default), a local SearXNG in Docker, your own SearXNG, Exa, Tavily
Page extraction built-in HTML reader, Firecrawl, Exa, Tavily, or snippets only

To change one part later:

drsh setup model      # only the model
drsh setup search     # only the web search
drsh setup scraper    # only page extraction

Something off? drsh doctor checks the model, search and scraper with one
cheap request each.

What a run looks like

drsh's start screen set to quick depth, then the brief sizing a question about mixture-of-experts LLMs to two sub-topics, a change asked for in words (compare with quantization too) that brings it to five, the research with its follow-up searches, the fact-check with a row for each of its calls, the report's answer, with its sources, and a table comparing routing with quantization, and drsh kb search finding the run's sources

In the terminal:

  1. Start screen (a bare drsh): type the question. The row under the box
    shows the run's settings that differ from their defaults. They are depth,
    sub-topics, pages per topic, follow-ups, the report's format, words and
    tables, and clarifying questions, each changed with its command (/mode deep, /topics 2, /follow-ups off, /format brief, /clarify off).
  2. Clarifying questions, only when the question leaves open what to
    research (which market, which kind, for whom): up to three, each a pick
    of readings or your own answer, any of them skippable.
  3. Research brief: the planned sub-topics. The planner sizes the plan to
    the question and says how it read it: a narrow question gets one or two
    sub-topics, a multi-part one a sub-topic per part, a comparison one per
    alternative. Say in words what to change (p), add, rename or delete
    them, change the depth (d), turn the follow-up searches off (f), pick
    the report's format (t) or answer the questions again (c), then press
    Enter.
  4. Live frame: the pipeline stage, one row per parallel sub-agent, the
    sources as they are read, and a status line for the model call in flight,
    or a row for each of the fact-check's parallel calls.
  5. Report: rendered in the terminal and saved to reports/ as .md,
    .pdf and .json.

The report opens with the answer (for a choice: which option, under which
conditions), then:

  • the comparison and reasoning, each claim linked to its source;
  • the limits that could change the answer, and searches that could settle them;
  • the fact-check: how many claims were confirmed, and each one that was not;
  • the sources, each one not read in full marked snippet only or
    never fetched;
  • the model that wrote it, and which models a router actually served.

A run that fails late still saves what it gathered, marked incomplete. One
whose searches mostly came back empty says so up front, with confidence
low, and with fewer than three sources it stops before the analysis.

In the browser

drsh serve runs the same pipeline from a page on localhost, in a light or a
dark theme. Type the question and pick the same settings the terminal offers,
then change the plan before the research: say in words what to change, or
rename, add and remove sub-topics, and set the search each one runs, the depth
and the follow-ups:

The serve page's plan review for "How close are we to a room-temperature superconductor after LK-99?": the depth, follow-up and report format settings, a box to say in words what to change in the plan, and four sub-topics for what the planner read as a multi-part question, each with the search it will run

The live frame shows each sub-agent with its sources, the follow-up searches,
and the model's reasoning as it streams:

The live frame mid-analysis, under the run's title and its question: Plan and Research done, 25 sources split into 16 planned and 9 from follow-ups, seven numbered and coloured sub-agents complete including three follow-ups, and the model thinking through the analysis

When the run ends, the report opens below it, with the .md, .pdf and
.json downloads in the header. The audit shows what the fact-check decided: the statements that passed or
were blocked, every claim's verdict, and the quote and page each rests on:

The audit view: 2 statements passed and 4 blocked, 25 of 27 claims supported, the question as the analysis read it, a conclusion revised from an earlier one, and the inspector showing a supported claim about the ambient-pressure record, with its sources, one of them snippet only, the checker's assessment and the quote

Knowledge base

Every saved run stays searchable, offline, with no key and no model:

drsh kb check "question"     # did I research this same question before?
drsh kb search "words"       # find the sources my runs kept
drsh kb show "CAPTURE_ID"    # one source: its saved text, quotes and verdicts
drsh -p "question" --revisit "CAPTURE_ID"   # try that page again, live, in a new run

Nothing an earlier run kept reaches a new run's model. With --revisit (up
to ten pages, within the run's page budget) the run tries to read each page
as it is now. A page that is read is
checked with the rest; where one version of the built-in reader read it
both times, the result says whether its text changed. Details:
docs/usage.md.

Search

Choose with drsh setup search:

Search Cost Notes
Public SearXNG (default) free nothing to install; third parties see the queries, and often refuse a run partway
Local SearXNG in Docker free recommended: private and more reliable; setup writes the files, you start it with one docker compose command
Your own SearXNG free one address or several
Exa, Tavily per search hosted; each result comes with its page text
No search free the model suggests URLs and drsh fetches them; a page that cannot be fetched is marked unverified

Page extraction (drsh setup scraper) reads each result's full page, so a
claim is checked against the page and not just its search snippet: Firecrawl
(self-hosted and free, or hosted), Exa or Tavily. Self-hosting Firecrawl:
docs/services.md.

When a search fails (rate limit, bot challenge, outage) or finds nothing on
the subject, the model suggests up to three URLs and drsh fetches them. Only
pages that load are kept, and nothing the model wrote about a page counts as
evidence. If none load, the failure is reported with its reason. A run cut
short by a limit can be finished later with --resume, which runs only the
searches that failed or never finished, then the analysis and what follows.

Models

drsh setup model lists OpenRouter, OpenAI, Anthropic and some thirty
compatible providers (from Catwalk's
catalog), your Claude subscription through Claude Code, and a custom endpoint
for a local vLLM, llama.cpp or LM Studio server.

The default, openrouter/free, costs nothing and picks a free model per
request, so every report records what served it. Free models are capped per
minute and per day; a run with web search takes 4 to 14 model requests, and
drsh doctor shows how many free requests an OpenRouter key has left today. On Claude: docs/configuration.md.

Common commands

drsh                                     # ask on the start screen, one run after another
drsh -p "question" --mode deep          # quick | standard | deep (all fact-checked)
drsh -p "question" --mode instant       # one search, one answer, not fact-checked
drsh -p "question" --topics 3           # exactly 3 sub-topics (default: the planner decides)
drsh -p "question" --no-follow-ups      # skip the follow-up searches
drsh -p "question" --format brief       # standard | brief | detailed | table
drsh -p "question" --output report.md   # also save to a file
drsh -p "question" --silent             # just the report
drsh -p "question" --jsonl              # machine-readable events
drsh serve                               # launch and audit runs in the browser
drsh --resume reports/<run>.partial.json # continue an interrupted run
drsh list                                # past runs
drsh kb search "words"                   # sources saved runs kept (also: kb check, kb show)
drsh setup                               # set up the model, search and page extraction
drsh setup search                        # change only the search (or: model, scraper)
drsh doctor                              # check model, key, search
drsh update                              # install the latest release

Full flag reference, key bindings and export details: docs/usage.md.

Use it from an agent

The repo ships an Agent Skill that teaches a
coding agent to run drsh, wait for the result and report the
fact-checked answer with its sources. It first looks for an earlier run that
covers the question and asks before starting another, and can revisit the
saved pages you choose. The binary must be installed first.

Claude Code:

/plugin install deep-research --marketplace juanhuttemann/deep-research

(Before Claude Code 2.1.275: /plugin marketplace add juanhuttemann/deep-research,
then /plugin install deep-research@deep-research.)

Codex, Cursor, Gemini CLI, OpenCode and other agents that read Agent
Skills (and Claude Code too):

npx skills add juanhuttemann/deep-research

Or copy skills/deep-research/ into the agent's skills directory.

Pi has a native extension instead: a deep_research
tool with live progress, clarifying questions and plan review in Pi's
dialogs, a /research command, follow-up questions with
research_ask, and research_kb to search what earlier runs saved: you
tick the pages to read again before a run starts. Its model calls go by
default to the model you use in Pi, through Pi's own sign-in, so drsh needs
no model setup of its own:

pi install npm:@juanhuttemann/pi-deep-research

See integrations/pi.

Configuration

drsh setup saves everything in ~/.config/deep-research/
($DEEP_RESEARCH_CONFIG_DIR when set): keys in auth.json, readable only by
you, the model in model.json, the rest in config.yaml.

Environment variables override what setup saved, for CI and one-off runs:

OPENAI_MODEL=deepseek/deepseek-v4.1-flash drsh -p "question"

The variables, timeouts, retries, parallelism and the trust boundaries for
scraping and public search are in docs/configuration.md.

Development

make verify   # fmt, vet, lint, deadcode, go test -race — the gate
make tools    # installs the lint binaries

Conventions, test style and the rules a change has to respect are in
CONTRIBUTING.md and docs/architecture.md;
cutting a release is RELEASING.md. Notable changes are
recorded in CHANGELOG.md.

License

MIT — see LICENSE.

Reviews (0)

No results found