A printed research paper on a desk

Getting started

Getting started

Install draft, run --doctor, and turn your first paper into a grounded article.

1. Install

brew install --cask sebastienrousseau/tap/draft

Or with the Go toolchain:

go install github.com/sebastienrousseau/draft/cmd/draft@latest

2. Check the machine

draft --doctor

--doctor reports which agent CLIs you are logged into and whether Ollama is reachable for offline runs. You need one online engine or Ollama.

  ok  claude                 session provider
  ok  ollama                 responding at http://127.0.0.1:11434
  Ready. Run draft --dry-run <source> to check a specific paper.

3. Run your first paper

draft "my-paper.pdf"

draft reads the PDF, mines each section for claims, keeps only those whose quote appears verbatim in the source, writes the article from that ledger, and saves it with a per-sentence attribution file and a C2PA manifest.

4. Check the result

draft --verify 2026-07-29/final/2026-07-29-my-paper-final.md

This recomputes the digests and confirms the article still matches its ledger. Add --json for a portable draft.verification-record/v1 receipt a script can consume. PDFs are not the only input — Markdown, plain text, DOCX and LaTeX (.tex) work too.

Next: the documentation for the full flag reference, or how grounding works for the verification gate in detail.