Sawbuck
GitHub Install

Stop repeating yourself to your agent.

Your agent tried it once. It broke. You reverted it. A month later, a new session does it again. Sawbuck writes down what gets lost in your workflow and holds your agent to it.

The check runs offline, no model Apache-2.0 Node 18+ No API key

What your agent sees

Same file. More to go on.

Without Sawbuck, your agent reads the code. With it, your agent also reads what happened there.

Without Sawbuck

login.js

Just the code.

What you tried, and why you undid it, is gone.

Made the same mistake again: 26 of 27 runs

With Sawbuck

login.js

Tried here before. You undid it. Why: it logged everyone out. Your rule: ask before you change it.

The code, and what happened to it.

Your agent reads it before it touches the file.

Made the same mistake again: 0 of 27 runs. Asked you first every time.

Our test: a change that was undone, then squashed out of git log. A new session asked to do it again. Claude Sonnet, Haiku and Opus, 27 runs each way.

Say it once

Three things you stop repeating.

Why you undid it. What you keep saying. Checking “done” by hand.

In a terminal: npx sawbuck check to try it, npm i -g sawbuck to keep it. sawbuck context and sawbuck debt show history on demand.

Your shape

What you push on, and what you never said.

It reads your own messages and shows 11 spokes in 4 groups. It also reads past turns and names habits the agent has that you never push on, in the agent's own words. Then turn what you see into rules.

CorrectnessProofHonestyScopeAutonomyVoiceNamingVisualSimplicityProcessSafety

Not said, an example

The agent commits on its own when you only asked for an edit, in 5 turns. "Committed and pushed." Try: do not commit unless I ask.

/sawbuck-reins:audit

Finds rules in your agent files that pull against each other, and proposes which wins. No history needed.

/sawbuck-reins:rules

Reads your own messages and proposes the rules you keep enforcing, each with quotes. You pick what to keep.

An example. Yours comes from /sawbuck-reins:shape. What it names are leads from one read, tested on one person.

Common questions

01

What does it catch?

A test that went from red to green only because a test, a grader or a declared config changed, and not the source. The check page lists what it cannot catch.

02

Does it call a model?

The check does not. It runs offline and free. Three commands use a model: /sawbuck-reins:rules, /sawbuck-reins:shape and /sawbuck-reins:audit. Each uses it once when you run it, through your own Claude Code session. The live steering readout is on by default, with one model call per turn on your plan. You pick the model (Sonnet by default, Haiku or Opus) or turn it off in /plugin configure sawbuck-reins@sawbuck.

03

Is it free?

Yes. Apache-2.0, Node 18 or newer, no API key.

04

What is a protected path?

A path the agent must not change on its own. sawbuck contract protects seven groups by default, like your CI workflows and Dockerfile, and you can add your own. A change to one gets sent back.

Say it once.

A win counts only if it survives the check, not because the agent said so. Installs as a Claude Code plugin and runs on the plan you already pay for.

Open source, Apache-2.0 · Node 18+ · no API key