@ssh352/pi-review
Code review and behavior-preserving cleanup commands for the Pi coding agent.
Package details
Install @ssh352/pi-review from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@ssh352/pi-review- Package
@ssh352/pi-review- Version
0.2.0- Published
- Nov 25, 2026
- Downloads
- 230/mo · 230/wk
- Author
- ssh352
- License
- unknown
- Types
- extension, prompt
- Size
- 151.6 KB
- Dependencies
- 0 dependencies · 5 peers
Pi manifest JSON
{
"prompts": [
"./prompts"
],
"extensions": [
"./index.js"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@ssh352/pi-review
Review code and apply behavior-preserving cleanups inside Pi. The extension uses the model selected in your Pi session for all reviewers. Requires Pi 1.6 or later with Git available.
pi install npm:@ssh352/pi-review
To use a local checkout, set this extension’s source in Pi’s packages settings to the absolute path of the checkout. Reload Pi to use it.
Commands
| Command | Behavior |
|---|---|
/code-review [low|medium|high|xhigh|max] [target] [--max-findings n|all|default] [--fix] [--comment] |
Review changes and report findings with file, line, and concrete evidence. |
/review |
Alias for /code-review, with identical arguments and preferences. |
/simplify [target] |
Four independent reviewers look for reuse, simplification, efficiency, and root-cause improvements. Pi applies the in-scope, behavior-preserving fixes and summarizes skipped suggestions. |
With no target, the review covers the committed branch diff and tracked changes in the working tree. Targets can be a branch, Git revision range, file, directory, GitHub PR number or URL, or GitLab merge request (!123 or URL). GitHub and GitLab targets require gh and glab respectively, with access to the target. Findings on remote targets are based on the remote diff. Applying fixes requires matching local files.
Review effort sets the recipe and default finding limit.
| Effort | Review recipe | Default limit |
|---|---|---|
| low | One pass over the diff hunks, skipping test files. | 4 |
| medium, high | Eight review angles in one context, with deduplication. | 10 |
| xhigh | Ten review angles in one context, followed by a sweep for missed findings. | 15 |
| max | Ten review angles delegated to subagents, followed by verification and a sweep. With no subagent tool, Pi runs all angles inline with a deduplication check and a sweep. | 15 |
The command uses the explicit effort, the saved effort, or the session effort, in that order. It falls back to medium when the session effort is unavailable. Effort and finding-limit choices made in Pi’s terminal UI persist across sessions.
--comment requests inline GitHub PR comments or one GitLab MR note. --fix requests edits in the current working tree. A plain review reports its results in Pi.
Set PI_REVIEW_REPORT_FINDINGS=1 to enable structured findings by default. You can also enable the report_findings tool through Pi’s --tools option.
With pi-subagents enabled, the foreground review delegates finders, verifiers and the sweep through the manager's structured delegation API. The manager tracks each run, applies its spawn budget, and returns the result to the lead. Children receive the captured diff and read-only tools, including during --fix. Extensions can observe these launches through the manager's delegation events.
/code-review
/review max 42 --max-findings 12
/code-review high src/payments --fix
/simplify