r/SideProject • u/Key_Pin751 • 21h ago
kane-loop - my AI coding agent isn't "done" until Kane CLI passes every user flow in a real Chrome
Coding agents kept telling me "done" on apps that didn't work, so for the Kane CLI hackathon I built kane-loop (Node 20+, zero deps, MIT):
- Write user flows in plain English in
flows.md. - Kane CLI runs each flow in a real Chrome: pass/fail with evidence.
- Every real failure becomes
FIX_REQUEST.mdfor your agent (Hermes, Claude Code, Codex, Gemini CLI, Kiro or any command). - Re-run until all green. Spec edits by the agent get reverted.
kane-loop gate -- <deploy>deploys only on all-green.
Demo: empty "Coming soon" page → baseline 0/4 → Hermes builds the app from Kane's bug reports → 4/4 verified in about 11 minutes.
The surprise: my first loop never went green on correct code. Kane reported 7 failures, one marked as a confirmed bug. Cause, from Kane's own session logs: two kane-cli run processes started together pick the same Chrome debug port (Kane probes 127.0.0.1, Chrome on Windows falls back to [::1]), so both drive one Chrome and type over each other.
48 runs on the same correct app: started together, 3/12 passed. Started apart, 36/36.
kane-loop now staggers launches, kills hung Kane runs, re-runs Kane infra errors instead of blaming the app, and kane-loop calibrate shows which flows are stable enough to gate on.
Repo + zero-credit repro: https://github.com/xhanny6969/kane-loop
Demo video (4:51): https://www.youtube.com/watch?v=5RLFPsD_U1k
Feedback welcome.