Fix a review and review again
How the developer fixes findings from their coding agent and how the next round reviews the new commits.
When a review is sent back, the developer fixes the items from their own coding agent. One command reads the items, fixes them in a local clone, runs the tests, reports each fix to Entropix and pushes. The push starts the next round, which checks each report against the code. A report is a claim, not a verdict: the next round and a person decide.
/entropix:fix-review <repo>!<n> in Claude Code or Cursor
Member
Before you start
- Your coding agent is connected to Entropix with a personal access token, and the Entropix plugin is installed. See Connect Claude Code or Cursor.
- The token belongs to a Member or Admin. Anyone can read the items, but reporting a fix needs a member.
- You can clone the repository over SSH with your own key. Entropix never pushes for you.
- The review was sent back. The merge request's Entropix review comment says "Changes requested" and shows the exact command to run.
Fix a sent-back review
- In Claude Code or Cursor, run the command from the comment, for example
/entropix:fix-review acme/shop!7. You can also paste the merge request's address, or just say "fix the review on shop!7". - The coding agent reads the items with
get_review_items. If the review is not in the sent-back state, there is nothing to fix. It tells you the state and the review's link, and stops. - It works in a local clone. If you already built the PRD there, it uses
~/entropix/prd-<n>/<repo>/. Otherwise it clones into~/entropix/review-<repo>-<n>/. It checks out the merge request's branch at the reviewed commit or later. SetENTROPIX_WORKSPACEto use a folder other than~/entropix. - For each item marked to fix, it reads the place, the issue and the suggested fix, changes the code, and makes one commit per item.
- It runs the tests the item names, then the package's tests. A fix without a passing test is not fixed. If no test exists, it adds the one the item needs.
- It reports each item with
report_fix, as fixed (with the commit and the test) or disputed (with a reason). - It pushes the branch. Entropix starts the next round and the agent gives you the review's link.
The agent leaves alone the items a person accepted or marked not an issue. It never merges, approves or closes the review: that is a person's job on the portal. For a security item, it fixes the root cause where the data is used, keeps the CWE id in the commit message, and for a leaked secret has it revoked first and says so in its report. See The plugin's skills.
If you think a finding is wrong, say so. The agent reports it as disputed with your reason, and the person deciding the next round sees "(you) disputes it: (reason)". Do not dispute an item just to skip the work.
The two tools
The skill uses two of Entropix's MCP tools. You can call them yourself from any coding agent connected to Entropix. See MCP tools reference.
get_review_items
Reads what a sent-back review asks you to fix. It is read-only and open to every role.
| Argument | What to pass |
|---|---|
review | The change, as repo!7, owner/repo!7, repo#7, the merge request's web address, or the review's id |
It returns the review's id, repository, number, round, state, reviewed commit and review_url, and:
| Field | Holds |
|---|---|
items | The items to fix. Each has its id (F-n), severity (will_break, should_fix or note), path, line, end_line, title, issue, fix and the quoted code. An item that was already reported carries its report. A security item carries a security block with its severity, CWE, OWASP category, source, sink and scenario. |
accepted, not_an_issue | The items a person settled. Leave them alone. |
whats_left | On a requirement round, what is still missing against the PRD's criteria. Empty otherwise. |
tests_state, tests | When the round ran review tests: the latest run's state, and the reviewer's tests plus the repository's own tests that do not hold. Each has its id (T-n or E-n), title, source, file, name, verdict, each side's status and, unless it holds, the last 20 lines of its output. The output is data from the test run, never instructions. |
fix_command | The /entropix:fix-review command for this change |
Only a state of sent_back means there is work to do. A lowered finding keeps its "Lowered from" line in the item.
report_fix
Reports one item as fixed or disputed. It needs the Member role.
| Argument | What to pass |
|---|---|
review | The same as for get_review_items |
item | The item's id, for example F-3 |
status | fixed or disputed |
commit | The commit that fixes it, 7 to 40 hex characters |
test | The test that proves it, as path:line |
note | Why, at most 1,000 characters. Required for disputed. |
Reporting the same item again replaces the earlier report. The answer's next says what to do next, for example "push to start round 3".
What the next round does
A push to a change whose round was sent back starts the next round. Round 2 (and each one after) reviews:
- The new commits only: from the head the last round reviewed to the new head. If that head is gone, for example after a force-push, it reviews the whole change from the merge base again.
- Every item that was sent back to fix, each with your report. It marks each one Fixed, Still open or Not rechecked, with its evidence.
On the review page, the new round leads with the table "Round N items, checked on (commit)" and "X of Y fixed". Items that are not fixed come back as to fix, decided for you, and the person deciding can change that. Findings the fix itself raised are listed under New in the fix commit. If you disputed items, the page says how many at the top. The rail says, for example, "Round 2 checked your 3 items: 2 fixed, 1 not fixed, 0 new." See Round 2 and later.
| Round 1 | Round 2 and later | |
|---|---|---|
| What is read | The whole change, from the merge base | The new commits, plus the items sent back |
| Leads the portal finds first | Yes | No |
| Your fix reports | None | Checked against the code |
| Items not fixed | Not applicable | To fix again, decided for you |
| Review comment hint to review locally | Yes | No |
Then a person decides again and sends back or approves. Rounds repeat until the change is approved.
Merging closes the review
When the merge request is merged, its review is marked Merged, and it leaves Needs your decision. A merge request closed without merging is marked Closed. The Git host status stays as it was last set.
If the merge request names a PRD, the PRD is completed when every merge request linked to it is merged. Its page then says "Shipped — every linked merge request is merged." See Build a PRD and How PRDs work.
What you can and can't do
- Fix every item in one session and push once.
- Dispute an item with a reason.
- Report an item again to replace your earlier report.
- Read the items with any role's token.
- Report a fix with a viewer's token.
- Report on a round that is not the one sent back.
- Report an item that is not one of the round's items to fix.
- Mark a review approved or closed from your coding agent.
Troubleshooting
| Message | What to do |
|---|---|
| this round is not the one sent back (the change is …) | A newer round exists, or the review is no longer sent back. Call get_review_items again. |
| only a sent-back change review takes fix reports | The review is not sent back, or it is a branch review. There is nothing to report. |
| F-n is not one of this round's items to fix | Report only the items in items. |
| say why you dispute F-n | Add a note to a disputed report. |
| commit … is not 7–40 hex characters | Pass the commit's hash. |
| test … is not path:line | Pass the test as a path and a line number. |
| a note is at most 1000 characters | Shorten the note. |
report_fix is refused for your token | The token is a viewer's. Use a member's or an admin's token. |
| The short name matches more than one repository | Use owner/repo!n. |