A Claude Code Stop hook that won't let the agent say "done" until Kane CLI has used the app in a real browser, proven on ReconPilot, a live reconciliation app.
kane-gate is for developers who let an AI coding agent ship UI changes. Agents run unit tests and call it done; bugs that only show on screen, with real files and real data, get through. When Claude Code tries to end its turn, kane-gate runs every plain-English spec in .kane/specs through `kane-cli run --agent` in Chrome. If one fails, the stop is blocked and Claude gets what Kane checked, expected and saw, plus Kane's own verdict, root cause, suggestion and confidence. It loops until the specs pass or the attempt limit is hit. Only failures Kane triages as application_issue block the agent; environment and automation problems are retried and reported instead. Setup is one command: npx kane-gate init. ReconPilot is the real app built behind the gate: bank statement vs ERP reconciliation for finance teams. It reads messy bank exports (xlsx, title rows, Debit/Credit, CR/DB, 1.625,00), queues the exceptions, locks closed periods with Postgres row-level security, keeps an audit log and has an assistant. Eleven Kane specs cover it. In the recorded run Claude was asked for a small button. Its unit tests passed 3/3. Kane found 0 of 39 lines matched and blocked the stop. Claude traced it to an earlier commit, fixed three parser bugs, and Kane passed 3/3. 33 turns, 15 minutes, no human input.
How they talk: Claude Code calls `kane-gate hook` on every Stop. kane-gate runs each spec with `kane-cli run --agent`, reads the NDJSON stream (step results, run_end checks, verdict.family, root_cause, suggestion, confidence) and answers Claude Code with a block decision that carries the failed checks and Kane's diagnosis. Page text is passed as data, never as instructions. What Kane caught: three parser bugs that unit tests passed. 1.625,00 read as 1.625 (0 matched instead of 39), references not trimmed (10 "only in bank" instead of 2), and 22/11/2026 read month-first. Kane's verdict: application_issue, confidence 0.97, "read with the wrong number format". Across 26 gate runs: 79 spec runs passed, 5 failures caught, and 1 Kane login error that kane-gate correctly did not blame on the code (docs/gate-history.md). What's staged: the parser bugs were planted (npm run demo:break) so the run is repeatable. The Claude sessions, Kane results and logs are real (docs/loop-demo/). Run it: - App: https://reconpilot-six.vercel.app ("Try the live demo", no sign-up) - Your project: npm i -g @testmuai/kane-cli, kane-cli login, npx kane-gate init - This repo: npm install, npm run gate Next: run only the specs a change touches, a GitHub Action that posts Kane's verdict on PRs, and specs drafted from the task itself.
Built in two weeks for the KaneCLI Online Hackathon.
See the hackathon →