Compass¶
Compass is acceptance-test-driven development for Claude Code, with a record a reviewer can check. It lets a team under change control give code changes to an AI agent and still show a reviewer or an auditor what happened. The agent proves each change with acceptance tests. A person approves each change. Compass keeps a record of both.
Each change leaves one plain file, trail.md. It says who asked, what was
agreed, the failing run, the passing run, who approved and what shipped,
with a SHA-256 digest for each record. A reviewer checks it with
sha256sum -c, without Compass installed.
Five guardrails apply to all work that ships code:
- A test that fails without the change.
- Acceptance criteria before code.
- Code traced to a criterion.
- Typed evidence, not a written claim.
- A person's approval for a change with the label
auth,payments,personal-dataormigrations.
A project can add its own checks, report failures without blocking while it tries Compass, or excuse one check on one issue with a waiver a person approves. The person's approval cannot be waived. The safety contract states what each guarantee covers and where it stops.
Start here¶
- Five minutes - one small change, from the request to a commit that holds the code and its record.
- Quickstart - install and the first issue.
- Install check - check that an install works.
- Configuration - the project settings in
compass.yml. - Upgrading: to 9.0.0, to 8.0.0, to 7.0.0, to 6.0.0.
What Compass guarantees¶
- Safety contract - what Compass enforces, and what it does not claim.
- Refusal codes - each reason the pre-tool hook can refuse with.
- Security - what Compass runs, and how it guards against tampered dependencies.
How it works¶
- Methodology - the method and why it is built this way.
- Portability - how Compass maps onto other agent runtimes.
The source, the CLI reference and the issue tracker are on GitHub.