Draft
Stop shipping AI-generated bugs.
One command runs a three-stage review on your branch — validation, spec compliance, code quality — and writes the missing tests. Free. Open-source. MIT.
Powered by codebase-memory-mcp by DeusData — a 159-language, 100% local knowledge-graph engine.
Website ·
Docs ·
Methodology ·
Watch (8 min) ·
All Videos
The 60-second pitch
Your AI assistant just wrote 200 lines. Some of them are bugs. Some don't match your patterns. Some skip tests.
/draft:review
Three stages, one command:
- Validation — runs your tests, lints, type-checks, and surfaces real failures
- Spec compliance — checks the diff against the agreed spec, not vibes
- Code quality — flags hotspots, blast radius, and missing test coverage using a tree-sitter knowledge graph of your repo
No setup required for the first run: on an un-indexed repo it reviews the diff and names the structural checks it skipped, so you see findings before you spend anything.
Free. No API keys. No paid tier. No vendor lock-in. Catches the 3 bugs you missed before they hit your reviewer.
Demo coming soon — for now, watch the 8-minute walkthrough.
Install (30 seconds)
One command installs Draft into your agent. No clone, no config.
npx @drafthq/draft install <host> # claude-code | cursor | codex | opencode
…or install the CLI once and reuse it:
npm install -g @drafthq/draft
draft install <host>
draft list # show every host + where it installs
Each host installs the way that host actually loads extensions — no manual steps after the command:
| Host | draft install … | What it does |
|---|
| Claude Code | claude-code | Registers the plugin via claude plugin marketplace add + claude plugin install (default --global / user scope). Restart Claude Code. |
| Cursor | cursor | Default --global. Copies the plugin into ~/.cursor/plugins/local/draft/, writes .cursor-plugin/plugin.json, registers draft@draft-plugins in Cursor's plugin registry, and enables it. Restart Cursor (or Developer: Reload Window). Existing installs upgrade with draft install cursor --force. |
| Codex | codex | Default --project. Writes ./AGENTS.md, which Codex reads automatically. |
| opencode | opencode | Default --project. Writes ./AGENTS.md + ~/.agents/skills/draft/, both auto-discovered. |
Flags: --global / --project to pick scope (--global is the default for claude-code and cursor; --project is the default for codex and opencode), --dry-run to preview, --force to overwrite, --no-graph to skip the graph-engine fetch.
Then, in Claude Code (after restarting):
/draft:review # ← start here. No setup, no indexing. Reviews your current diff.
/draft:init # once you've seen what it catches: index the repo (one-time)
/draft:review # same command, now with blast radius + hotspots + cycle detection
/draft:review runs on an un-indexed repo and tells you exactly which structural checks it had to skip. Indexing is the upgrade, not the entry fee.
Run /draft for the full command map.
Other ways to install →
Claude Code — native marketplace
/plugin marketplace add drafthq/draft
/plugin install draft
Cursor — from GitHub