feat: add pi-code-review automated code review extension#96
Merged
Conversation
Adds pi-code-review, a Pi extension that provides automated, language-aware code review. Two modes: automatic system prompt injection after edits (zero cost), and on-demand /review command with direct Haiku LLM call for structured severity-leveled findings. Supports TypeScript, Python, Go, Rust, Java, PHP with per-language review checklists. 70 tests, all passing.
Merged
MattDevy
added a commit
that referenced
this pull request
Apr 10, 2026
🤖 I have created a release *beep* *boop* --- <details><summary>pi-code-review: 0.2.0</summary> ## [0.2.0](pi-code-review-v0.1.0...pi-code-review-v0.2.0) (2026-04-10) ### Features * Add pi-code-review automated code review extension ([#96](#96)) ([de20807](de20807)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pi-code-review, a new Pi extension implementing automated, language-aware code review (closes feat: pi-code-review — automated language-aware code review after edits #80)tool_execution_endto track edited files per turn, injects language-specific review checklist into system prompt atbefore_agent_startso the agent self-reviews/review: detects changed files via git diff, makes a direct Haiku LLM call for structured findings (CRITICAL/HIGH/MEDIUM/INFO) with line references and suggestions, falls back to prompt-based review if no API keyTest plan
npm run checkpasses (tests + lint + typecheck)npm run build -w packages/pi-code-reviewcompiles successfullypi install npm:pi-code-review/reviewand verify structured findings output/review --stagedand/review src/foo.tswith specific files