Deslop Code Cleaner

•
311
•

Removes AI-generated code smells, debug statements, and unused infrastructure to maintain high-quality repository hygiene.

Deslop is a specialized utility for Claude Code designed to sanitize codebases by identifying and removing 'AI slop'—unnecessary artifacts like leftover debug logs, placeholder text, and orphaned functions often generated during rapid AI development. By utilizing a multi-layered detection pipeline involving regex patterns, AST-based analysis, and repository mapping, it provides a structured report of code smells categorized by certainty and severity. Whether you need a quick scan of your current diff or a deep dive into the entire repository, Deslop helps maintain high standards of code quality by automating the tedious parts of manual cleanup and refactoring.

Key Features

01Certainty-based classification to safely distinguish between auto-fixes and manual reviews
02Flexible scoping to scan specific paths, git diffs, or entire codebases
03Multi-layered detection pipeline using regex and AST-based analysis
04Automatic removal of debug statements, placeholder text, and empty catch blocks
05Repository mapping to identify orphaned infrastructure and unused exports
06311 GitHub stars

Use Cases

01Automated hygiene gates to prevent debug statements from reaching production environments
02Sanitizing AI-generated code before submitting a pull request to ensure professional standards
03Identifying and pruning dead code or unused exports in large, evolving projects