/prune-tests: a Claude command to hunt down useless tests

teropa · x · 2026-11-18

Developer mazeincoding shipped /prune-tests, a Claude Code custom command that finds and removes bad tests: tests that change whenever the code does, tests asserting deleted features are gone, and tests that can never fail. Inspired by a viral moment where Opus, asked to remove a feature, added 4000 lines of tests asserting the feature no longer exists. Promo video made by Opus 5.5.

Original post →

More from coding & agent

coding & agent channel →