Dev uses Gemini to generate a deslop report flagging 285k dead lines in a 928k-line codebase

kevinkern · x · 2026-11-27

Developer Kevin Kern shares a practical cleanup technique: have Gemini generate a "deslop" HTML report showing what's dead, duplicated, or shouldn't ship. His 928k-line codebase (3,392 files) had 285,408 lines (30.7%) flagged: 148k lines of dead tests (including a 55.9k-line Cloud JSON mirror fixture and 53k lines of E2E tests not wired into CI), 70k lines of switched-off features, 49k lines of unreachable code (including an entire 44k-line v2 plugin SDK compiled into prod Docker with zero callers), plus custom-built duplicates. The report ranks five cleanup packages by payoff-per-risk, from 20k-line immediate hygiene cuts to a 45.7k-line SDK decoupling.

Original post →

More from coding & agent

coding & agent channel →