A plugin that learns from its own runs, only when the lesson holds up.

hansei is a Claude Code plugin that plans and builds software the way a small startup would, on a budget. After each run it looks at what went wrong and patches its own playbook, but only when the lesson holds up in an eval.

In development

What it does

hansei is a Claude Code plugin that plans and builds software the way a small startup would, on a budget. The plan step runs an intake, parallel research, six lenses (product, market, engineering, legal, go to market and budget), one red team, and a decision to go or stop. The build step works in waves, with a verifier that runs every command a report claims to have run. Every run ends with a retro. It records the tokens spent and what a later step caught that an earlier step owned, then writes up to three lessons. A lesson goes into the playbook only when an eval holds it up.

How it works

  1. Plan. Intake, parallel research, six lenses, one red team, then a decision to go or stop.
  2. Build. The work runs in waves. A verifier runs every command a report says it ran, and a ledger records the run.
  3. Retro. Every run closes with the tokens it spent, what a later step caught that an earlier one owned, and zero to three lessons.
  4. Gate. Each lesson becomes a hook, an eval case or a checklist line, and it lands only if it passes an eval. A lesson that names no test or eval is refused once it is seven days old.
  5. Record. Eval scores are kept as recorded and never scored again, failed runs included.

Measured

  • Pack on vs off: no verdict. Six realistic tasks, three runs per task per arm, 18 runs each way. Both arms passed 18 of 18, at a mean cost of $0.6404 with the plugin and $0.6492 without. The report's own line is "no verdict (k=3)": a verdict needs at least five runs per arm.
  • Slower on average, not proven slower. Mean wall time was 231.9 seconds with the plugin and 92.9 without, and the 90% interval on the difference runs from 37.6 seconds faster to 438 seconds slower.
  • One lesson, a small move. A build triage case scored 8 of 12 over three runs before its lesson and 9 of 12 over three runs after.

Status

In development. Nine measured runs so far, and the code is not public yet.