the pact

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.

Add a --json optionto the list command.You askIn plain words.It plansIt writes a short plan,and picks how muchchecking it needs.It buildsA test first, then thecode.It checksA fresh agent, called alens, reads the result.It waitsNothing ships itself.It’s doneBecause you said so.Add a --json optionto the list command.You askIn plain words.It plansIt writes a shortplan, and picks howmuch checking itneeds.It buildsA test first, thenthe code.It checksA fresh agent,called a lens,reads the result.It waitsNothing shipsitself.It’s doneBecause you saidso.

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.

Skip the conversation

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Open the example Scriptorium

Try it on one small task

The install first shows you everything it would change, and changes nothing until you run a second command.

Install the pact

  • 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.