pi-lumen-review
Pi extension for Lumen code review.
Package details
Install pi-lumen-review from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-lumen-review- Package
pi-lumen-review- Version
0.1.0- Published
- Jul 13, 2026
- Downloads
- 142/mo · 142/wk
- Author
- ad_w0rld
- License
- unknown
- Types
- extension
- Size
- 20.7 KB
- Dependencies
- 2 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Pi Lumen Review
Pi extension for interactive Lumen code review. Run /lumen to choose a recent open GitHub pull request, or pass Lumen diff arguments directly. Exported Lumen annotations are prefilled into Pi's editor.
Prerequisites
- Pi
- Lumen, installed and available on
PATH - GitHub CLI (
gh), installed and authenticated for the PR picker
brew install jnsahaj/lumen/lumen
brew install gh
gh auth login
Cargo users can install Lumen with cargo install lumen.
Install
pi install npm:pi-lumen-review
Try it for one run:
pi -e npm:pi-lumen-review
For local development:
pi -e /path/to/pi-lumen-review
Usage
From a GitHub repository in Pi's interactive TUI:
/lumen
With no arguments, /lumen lists up to 20 recent open pull requests from the current repository. Select one to open it in Lumen. The extension verifies the PR's current base and head commits with GitHub and uses the local Git graph when it is complete. If commits or ancestry are missing, it narrowly fetches the PR refs; if that cannot produce a valid local range, it falls back to Lumen's GitHub PR mode.
Explicit arguments bypass the picker and are passed to lumen diff:
/lumen HEAD~1
/lumen main..feature
/lumen --pr 123
/lumen --detect-pr
/lumen --file src/main.rs --file src/lib.rs
/lumen --watch
/lumen main..feature --stacked
/lumen --focus src/main.rs
/lumen --theme dracula
/lumen --wrap
You may include diff explicitly; it is not duplicated:
/lumen diff --detect-pr
These options are provided by the installed Lumen version, not implemented independently by this extension.
Annotation workflow
- Annotate a selection, hunk, or file in Lumen with
i. - Open annotations with
I. - Press
s, then confirm withEnterto send them to Pi. - Pi pre-fills its input editor with the exported annotations.
Mode support
The PR picker and lumen diff are interactive. /lumen requires Pi's interactive TUI mode and does not support JSON, print, or other non-interactive workflows.
Troubleshooting
ghis missing: install GitHub CLI and verify withgh --version.- GitHub authentication fails: run
gh auth login, then verify withgh repo view. - The repository cannot be detected: run
/lumenfrom a GitHub checkout with a configured remote. - Lumen is missing: install it and verify with
command -v lumenandlumen --version. - No annotations appear: create annotations and press
s, thenEnter, before closing Lumen. - No pull requests appear: the picker currently lists open pull requests only.
Development
bun install
bun run check
The check includes typechecking, tests, linting, formatting, and an npm package dry run.