Who tests your tests? Plants realistic bugs in your app, Kane CLI hunts them in real Chrome, and your agent writes Kane tests until every bug is caught.
Green end-to-end tests don't tell you if they'd catch a real bug. Mutant Hunt measures that gap and then closes it. 1. Plant: Claude Code plants a realistic bug in the app's source, one line at a time (prompts adapted from GitHub Next's LLMorpheus, MIT). 2. Hunt: Kane CLI replays your *_test.md suite against each bug in real Chrome with --no-adaptive-heal, so Kane can't heal around the bug. A kill is Kane's evidence. 3. Close the loop: each bug Kane misses goes to the agent with the diff and Kane's report. The agent writes one plain-English Kane test; Kane must prove it passes on the real app AND fails on the bug. If not, Kane's verdict goes back to the agent (up to 3 tries). 4. Report: kill score before/after, every bug's diff, and Kane's own diagnosis + screenshot, read from its sealed evidence pack. Real run on TodoMVC with 2 starter tests: Kane caught 1/10 bugs (10%). After the loop: 9/9 real bugs caught (100%), 1 judged harmless with a reason, 5 new Kane tests by Claude Code. Two needed a second try after Kane's feedback. Then healing ON: 8/9 catches held; healing hid the one caught only by a broken replay step. heal-check --close: Claude wrote a test Kane fails with healing on. All 9 caught either way. On TestMu's own sample to-do app, its official Selenium sample (ported to Kane) caught 0 of 8 planted bugs; 3 Claude-written Kane tests caught 8/8. PR upstream: LambdaTest/python-selenium-sample#25.
How the agent and Kane talk: src/hunt.js closeOne(). Kane's verdict, failure title and root cause (parsed from failure.yaml in each .evidence pack, src/kane.js readEvidence()) are written into the agent's next prompt; the agent's test only counts once Kane proves pass-on-real and fail-on-bug. Mutant Hunt also speaks NDJSON (--agent) so Claude Code can drive the whole thing via skills/mutant-hunt/SKILL.md. On your own app: 'npx mutant-hunt init', then 'npx mutant-hunt run' (published on npm as mutant-hunt). Second app, TestMu's own: examples/testmu-todo runs on github.com/LambdaTest/sample-todo-app with the official python/nodejs Selenium sample (tick li1, li2, add a task, check the heading) ported step for step to Kane. Claude planted 8 bugs (a task starting ticked, the counter counting done tasks, a new task added ticked, the input not clearing). The official sample caught 0. Claude wrote 3 Kane tests; Kane then caught 8/8 (24 runs, 127 credits). We sent the missing asserts upstream as https://github.com/LambdaTest/python-selenium-sample/pull/25, after running it in local Chrome: passes on the live playground, fails on the counter bug. Judges path: the recorded run is committed (examples/todomvc/mutant-hunt-report + live report link below). To rerun: kane-cli login, then 'git clone ... && npm i && cd examples/todomvc && node ../../bin/mutant-hunt.js run --replay' (replays the recorded bugs from .mutant-hunt/cache, needs only Kane; use --fresh with Claude Code or Codex to plant new ones). Each bug also has a 'Try this broken build' link in the live report. 'npm test' runs offline with a fake Kane. Healing experiment: 'heal-check' re-runs every catch with adaptive healing ON. 8/9 held. All 8 were caught by a failed check (assertion_failed); the 9th (M04) only by a replayed step breaking (action_failed), and healing fixed the step and hid the bug. 'heal-check --close' sent M04 back to Claude; its new test failed on the bug with healing on, first try (Kane: 'Todo footer counts completed item as remaining'). Findings for the Kane team (README): Kane's RCA blamed test data/automation in 4 of 9 real app bugs; the best diagnosis (RCA, confidence, screenshot) is only in the evidence pack, not the --agent stream; replays emit almost no run_end summary. Playwright export: we exported Claude's 6 Kane tests with 'kane-cli testmd export' (examples/todomvc/playwright, verify.sh). Without TestMu credentials, 2 of 6 still pass on the real app and fail on their bug; the other 4 use vision steps (visionQuery) that return null offline. Reuse, disclosed: bug-planting prompts/site finder adapted from LLMorpheus (MIT, vendor/llmorpheus/NOTICE.md); demo app is TodoMVC's ES6 example (MIT). Everything else written for this hackathon from the repo's first commit.
Built in two weeks for the KaneCLI Online Hackathon.
See the hackathon →