Hey folks, I made a thing.
Sloppy is a PHP static analyzer built for code written by AI agents. It plugs into Claude Code (plus Gemini CLI and Codex) and makes the agent clean up its own mess: god methods, swallowed exceptions, N+1 queries, dead code.
No LLM, no network, no setup. Just composer require --dev heyosseus/sloppy and run it.
https://github.com/heyosseus/sloppy
Feedback is very welcome!
GitHubGitHub - Heyosseus/sloppy: Static analysis for the debt AI agents leave in PHP: 34 rules, Claude Code hooks, git-diff review, a Rector and Pint fix pass, Pest expectations, CI annotations and an MCP server. Deterministic, local, no LLM.Static analysis for the debt AI agents leave in PHP: 34 rules, Claude Code hooks, git-diff review, a Rector and Pint fix pass, Pest expectations, CI annotations and an MCP server. Deterministic, lo...
commit 7efd9e5
I find all these rules important and useful, though I don't link them to AI slop. It is also human slop.
I'd be interested in actual AI slop. i have noticed some useless calls (PHP native functions that are actually emptied), old PHP version patterns that are still here, or…