Docs Review code

Review before you push

Run a review on your own machine from your coding agent before opening a merge request.

You can have your branch reviewed on your own machine before you push it. The Entropix plugin's review-local skill reads your organisation's code reviewer agent (its main skill, its review skills and its rules) and reviews your local diff the same way. You fix what you agree with, then push, and the portal's review finds less. Nothing is written to the portal: the result stays in your coding agent's session.

In your editor /entropix:review-local in Claude Code, or the same skill in Cursor Any role

Before you start

  • Your coding agent is connected to Entropix with a personal access token, and the Entropix plugin is installed (version 0.30.0 or later). See Connect Claude Code or Cursor. A token of any role works, because the skill only reads.
  • Your organisation has a code reviewer agent. Every organisation starts with one. See Set up reviews.
  • You are in the repository you want reviewed, on your branch, with a remote named origin.

The portal shows the command on Account › Your coding agent, and in a Review your branch before you push box on the Reviews and review setup pages.

Review your branch

  1. In Claude Code, run /entropix:review-local. You can also ask in plain words, such as "review my branch" or "what would the reviewer say about this change".
  2. The skill lists your organisation's agents and picks the code reviewer. If more than one agent reviews changes, it asks which, and recommends the one that holds this repository.
  3. It reads that agent's main skill, its reviewing-a-change and writing-a-finding skills, and its rules.
  4. It fetches from origin and reads your branch's diff against the default branch (or the branch you name), plus the code around the changed lines.
  5. If your merge request names a PRD (such as PRD-12), it reads that PRD's acceptance criteria too.
  6. It reports back in your session.

What you get

The report has three parts:

  1. Intent: one sentence on what the change is for, and whether the diff does that.
  2. Findings, most severe first. Each has a severity (Will break, Should fix or Note), the angle it comes from, the file and line, the issue, why it matters and the fix, with the code quoted. A Note is never a requirement. A finding based on one of your organisation's rules cites it by number, such as R3.
  3. Angles clear: for each angle the reviewer's skill names with no finding, what it read to say so. The skill's angles are not the nine tiles of the portal's review page.

It also says plainly what it could not check, such as another repository or a running system. Then it suggests fixing what you agree with and pushing.

How it differs from the portal's review

A local review uses the same know-how, but it is not the portal's review. The portal's review, and a person's decision on it, are the record.

Local reviewThe portal's review
Where it runsYour coding agent, with your modelEntropix, with your organisation's model
What it readsYour local diff and filesThe pushed commit, from Git
Other review agents and the security reviewerNoYes, when picked (see Review agents)
Leads, quoted proof, test checksNoYes
Status on the Git host, commentsNoYes
Decisions and a recordNo: the result stays in your sessionYes

What you can and can't do

You can
  • Review your branch with your organisation's reviewer know-how before you push.
  • Check it against a PRD's acceptance criteria.
  • Run it as often as you like: it writes nothing.
You can't
  • Use it in place of the portal's review: it is never "the review" or an approval.
  • Save its findings to the portal, or decide them there.
  • Have it change the reviewer's skills or rules. To suggest a rule, use /entropix:suggest-rule; see The plugin's skills.

Troubleshooting

  • The entropix tools are missing. Your coding agent is not connected. Follow Connect Claude Code or Cursor, then try again.
  • It cannot find a code reviewer. The skill looks for an agent whose description says it reviews changes. Check the reviewer's description on its Settings tab; see Agent settings.
  • The diff is empty or wrong. Make sure your branch is committed and name the base branch if it is not the default.