Skip to content

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:

  1. A test that fails without the change.
  2. Acceptance criteria before code.
  3. Code traced to a criterion.
  4. Typed evidence, not a written claim.
  5. A person's approval for a change with the label auth, payments, personal-data or migrations.

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

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.