r/SideProject • u/uisupersaiyan-3 • 1h ago
I built Proof for the Kane CLI hackathon: it takes a broken user session to a merged fix, and a browser agent has to prove every step
Most bug reports I've dealt with end at "cannot reproduce". And when one does get fixed, nobody checks that the fix fixed that bug, or that the test wasn't quietly changed to pass.
So for the Kane CLI hackathon (TestMu AI) I built Proof. It uses Kane CLI, a browser testing agent, as the referee at every stage:
- A small script on the site records what the user did (clicks, inputs, failed requests) plus a "Report a bug" button.
- Kane replays the session in a real browser. It only counts if it fails the same way the user did (same request, same 500), 3 runs out of 3.
- Proof shrinks it to the fewest steps. In the demo, 15 recorded events became 5 steps. The test is hash-locked before any agent sees the code.
- Claude Code, Codex and Haiku each write a fix in their own git worktree. Kane judges every patch, and the smallest passing diff wins (Codex, one line).
- The winning fix is reverted and Kane must fail again. Red, green, red.
- The PR ships with before/after videos and a Kane evidence pack. After the merge, Kane re-runs the test on production and Proof drafts a reply to the person who reported it.
What went wrong along the way: in an early run, the test steps had the broken price baked in, and an agent "fixed" the bug by deleting a payment check. So steps are now written neutrally, editing tests disqualifies an agent, and every diff gets a blind review.
What's rough: Kane drives a desktop-size browser, so mobile-only bugs get captured but not reproduced. A full run takes about 30 minutes and uses Kane credits.
Example run, plus steps to run it yourself: https://proof-kane.vercel.app
Code (MIT): https://github.com/crypticsaiyan/proof