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.
More from coding & agent
- 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
- Open-source PenGPT writes cursive; 25 pages of LoRA data clones your handwriting — k7agar · 2026-11-27
- leanrea: one 8KB skill file replaces 207 MCP tools, 38% faster and 35% cheaper — tom_doerr · 2026-11-27
- Coding agents follow stale CLAUDE.md files 90% of the time — one sentence fixes it — Promptmethus · 2026-11-27
- vLLM blog: skip the DRAM tier, run agentic KV cache directly on NVMe — AccBalanced · 2026-11-27