Distill

Distill turns a research goal into dependable understanding backed by a
persistent, verifiable body of evidence.
It finds papers, talks, and pages from operator-trusted sites, captures
supplied repos, podcasts, feeds, posts, and local files, analyzes them with
source receipts, verifies claims before write, and synthesizes a local
plain-Markdown corpus. Use it to understand a field, inspect the evidence,
ask cited questions, and keep the research current across repeated runs.
PyPI package distillr; CLI is distill
(plus distill-mcp).
One question is the default
For a single research question, preview sources, ingest the shortlist, then
synthesize a reading document. distill --help prints the same path.
distill discover "your question" --topic my-question --preview
distill discover --from-preview <id> --topic my-question --yes
distill synthesize --topic my-question \
--context "Answer the question. Name what the sources do not settle." \
--name my-question
Setup is in the next section. On a local model, put --cost-mode no-metered
before each command. A cloud route needs a cost mode that allows it.
The preview command writes a shortlist and prints its id. It does not ingest.
--from-preview ingests that saved set. Synthesize reads the local corpus in
one model call and writes two files beside the library:
output/synthesis-my-question.md keeps bracketed citations in the prose so
each claim can be checked.
output/synthesis-my-question.docx is the reading copy. Citations and
prose URLs become superscript numbers, tables stay tables, and each source
is listed once at the end.
Render a synthesis you already have, without another model call:
distill document output/synthesis-my-question.md
distill document output/synthesis-my-question.md --title "My question"
distill document does not change the Markdown file. distill discover --help
and distill synthesize --help show the flags.
Install and first run
-
Install Ollama, set OLLAMA_NO_CLOUD=1 in
the daemon's environment, restart it, and pull a local model. For example,
ollama pull gemma4:e2b. Setting the variable only in the client shell
does not reconfigure an already running daemon. See the
platform-specific setup.
-
Install the CLI: uv tool install distillr.
-
Run distill --cost-mode no-metered init, then
distill --cost-mode no-metered doctor. Select the installed local model.
-
Measure this machine: distill --cost-mode no-metered bench.
-
Preview a bounded source set:
distill --cost-mode no-metered papers "temporal knowledge graph" --topic tkg --limit 5 --preview
What to expect:
- Proven on-device inference has $0 direct API spend; time is the budget.
- Preview fetches current arXiv results and saves a shortlist. It does not ingest.
- Failed searches remain visible. A successful bounded search is not exhaustive discovery.
- Default verification checks numbers only. Prose needs the optional
local checker and CPU installation.
- Revised papers are shown as updates to existing work, with automatic revision
publication held for review. Unknown freshness remains unknown.
Next