Install
Install with PiG
pig install npm:@diegopetrucci/pi-reviewInstall with Pi
pi install npm:@diegopetrucci/pi-reviewReview 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": [
"index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.1.19 (README.md). PiG does not review it.
review
A standalone pi review extension that adds /review and /end-review, adapted from the upstream mitsuhiko/agent-stuff implementation.
Install
Install the standalone package:
pi install npm:@diegopetrucci/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
Notes
/reviewrequires interactive mode (TUI);/end-reviewrequires a UI.- This fork adds 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.