Your agent does the work. You say when it’s done.
The pact is a set of written terms for working with an AI coding agent. They say which decisions stay yours, what the agent settles and writes down for you, and what gets checked before work counts as done.
Install the pactFor Claude Code. It is one person’s setup, shared.
The task is waiting at the gate. Press it to let the work through.
The same task, up close
An example session, with notes on what the pact changed. Scroll at your own pace.
You
Add a --json option to the list command.
You say what you want
Plain words are enough. The agent acts on what they say, so say what you would want to see.
Claude Code
⚑ Checkpoint: picked Standard tier — new output that other programs will read
I wrote a short plan first: what the option prints, and what stays as it is.
It plans, and picks how much checking
A tier sets how much checking the work gets. A checkpoint is a decision the agent takes, flags and writes down. It doesn’t wait for you, and you can overrule it.
Claude Code
▸ Stage: Build (Standard)
I wrote a test for the new option and saw it fail. Then I added the option, and the test passes.
It writes the test first
The test failed before the option existed, so its pass means something.
Claude Code
⚑ Checkpoint: running behaviour-lens — does it do what you asked?
It found one thing. With no notes, the command printed nothing, and a program reading that would fail. It now prints an empty list, and there is a test for it.
A fresh agent checks it
A lens is a review agent that asks one question. It didn’t write the code, so it looks at the result with no stake in it.
Claude Code
The change is on a branch, ready for you.
It adds the option and two tests. Nothing else changed.
It stops and hands over
You get what changed, what was checked and what it decided on the way. Then it is your turn.
You
Looks right. Merge it.
You say when it’s done
The agent can check its work. Accepting it is your call.
The checking grows with the risk
The agent picks a tier and tells you. You can ask for more or less at any point.
Quick
Small work that fits one session. No written plan.
Standard
A short plan first. The agent suggests lenses for the plan and the result, with a reason.
Thorough
Risky, or too big for one session. It is cut into pieces, each with its own session.
Sensitive
Sign-in and permissions, cryptography, and data migrations. The agent recommends Thorough, with two security lenses.
See the workflow, then make it yours
The Scriptorium is a page that draws the workflow the pact installs: each stage, the skills on it, and when a lens is offered. Change it there, export it, and install your own version.

Try it on one small task
The install first shows you everything it would change, and changes nothing until you run a second command.
- It is one person’s setup, shared for you to read, borrow from or install.
- It changes every Claude Code session on your machine, and Codex and Antigravity if you have them.
- It backs up what it replaces. Going back is done by hand.