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)→
More from coding & agent
- Business uses Perplexity and ZigZag MCP to build an embroidery preview app — jeffgrimes9 · 2026-11-27
- Developer builds personal agent Fak on a home server with email, calendar and browser access — blaizedsouza · 2026-11-27
- JetBrains ships Mellum2.1, a fast coding model built for sub-agents that uses half the tokens — mervenoyann · 2026-11-27
- Dev uses Gemini to generate a deslop report flagging 285k dead lines in a 928k-line codebase — kevinkern · 2026-11-27
- AI coding's learning curve: from prompts to context engineering to full harness engineering — Pavan_Belagatti · 2026-11-27
- UK FCA sets expectations for AI agents as customers deploy their own bots — neal_lathia · 2026-11-27