What do you want to do?
4 use cases
-
Catch agent-written PHP debt before the edit lands
Install Sloppy hooks so Claude Code, Gemini CLI or Codex checks each PHP edit and fixes new findings.
- Sloppy
- Claude Code
- Gemini CLI
- Codex
- Software and DevOps
- Intermediate
View prompt
In the Heyosseus/sloppy project, install the agent hooks for this repository at <project path> by running the install command for the host agent. Then make a small edit to <target PHP file> that adds a try/catch block, and confirm the agent reports any new findings from that edit. Output the list of findings and whether the agent fixed them.
-
Gate CI on new PHP debt only
Baseline today's findings, then fail pull requests only when a branch adds new ones.
- Sloppy
- Software and DevOps
- Intermediate
View prompt
In the Heyosseus/sloppy project, set up a baseline for the PHP repository at <project path> by running the baseline command, then run the CI command. Output the number of accepted baseline entries and the CI result. Verify that the CI command reports no findings on the unchanged branch.
-
Review a branch for new PHP debt before merge
Compare a branch with main and rank only the findings it introduced, highest risk first.
- Sloppy
- Software and DevOps
- Intermediate
View prompt
In the Heyosseus/sloppy project, run the diff and review commands against main for the branch checked out in <project path>. Output the top five ranked findings with their file and rule identifier. Verify that every finding is in a file the branch changed.
-
Fix mechanical PHP findings in one pass
Let Rector and Pint fix the findings a machine can change, then review what is left.
- Sloppy
- Software and DevOps
- Intermediate
View prompt
In the Heyosseus/sloppy project, run the fix command on the PHP repository at <project path>. Output the number of findings before and after the fix pass, and the findings that still need a person. Verify that the test suite of the project still passes after the fix.
How to use Sloppy
- Check you have what it needs: PHP 8.3 or newer; Composer; A PHP project with source roots listed in composer.json.
- Open Heyosseus/sloppy on GitHub and read the README and license.
- Run
composer require --dev heyosseus/sloppyin the project root. - Run
vendor/bin/sloppyto scan the project and confirm the output. - Run
vendor/bin/sloppy agents installto add the Claude Code hooks, orvendor/bin/sloppy agents install --host=geminiorvendor/bin/sloppy agents install --host=codexfor those agents. (inferred, check the README) - Ask the agent to make a small change to a PHP file and watch it run Sloppy after the edit.
These steps come from our top use case, Catch agent-written PHP debt before the edit lands, which also has a copy-paste agent prompt.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forWritten for PHP and Laravel developers who use AI coding agents and want their edits checked for maintainability problems before they reach review.
- Why it is hot
- LanguagePHP
- Sourcegithub.com/Heyosseus/sloppy · Back to Hot repos
Requirements
- PHP 8.3 or newer
- Composer
- A PHP project with source roots listed in composer.json
- Git, for diff and review commands
Maintain Sloppy? Add the Featured on Deduped badge
Paste this into your README:
[](https://dedupedai.com/use-cases/heyosseus-sloppy/?ref=badge)
Questions about Sloppy
What is Sloppy?
Sloppy is a deterministic, local PHP static analyser that flags code patterns that cost maintenance, with hooks for Claude Code, Gemini CLI and Codex, CI annotations, a Pest plugin and an MCP server. It is an open-source project on GitHub: https://github.com/Heyosseus/sloppy.
Who is Sloppy for?
Written for PHP and Laravel developers who use AI coding agents and want their edits checked for maintainability problems before they reach review.
What can I do with Sloppy?
4 use cases so far, for example: Catch agent-written PHP debt before the edit lands; Gate CI on new PHP debt only; Review a branch for new PHP debt before merge. Each has steps and a copy-paste agent prompt.
What do I need to run Sloppy?
PHP 8.3 or newer; Composer; A PHP project with source roots listed in composer.json; Git, for diff and review commands.
What are alternatives to Sloppy?
Other hot AI repos in Software and DevOps: Harness2, iFixAi, Orca, Diagram Design, AI Memory.
Is Sloppy safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.