A production harness · copy-paste · runs on your machine
A great model with a sloppy harness is a junior dev with amnesia — smart enough to write production code, but no memory, no policy on "done," no guard against runaway model spend. This is the harness that fixes it: three working hooks, a settings.json, and four skills, as a copy-paste bundle. Not a tutorial.
Instant download · no servers, no API keys, no subscription · ~27-page PDF + installable bundle
The problem
A CLAUDE.md that reads like a wish list does nothing. Real production behavior comes from enforcement — hooks that block, redirect, and route.
What it does
Real Python. Fail-open (a broken hook never blocks you). Each has a one-env-var kill-switch.
On a premium main loop, a subagent spawned with no model set gets auto-routed: sweeps → a cheaper tier, judgment (review/security/architecture) → a capable one. Never overrides a model you set.
Changed code and claimed "done" with no test, run, or check this turn? It blocks once and asks you to actually verify. Catches the silent "it should work."
Detects build/research intent and surfaces your own prior work from your memory notes before the agent starts from scratch. Kills the re-research tax.
Dogfood proof
Stock sellers ship prose. This ships terminal output from the real hooks.
# subagent-model-router — Opus main loop $ echo '{sweep task: "grep the CI logs"}' | router.py → routed to model: haiku # cheap work, cheap model $ echo '{judgment task: "security review of auth"}' | router.py → routed to model: opus # hard work, capable model # verify-gate — Stop hook $ echo '{edited auth.py, claimed "done", ran no test}' | verify-gate.py {"decision": "block", "reason": "you modified code and claimed it works, but ran no verification this turn..."}
What's in the box
Stop shipping on "it should work"
Three hooks, a contract, and the judgment to tune them — installed in an afternoon. The harness an operator actually runs, not a course.
Instant download · 30-day refund, no questions
See all my Claude Code tools → expressive446.gumroad.com