Your AI coding agent isn't done until Kane CLI passes every plain-English user flow in a real Chrome. kane-loop sends each real failure back to the agent until all pass.
kane-loop is a CLI (Node 20+, zero dependencies, MIT) for anyone who lets a coding agent build web apps and keeps hearing "done" on code that doesn't work. You write the spec as plain-English user flows in flows.md. kane-loop runs each flow through kane-cli run --agent in a real Chrome and turns every real failure into FIX_REQUEST.md for the agent: the failed step, Kane's bug title, root cause, suggested fix and evidence path. It runs the agent (Hermes, Claude Code, Codex, Gemini CLI, Kiro or any command), reverts any edit the agent makes to the spec, and re-runs every flow until all pass. On all-green it writes verified.json (spec hash, git commit, Kane CLI version, public Test Manager links), and kane-loop gate -- <deploy> deploys only then. Demo (examples/splitbill): the app starts as a "Coming soon" page. Baseline 0/4, with four bugs filed by Kane. Hermes read FIX_REQUEST.md and built the calculator, and the re-verify passed 4/4 in a real Chrome in 10 min 51 s. All four Kane runs are public links. Kane CLI is the judge in every round: nothing is marked done, and nothing deploys, until Kane passes it.
How they talk: kane-loop reads Kane's NDJSON events and result codes. Real app failures and timeouts go to the agent. Kane infra errors and Kane's own "not an app bug" triage are re-run instead, and 6xx (blocked) goes to a human. A failure on code that already passed that flow (same app fingerprint) is re-checked before the agent sees it. What Kane caught beyond the app: our first loop never went green on correct code (7 false failures, one marked confirmed). Kane's own session logs showed why. Two kane-cli runs started together pick the same CDP port (Kane probes 127.0.0.1, Chrome on Windows falls back to [::1]), so both drive one Chrome and type over each other. The first to finish closes the page, and Kane 0.10.8 can then hang. Same correct app: 12 runs started together gave 3 passes, 8 false failures and 1 hang; 36 runs started apart all passed. kane-loop now staggers launches and kills hung runs. kane-loop calibrate measures verdict stability: 12/12 at --parallel 2 in 8 min 53 s, vs 18 min 53 s one at a time. Zero-credit repro: scripts/cdp-port-race.mjs. Run it: npm install -g @testmuai/kane-cli github:xhanny6969/kane-loop, then kane-loop init, verify, fix --agent claude, gate. npm test runs 17 tests against a fake kane-cli, no credits needed. Recorded on Windows 11.
Built in two weeks for the KaneCLI Online Hackathon.
See the hackathon →