pi-annotated-review
Pi extension that creates annotated HTML code-review pages for git changes.
Package details
Install pi-annotated-review from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-annotated-review- Package
pi-annotated-review- Version
0.1.0- Published
- May 11, 2026
- Downloads
- 32/mo · 12/wk
- Author
- guibibi
- License
- MIT
- Types
- extension
- Size
- 43.7 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Annotated Review Pi Extension
Global Pi extension that provides /annotated-review in every project.
What it does
- Registers
/annotated-reviewas a global extension command. - Sends the agent a compact review prompt that points at reusable renderer assets.
- Keeps CSS in
assets/review.css. - Keeps browser enhancements in
assets/review-components.js. - Keeps HTML rendering helpers in
lib/review-page.mjsand git collection inlib/git-context.mjs. - Writes self-contained HTML reviews with inline CSS and inline JS.
Usage
/annotated-review
/annotated-review main
/annotated-review main /tmp/review.html
The command resolves output paths to absolute paths before sending the prompt, so the final response should be terminal-clickable.
Security note: tracked diffs are collected from git automatically. Untracked file contents are only rendered when the review JSON explicitly lists the path, and the renderer rejects symlinks, likely secrets, large files, generated output, dependencies, and binaries.
After editing extension files, run /reload in Pi.
Package metadata
This repository is prepared as a public npm Pi package:
- npm package name:
pi-annotated-review - Pi package manifest:
package.json→pi.extensions: ["./index.ts"] - package discovery keyword:
pi-package - license: MIT
- publish readiness:
privatehas been removed; run the checks below before publishing:
npm test
npm run pack:dry-run
After publishing, users should be able to install it with:
pi install npm:pi-annotated-review