Measuring an LLM agent that writes tests before the code exists: 33/33 planted bugs caught

Infinite-Fly-2756 · reddit · 2026-11-10

The author open-sourced Agent QA Kit (MIT), a QA workflow where a Claude Sonnet agent via Claude Code writes one unit test and one browser test per acceptance criterion from the ticket, before the feature exists. Each test must fail first; a human approves them once, then they're frozen. When the feature ships, a Claude Haiku agent runs them, with plain scripts verifying verdicts against actual test reports — agents never decide alone.

Validation: 17 small tickets on a demo shop with hidden tests and planted bugs, 3-6 trials each on an isolated CI runner. The latest version passed 21/21 trials on 6 tickets and caught all 33 planted bugs; the prior version passed 49/51 across all 17.

Surprising findings:

Small samples — signals, not proof. Method and raw numbers are in the repo.

Original post →

More from coding & agent

coding & agent channel →