Who it is forA PHP developer about to open or review a pull request who wants to know where to look first.
The problemA large diff hides which new code is risky, and inherited problems in untouched files add noise.
The outcomeA ranked list of findings the branch introduced, with the files to read first and where to stop.
What you need first
- PHP 8.3 or newer
- Composer
- A PHP project with source roots listed in composer.json
- Git, for diff and review commands
Steps
- Check out the feature branch in the project.
- Run
vendor/bin/sloppy diff mainto report only what the branch introduced. (inferred, check the README) - Run
vendor/bin/sloppy review mainto rank the same findings by risk. (inferred, check the README) - Open the top-ranked file and read the findings from that file first.
Prompt for your agent
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.
Caveat. The README describes the ranking as a risk measure for the analysed paths, so the order is a guide to reading, not a verdict on any file.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Heyosseus/sloppy and "Review a branch for new PHP debt before merge"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer