How code review works
From a merge request opened to merged: who reviews it, what you decide and what the developer sees.
Entropix reviews every merge request (or pull request) opened on a repository you watch. A reviewer agent reads the change and writes findings. A person on your team decides each finding, then sends the change back or approves it. The developer fixes what was sent back from their coding agent, pushes, and the next round checks the fix. This page walks through the whole flow, from the merge request being opened to it being merged.
Before you start
Reviews need three things, all set up once by an admin on Set up reviews:
- A Git host connection: GitHub or GitLab.
- A model the reviewer can use.
- At least one watched repository.
Every new organisation already has a reviewer agent, so there is nothing to build first. You can also make any agent a reviewer.
The flow, step by step
- A developer opens a merge request on a watched repository. A draft is not reviewed until it is marked ready. If the merge request names a PRD, the review also checks the change against that PRD's acceptance criteria. Entropix looks for
PRD-12(any number of a real PRD) in the description, then the title, then a branch namedprd-12orprd-12/…, then aRefs:trailer in the commits. See How PRDs work. - The Git host tells Entropix. The host sends a webhook, and Entropix queues a review. The commit gets the status
entropix/reviewset to pending, with the text "Entropix is reviewing round 1". - The reviewer reads the change. The reviewer agent for that repository reads the diff, the code around it and the repositories it knows. Other agents may join when the change is theirs, for example an AWS agent for Terraform (see Review agents and the review panel). A security reviewer can join too (see Security reviewer).
- The review finishes. Entropix posts its review comment on the merge request (or edits it, from round 2 on), updates the status, and posts a line to your review channel in Slack, Discord or Teams if one is set. The review now waits on its page in Reviews under Needs your decision.
- A person decides each finding. For each one, a member or admin picks To fix, Accept the risk or Not an issue. See Read a review and Decide, send back or approve.
- They send it back or approve it. Send back updates the review comment with the decision and the command to fix it. Approve updates it too and sets
entropix/reviewto success. - The developer fixes it. In Claude Code or Cursor they run
/entropix:fix-review <repo>!<n>. The coding agent fixes each item, runs the tests, reports each fix and pushes. See Fix a review and review again. - Round 2 reviews the new commits and marks each item that was sent back Fixed, Still open or Not rechecked. Then a person decides again. Rounds repeat until the change is approved.
- Merging closes the review. When the merge request is merged, its review is marked Merged. A PRD is completed when every merge request linked to it is merged (see Build a PRD).
The reviewer's model never approves anything. Only a person's Approve sets entropix/review to success.
What the developer sees on the Git host
Entropix never pushes to your repository. On the merge request it posts only comments and a commit status, entropix/review. The status changes on every decision, so the merge request always shows where the review stands.
| When | Status | Text on the Git host |
|---|---|---|
| Reviewing | pending | Entropix is reviewing round N |
| Checking a requirement you added (see Add a requirement) | pending | Entropix is checking round N against its requirement |
| The review could not finish | error | Entropix could not finish this review (the step that failed) |
| Waiting, with findings not yet decided | pending | N findings waiting for a decision |
| Waiting, with a Will break finding still open | failure | N Will break open — decide in Entropix |
| Waiting, with items marked to fix | pending | N to fix — send back in Entropix |
| Waiting, with nothing to fix | pending | Ready to approve in Entropix |
| Sent back, with a Will break item to fix | failure | Sent back · N items to fix (M will break) |
| Sent back, otherwise | pending | Sent back · N items to fix |
| Approved | success | Approved in Entropix by (name) · round N |
A merge, a close or a newer push leaves the last status as it was. A repository that blocks on security findings also gets a second status, entropix/security (see Security reviewer). To make a status required before merging, set it as a required check in your Git host's branch protection.
The review comment
Each merge request carries one Entropix review comment. Entropix posts it when round 1 finishes and then edits that same comment in place on every later event: a send-back, a new round, a requirement round, a retry, an approval or a review that could not finish. The comment always shows the current round, so a developer who stays on the Git host can read the whole review there. Its first line is a hidden marker, <!-- entropix:review -->. Entropix edits only the comment it posted itself; if someone deletes it, the next event posts a new one.
| Part | What it holds |
|---|---|
| Headline | "❌ N to fix", "✅ Nothing to fix found" or "⚠️ Review failed", then "Changes requested by (name)" or "Approved by (name)" once a person decided. |
| Facts line | The round, the commit, the number of files, how many of the nine angles are clear, and the count per severity. |
| Failure | When the round could not finish: the step that failed (never its cause) and Retry on Entropix →. |
| Intent | Whether the change does what it (or its PRD) asks, with the reviewer's one line, and what is true after the change. |
| Findings | Every finding: Will break (open), then Should fix and Notes (folded), then a person's own. Each shows its place linked at the head, security tags, "Lowered from", why it matters, the fix and the cited code. A finding can carry a suggested change: the exact new text for its cited lines, shown as a code block with the lines it replaces. Once decided, a finding ends with its decision word: to fix, risk accepted or not an issue. Reasons stay on the portal. |
| Who this change affects | The impact boxes, one line each, and external impact that breaks or needs an update. |
| Checked from 9 angles | One table: angle, status and one line of detail. |
| Tests | The review tests' result, when tests are set up. |
| Questions for the author | Every open question, and how to answer by reply. |
| Next step | After a send-back, the exact /entropix:fix-review command to run. On round 1 before a decision, the hint to run /entropix:review-local before the next push (see Review before you push). |
| Files | The changed files, folded. |
| Reviewed by and footer | The agents of the round when more than one, Decide on Entropix → and when the comment was last updated. |
Findings that no person has confirmed yet are listed as they are, undecided. Findings from an agent that read live data (for example from a cloud account) are never posted to the Git host, nor their suggested changes. The comment counts them and keeps their words on the portal. Merge requests reviewed before this comment existed keep their older finish and verdict comments; the next event adds the one review comment. A link to a PRD you add from the review is still its own short comment (see Add a requirement).
Notices in Slack, Discord and Teams
When a round finishes, Entropix posts one line to the organisation's review channel for each chat kind you have set one for. The line is edited with the verdict when the round is sent back or approved. You pick the review channel on Settings › Channels. Until one is set, a review posts nowhere. See Channels: how they work and Slack.
The Reviews list
Reviews lists every change Entropix has reviewed, one row per merge request. The sidebar's Reviews count is the number of changes waiting for a decision.
The chips across the top filter by state. Each shows a count:
| Chip | Shows changes that |
|---|---|
| Needs your decision | have a finished round waiting for a person. This is the default view when any change is waiting. Otherwise the default is All. |
| Reviewing | are being reviewed right now. |
| Sent back | were sent back and wait for the developer's push. |
| Approved | were approved and are not merged yet. |
| Merged | were merged. |
| Closed | were closed without merging. The chip shows only when there is one. |
| All | every state, with a State column. |
| Security findings | have a round with a security finding. Shows once there is one. |
Below the chips, Repository and Reviewer narrow the list to one repository or one reviewer agent. Press Filter to apply them. Each row shows:
- Change: its title, and under it the repository and number, who opened it, its PRD (or "no PRD") and the round.
- Findings · criteria: for example "1 will break · 2 should fix", and how many of its behaviours are proven, for example "3 of 4 proven". A change with no behaviours shows "No criteria".
- Why it is here: the worst open item in the reviewer's words, with the file it points at. Or the state, such as "Reviewing round 2", "Nothing open — ready to approve" or "Approved by Sam".
- Waiting: how long it has waited, from "now" through minutes and hours to days. A merged or closed change shows a dash.
Rows waiting for a decision come first, then the longest waiting. The list shows at most 100 rows. Once any review exists, the page header also has Set up (admins only), Security setup and Accepted risks.
Review a branch
You can also review a branch without a merge request, on any Git host your organisation's SSH keys can read. A branch review is a one-off check. Nothing is posted anywhere, and it has no send back or approve. Your decisions on its findings go straight to the reviewer's memory.
- On Reviews, open Review a branch at the bottom.
- Enter the Repository (for example
git@host:group/repo.git) and the Branch. Leave Base branch empty to compare with the remote's default branch. - Pick the SSH key to read it with, and press Review.
The review appears under Branch reviews on the same page and opens like any other review. You need an SSH key (see Repositories) and a model. Without one, the fold says so. You need the Member role or higher.
Run a review again from the Git host
Comment /entropix review on the merge request, as the first line of the comment. Entropix runs the latest round again at the same commit. Only someone who may write code in the repository can do this: on GitHub an owner, member or collaborator; on GitLab a Developer, Maintainer or Owner. The command is ignored when a review is already running or the change has no review yet. A round can be run again once, and not after it was sent back or approved (a new push starts the next round then). On the portal, the same thing is Re-run review (see Re-run a review).
You can also ask the reviewer about its review in the merge request's own threads. Mention the portal's bot handle, or reply in a thread the portal started, and the reviewer answers there. It answers the change's author and people who may write code in the repository, and nobody else. It gives at most 5 answers in one thread, 20 on one change, and 30 an hour across the organisation. Admins see these replies under Replies in threads on Settings › Integrations.
How it works
- What starts a round. A merge request being opened, reopened, taken out of draft or pushed to. A push to a change that has a finished round starts the next round, even after it was approved.
- One review at a time per change. A newer push replaces a round that is still running. The older one reads "A newer push of this change was reviewed instead. Nothing to retry."
- Forks and outside authors. A change from a fork, or from an author who may not write code in the repository, is still reviewed, but without the reviewer's tool connections and without reading your other repositories.
- Limits. By default an organisation gets at most 60 reviewed merge requests an hour. Extras are dropped, not retried, and show on Settings › Integrations as over the hourly limit. On your own server, the hourly limit is a configuration setting.
- What is read. The reviewer reads the change through the Git host connection. It never writes to the repository.
What you can and can't do
- See every review and its page with any role.
- Decide findings, send back and approve as a Member or Admin.
- Review a branch over SSH without a merge request.
- Run a review again with
/entropix reviewor Re-run review. - Ask the reviewer about its findings in the merge request's threads or in chat.
- Have the model approve a change. Only a person's Approve sets success.
- Have Entropix push, merge or change code. Only the developer's coding agent changes code.
- Review a draft before it is marked ready.
- Get more than 60 merge requests an hour reviewed with the default limit.