Kane CLI Project Showcase / Data integrity, privacy and security
DeadHeat
Races isolated Kane CLI browser agents at your app's commit point, proves double-booking bugs, hands evidence to claude -p, and replays to verify the fix.
Built with Claude Code by olaph
Tested with Kane CLI
Demo video by the DeadHeat team
About DeadHeat
DeadHeat is a local concurrency-testing and autonomous repair harness for web developers and QA engineers building apps with real state transitions (bookings, coupons, inventory, payouts).
Single-user E2E tests always pass race conditions because one user can never race themselves. Launching two AI browser agents in parallel usually misses the bug too: each agent reads, types, and clicks at its own speed, arriving seconds apart so the first request commits before the second hits the server.
DeadHeat closes that gap with a tiny one-line test-instrumentation barrier inside the app right before the commit point (for example POST /book or POST /redeem). It boots the app, resets state, and launches N isolated Chrome browsers driven by Kane CLI over CDP. The barrier parks each actor at the commit point until all N arrive, then releases them in the exact same tick (0 ms spread).
After the race, DeadHeat evaluates declarative invariants from a JSON flow file (such as seats_sold <= seats_total and unique(bookings.seat)) against /state, and audits every Kane .evidence HAR and barrier timeline. If concurrency was not proven, it exits with code 2 ("nothing proven") instead of printing a false pass.
On any violation, DeadHeat writes a machine-readable repair packet (invariants, /state, Kane summaries and test-run links, barrier timeline, scoped source files) so an agent can fix the bug and fresh Kane sessions can prove the patch held.
More about DeadHeat
Closed loop (how the agent and Kane CLI talk to each other):
`deadheat race --flow flows/last-seat.json --engine kane` runs Alice and Bob in two isolated Chrome CDP sessions. In our committed real loop (`examples/real-loop/`), they arrived 2.6 s apart, released at 0 ms, and both received HTTP 200 ("Booking confirmed, seat 12A") 1 ms apart (`seats_sold = 2/1`, `exit 1`, 39.71 Kane credits).
`deadheat fix` hands the generated `repair-packet.md` (7.8 KB) to `claude -p` (or any CLI via `DEADHEAT_AGENT_CMD`) while enforcing strict file scope - any edit outside `app/book.js` is auto-reverted. In 25.5 s on attempt 1, Claude kept `await validate(name)` intact and replaced the non-atomic update with a conditional SQL `UPDATE flights SET seats_sold = seats_sold + 1 WHERE id = 1 AND seats_sold < capacity` checking `claim.changes`.
DeadHeat immediately replayed the exact race through two fresh Kane CLI sessions so the coding agent never grades its own work: Alice got HTTP 200 (seat 12A), Bob got HTTP 409 ("Sorry - the seat is gone. Flight is full. 1 of 1 seats sold."), all 3 invariants held (`exit 0`, 31.61 credits). Total closed loop: 4 Kane sessions, 71.32 credits, ~4 minutes end-to-end.
Real bug Kane CLI caught during development:
Two concurrent `kane-cli` runs occasionally attached to one shared Chrome browser, silently serializing a race into a fake pass. DeadHeat now spawns a dedicated headless Chrome over CDP per actor, audits every `.evidence` HAR to verify each actor fired the commit request, and exits `2` ("nothing proven") whenever concurrency cannot be verified.
How to run it:
Zero runtime deps (Node >= 22.5 built-in `node:sqlite`), 58 passing unit tests, MIT license.
Free fast iteration (<1 s, no Kane credits): `npx github:itsolaph/deadheat race --flow flows/last-seat.json --engine http` (also includes a second flow, `flows/coupon-once.json` for single-use coupon `WELCOME50`).
Real browser verification: `npx github:itsolaph/deadheat race --flow flows/last-seat.json --engine kane`
Explicit limits & what's next:
The barrier is a 1-line in-memory test hook (single Node process, not a production lock). Next steps are a Redis/Postgres barrier adapter for multi-instance services and a GitHub Action that comments Kane replay evidence on PRs.
Community-submitted project. The description and results come from the DeadHeat team's Kane CLI hackathon submission and have not been verified by TestMu AI.
Test your own app the way DeadHeat was tested
Every project in the showcase had to run Kane CLI to be eligible. Kane CLI runs a flow you describe in plain English in a real browser, and saves the steps, screenshots, logs and verdict as evidence.
npm install -g @testmuai/kane-clikane-cli loginkane-cli run --url https://your-app.example "Sign up and verify the dashboard loads"More projects in data integrity, privacy and security
Browse all projects
Autonomous Closed-Loop Security Vulnerability Verification & Self-Healing EngineAutonomous Closed-Loop Security Vulnerability Verification & Self-Healing Engine