pi-mono-review

Pi extension for reviewing GitHub PRs and GitLab MRs

Packages

Package details

extension

Install pi-mono-review from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-mono-review
Package
pi-mono-review
Version
1.8.2
Published
May 8, 2026
Downloads
170/mo · 44/wk
Author
emanuelcasco
License
unknown
Types
extension
Size
67.8 KB
Dependencies
0 dependencies · 4 peers
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

Review Extension

Single review extension containing both commands:

  • /review <github-pr-url|gitlab-mr-url>
  • /review-tui

Structure

  • index.ts — extension entrypoint
  • review.ts/review command
  • review-tui.ts/review-tui command
  • reviewer.ts — TUI component
  • common.ts — shared types, platform logic, persistence, and utilities

Workflow

  1. Run /review <url>
  2. pi fetches the PR/MR diff under the hood
  3. pi asks the active model to report findings through a scoped report_finding tool
  4. pi prints a compact findings summary in the terminal and stores the review session
  5. Run /review-tui
  6. Review, toggle, edit, and submit the selected comments

Findings use P0–P3 priority, confidence, title, and body fields. The legacy JSON path is still used as a fallback for models/providers that do not support scoped tool calls, and legacy severity values are mapped to priorities.

Submission is automatic based on the URL:

  • GitHub → gh
  • GitLab → glab