Sawbuck — Testing skill for Claude Code
Sign your agent to a contract.
How to install Sawbuck
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open sawbuck-ai/sawbuck and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Sawbuck does
Sign your agent to a contract. A deterministic, zero-LLM check re-proves every win from the agent's source edits alone, so a green that came from editing the test, grader, or config is caught and sent back. Works in Claude Code and Codex.
Alternatives in Testing
- Deslop Reborn — One iteration of the IronClaw Reborn de-slop loop — take ONE Reborn crate, fan out parallel review sub-agents 12.6k ★
- Debug — You are tasked with helping debug issues during manual testing or implementation 10k ★
- N9e Config Driven E2e — Maintain config-driven Nightingale E2E tests that convert JSON config data into UI-readable normalized values 301 ★
README
sawbuck
**Sign your agent to a contract so it does what you want.**
You write the contract (what a real win looks like); Sawbuck enforces it, re-proving every win from the agent's **source** edits alone, so a result that only passed because the agent edited the test, mocked the grader, or loosened a rule reads `gamed` and goes back. Deterministic and zero-LLM: no model in the verdict, nothing read from the agent's trajectory. Attach it and it carries your repo's history along: what broke in these files before, surfaced before you touch them.
Sawbuck is the reference implementation of the [Verified-Outcome Contract](CONTRACT.md): the open interface for a coding loop you can trust.
# 1 · try it (no install, no commitment): verify your latest change right now
npx sawbuck check
# 2 · enforce it: attach once to this repo
npm i -g sawbuck
sawbuck attach # every commit (a git post-commit hook)
sawbuck attach --claude # or every Claude Code turn (a project-scoped Stop hook)
**Zero-config:** it auto-detects your test command, so there is nothing to write to start. On attach it tells you exactly what it can measure here (and how to fix it if it can't). `sawbuck init` is only for *customizing* what counts (coverage, latency, a cost budget, a protected path). In CI, the same check runs as the [promptwheel GitHub Action](https://github.com/promptwheel-ai/promptwheel#in-ci-and-in-claude-code) (`uses: promptwheel-ai/promptwheel@v0`); the debt gate below is this repo's own Action. For every project at once: `sawbuck attach --user`.
One entry point each: a person types `sawbuck`; CI and libraries use `promptwheel` (the engine underneath, `import { check }`). `sawbuck check` passes every `promptwheel run` flag through, so you never need both.
What a check looks like:
$ sawbuck check
🐴 🚩 gamed: a win here came from editing the test, config, or grader, not the source.
It does NOT survive a source-only re-run, so it does not count.
$ sawbuck
Related Skills
Claude Video Studio
One front door for video in Claude Code: routes to the best video skills (brag, onetake, collage B-roll, Hyper
Agent VS Agent Hacker VS Developer
Two AI agents harden your code: a Hacker agent proves each weakness with a failing test, a Developer agent fix
Contract Version Bump
Classify and apply a version bump to a machine-readable contract (JSON Schema, API spec, config schema) — vers
Rig
Multi-agent build orchestration for AI coding sessions. File-ownership slices, a plan file as the contract, QA
Darwin Agents
AI agents that improve themselves. Self-evolving prompts via A/B testing, multi-model critics, and safety gate
Peep
Address PR review comments with isolated subagents and reproduction-backed evidence — analyze each thread, pro
Related Agents
Us Performance Grader
US stock performance grader. Grades past picks on the v6.3 RANK bar (BIG WIN = weekly rank ≤ 100, WIN = ≤ 500,
Cook Implement
jeff implement stage. Make the failing tests green with the smallest correct change. May NOT author or weaken
Run Grader
Settles the predicates of a supplied rubric against one run transcript, from the transcript alone and with no