Install
Install with PiG
pig install npm:@hkfires/pi-reviewInstall with Pi
pi install npm:@hkfires/pi-reviewPackages 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": [
"index.ts"
]
}README
Written by the package's publisher, shown as published in version 1.0.0 (README.md). PiG does not review it.
review
A standalone Pi extension that adds /review and /end-review. This project is a modified fork of the review extension in diegopetrucci/pi-extensions, based on upstream commit ce73c9e. That extension was adapted from mitsuhiko/agent-stuff.
Install
Install the standalone package in Pi 0.86.0 or newer:
pi install npm:@hkfires/pi-review
Then reload pi:
/reload
Usage
/review— open the interactive selector/review uncommitted— review uncommitted changes/review branch main— review against a base branch/review commit <sha>— review a specific commit/review pr <number-or-url>— fetch and review a GitHub pull request/review folder src docs— review one or more folders/files as a snapshot/review --extra "focus on performance regressions"— add one-off instructions/end-review— return from the review branch and optionally summarize or queue fixes
Model settings
Open /review → Model settings and choose Review or Fix. Select a model, then choose one of its supported thinking levels to save the pair. Pressing Esc in either picker keeps the previous settings. Choosing Use session model clears both overrides for that phase and follows the session’s current model and thinking level.
When a configured model is unavailable, the run uses the session model and its thinking level. When the run ends, Pi restores the starting model and thinking level for branch summaries and ordinary messages, preserving any thinking level you explicitly changed during the run. If the session has no available model, starting a review uses the configured Review model as the new session model.
Pi stores these optional settings in review.json in its agent directory (normally ~/.pi/agent/):
{
"reviewModel": "anthropic/claude-sonnet-4-6",
"reviewThinkingLevel": "high",
"fixModel": "openai/gpt-5.4",
"fixThinkingLevel": "medium"
}
Notes
/reviewrequires interactive mode (TUI);/end-reviewrequires a UI.- The extension supports loop fixing, custom review instructions persisted in the session, a blocking-findings parser, and
/end-reviewhandoff modes (return only, return and summarize, or return and fix findings). Loop fixing cycles until the parser reports no blocking findings: tagged P0–P2 items, or a "needs attention" verdict when no priority tags are present. Commit review is excluded from loop fixing. - Loop fixing always uses Empty branch mode and skips the Empty branch / Current session choice.
- PR review requires
ghaccess and a clean working tree for tracked files. - If the project is trusted and a
REVIEW_GUIDELINES.mdfile exists next to the repo's<pi-config-dir>directory, its contents are appended to the review prompt.<pi-config-dir>is Pi's runtime config directory name (CONFIG_DIR_NAME;.piby default).
License and attribution
This package vendors and adapts extensions/review.ts from mitsuhiko/agent-stuff under the Apache-2.0 license. See LICENSE.