← Catalog

@jordyvanvorselen/pi-pr-review

Review a pull request with Pi by intent, structure and architecture. The agent reads the diff, you see visual summaries and make the calls.

Extension

Install

Install with PiG

pig install npm:@jordyvanvorselen/pi-pr-review

Install with Pi

pi install npm:@jordyvanvorselen/pi-pr-review
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.2.0 (README.md). PiG does not review it.

pi-pr-review

Review a pull request with Pi by intent, structure and architecture, not by reading every line.

The agent reads the diff. You see short visual summaries and make the calls: bars, tables, badges, check marks and diagrams. Nothing goes to GitHub until you confirm it.

Install

From npm:

pi install npm:@jordyvanvorselen/pi-pr-review

From a local folder:

pi install ./pi-pr-review

You need the GitHub CLI, signed in with gh auth login.

Use

/pr-review          the PR of the current branch
/pr-review 123      a PR by number
/pr-review <url>    a PR by URL

The agent gets its instructions and starts. It asks you for the ticket or the acceptance criteria. Paste them, or give a ticket key such as a Jira key if your Pi can fetch tickets, for example with a Jira MCP server.

A line above the editor shows the phases, the one you are in and how many draft comments there are. The review lives in the session, so you can stop and pick it up later.

Phases

PhaseWhat you see
0 TriageSize bar (warns over 400 changed lines), every hunk marked tidying or behaviour, risk hotspots
1 WhyWhy the PR exists, where that comes from, gaps between ticket and diff, numbered criteria
2 AC matrixOne row per criterion with the tests that cover it, or the gap
3 InterfacesChanged names, boundaries and dependencies. You judge each flagged item before the agent's view
4 WalkthroughA diagram of the changed parts, then a stepper with the diff hunk and one question per stop
SubmitEach draft comment to keep, edit or drop, then the verdict and one GitHub review

The agent can add a draft comment at any time. The phases go in order. The agent can go back to an earlier phase but not skip ahead.

On the review screens: ↑/↓ or 1–9 pick, ↵ chooses, ← goes back, pgup/pgdn scroll, esc closes.

Privacy

The agent sends the PR's code, its description and the ticket text you give it to your LLM provider, like any other Pi session. The full PR diff is saved in the Pi session file on your machine, so you can pick the review up later.

Change the instructions

The agent's instructions are in prompts/review.md. Edit that file to change how the agent reviews.