Dev deletes 60,984 lines of AI-written unit tests that catch nothing

alexcovo_eth · x · 2026-09-25

Ray Fernando shared that he removed 60,984 lines of test code from his repo, arguing that latest models write unit tests that merely restate the code they were written after — they always pass, catch almost nothing, and break on every refactor, so agents waste time fixing tests instead of building features.

His cleanup playbook (adapted from Ansh): use a prompt that fans work out across parallel subagents to delete every unit test that wouldn't catch a real bug the E2E tests miss, then add rules to AGENTS.md to stop future agents from doing it again:

Original post →

More from coding & agent

coding & agent channel →