Quickstart
Install Anatomia, run init in your repo, and ship a verified change. Two minutes to scaffold. Twenty minutes to your first proof.
Prerequisites
- Node.js 22 or later
- Git with
user.nameanduser.emailconfigured - A Git repository with at least one commit
- Claude Code with an active subscription — needed for pipeline agents (Steps 3–4)
- GitHub CLI (
gh) — used by Verify to create PRs after a passing run
Step 1: Install
Also available via pnpm add -g anatomia-cli or bun add -g anatomia-cli. This installs the ana command.
Step 2: Initialize
From inside your cloned repo:
Init scans your project, detects your stack, and scaffolds the pipeline into your repo — agents, skills matched to your stack, and project context. Runs entirely on your machine. Your output will reflect your project:
Verify detected commands. Init infers Test, Build, and Lint from your package.json.
Override any command: ana config set commands.test "your-command".
Monorepos with multiple surfaces: see Configurability for per-surface overrides.
Optional but recommended: Run claude --agent ana-setup to calibrate project knowledge (~10 min). Setup investigates your codebase, asks 2–3 questions, and writes rich context.
Persist to git
Init created files locally. Commit them to your artifact branch so every collaborator and agent session has the same context:
This stages only infrastructure files (.ana/, .claude/, CLAUDE.md, AGENTS.md), commits with --no-verify, and pushes. Pipeline data and per-developer state are automatically excluded.
Run ana doctor to verify the installation is healthy — it checks CLI version, scan freshness, context quality, skill enrichment, and proof chain status in one dashboard.
Step 3: First pipeline run
External services. If your project uses a database, Redis, or Docker containers, start them before running the pipeline — agents execute your test command as-is.
Describe a small change — a single-file fix or a feature you'd normally spend 30 minutes on.
Start with a greeting — "hey Ana" — so the agent loads your project context before you describe the work.
Ana investigates the codebase, surfaces tradeoffs, and writes a scope. You can scope several work items before building any of them — each runs through the pipeline independently. When you're ready to build, open a new terminal for each pipeline agent — agents must start fresh without state from previous runs:
- Plan:
claude --agent ana-plan— reads the scope, writesspec.md, and sealscontract.yaml - Build:
claude --agent ana-build— implements the spec, writes tests tagged to contract assertions - Verify:
claude --agent ana-verify— independently verifies against the contract, writes findings, creates PR on pass
Each agent runs CLI commands like ana work start and ana artifact save under the hood — managing worktrees, validating artifact structure, and computing integrity hashes. You don't run these manually.
If Verify finds issues, it produces a FAIL report. Run claude --agent ana-build to fix, then claude --agent ana-verify again. This is normal — 22 of Anatomia's own 163 proofs had rejection cycles.
Step 4: Review, merge, and complete
After Verify passes, it creates a PR. Review the PR — compare Build's report with Verify's findings. This is the moment the two independent accounts meet. When you're satisfied, merge the PR, then complete the work item:
This archives the plan and writes a proof chain entry — assertions, findings, timing, and SHA-256 hashes of every artifact. The proof is a JSON record committed to your repo. It travels with the code.
View it:
You'll see the contract score, findings by severity, and timing per stage. Every assertion the contract defined, independently verified. The proof chain grows with every pipeline run — a permanent record of what was built, how it was verified, and what was found.
Updating
Updating the CLI changes the binary only. Your agents, skills, context, and proof chain don't change until you run ana init. When you do, your rules, context files, and proof history are preserved — only machine-detected data refreshes. Run ana doctor after updating to confirm everything is healthy — it checks all five dimensions in one command. ana work status will tell you when your project was initialized with an older version.