A single prompt turns AI coding agent into a codebase 'deslop' audit report

kevinkern · x · 2026-11-27

kevinkern shares the full prompt he gave Neon (Gemini 4) to analyze what a codebase carries that a released product shouldn't — unreachable code, dead tests, single-user features, custom builds of standard tools, duplicated logic — and produce a single compact HTML report with color-coded status icons. Key constraints: analysis-only (change/build/run/delete nothing), measure first with one stated command, sort candidates by mass and cause, require a repo-wide caller search (scripts, CI, beyond) to prove code is unused, and protect money/rights/storage-related code from cut proposals. He says it's been a useful way to get an overview of dead, duplicated, or shouldn't-ship code.

Related event: Dev Uses Gemini to Flag 280K Lines of Dead Code in 930K-Line Codebase(2 posts)→

Original post →

More from coding & agent

coding & agent channel →