DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to review a branch for new PHP debt before merge with Sloppy

Compare a branch with main and rank only the findings it introduced, highest risk first.

Short answer: Check out the feature branch in the project; then run vendor/bin/sloppy diff main to report only what the branch introduced; run vendor/bin/sloppy review main to rank the same findings by risk. All steps.

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

  1. Check out the feature branch in the project.
  2. Run vendor/bin/sloppy diff main to report only what the branch introduced. (inferred, check the README)
  3. Run vendor/bin/sloppy review main to rank the same findings by risk. (inferred, check the README)
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer