Run AI-powered code reviews on GitHub pull requests or local git branches. Human-like comments from Claude and GPT, structured markdown output ready for copy-paste into GitHub.
Local-first, provider-agnostic, and designed for real engineering workflows
prr fits into how you already work — local-first, provider-agnostic, zero bot spam
Choose from Claude Opus, GPT-4o, or bring your own. CLI and API providers supported out of the box.
Pass a PR number or URL — prr fetches the diff via gh, sends it to AI, and writes structured review comments.
No PR needed. Diff any two branches in a local git repo and get a full AI code review.
Prompt-engineered to write like a senior engineer — direct, specific, no AI-speak. Banned phrases list enforced.
Post reviews directly to GitHub with prr post. Auto-detects REQUEST_CHANGES vs COMMENT based on severity.
Drill into what matters with --focus security, performance, or testing. Deprioritizes noise outside your focus area.
Generate clear, structured PR descriptions from the diff with prr describe. Push to GitHub with --update.
Ask follow-up questions about any review with prr ask. Full review context is loaded automatically.
Compare two review runs with prr diff. See which comments are new, resolved, or changed between iterations.
Fact-check review comments with --verify. Flag inaccurate comments or drop them with --verify-action drop.
Browse reviews in a local web interface with prr serve. Dark theme, severity badges, comments grouped by file — all embedded in the binary.
Three steps from install to your first AI code review
Install via go install, Homebrew, or download a prebuilt binary from GitHub Releases. Single binary, zero runtime dependencies.
Run prr with a PR number, URL, or --base flag. It fetches the diff, sends it to your configured AI agent, and generates structured comments.
Post directly to GitHub with prr post, or copy-paste from the structured markdown output. Comments are organized by file and severity.
See prr in action — PR reviews, local diffs, verification, and configuration
# Review the current branch's PR
$ prr
→ PR #17509: Fix user authentication race condition
→ agent: claude (claude-opus-4-20250514)
→ files: 12 (3 filtered)
→ Reviewing...
✓ Review complete.
→ 2 critical, 5 suggestions, 3 nits, 1 praise
→ Output: reviews/pr-17509-20250311-143000/
# Focus on security and performance
$ prr 17509 --focus security,performance
# Verify comments with a secondary AI pass
$ prr 17509 --verify
→ Verifying 10 comments... 8/10 verified, 1 inaccurate, 1 uncertain
# Review any PR by URL (no cloning needed)
$ prr https://github.com/owner/repo/pull/123prr adapts to how your team reviews code
Get a thorough AI review on any GitHub PR by number or URL. Catches bugs, race conditions, and security issues.
Review your branch locally before opening a PR. Fix issues before anyone sees them.
Review a PR, inspect the output, then post directly to GitHub with prr post. No copy-paste needed.
Use prr on your own PRs before requesting review. Generate a description with prr describe. Reduce review rounds.
Run prr --focus security to zero in on injection, auth bypass, and crypto issues. Suppresses noise from unrelated nits.
Run prr --verify to fact-check every comment with a secondary AI pass. Catches hallucinated line numbers and wrong variable names.
Use --since to only review changes since the last run. Track progress between iterations with prr diff.
Run prr serve to browse all past reviews in a local web UI. Filter by severity, view comments grouped by file, all without leaving the browser.
Install prr and run your first review in under a minute
go install github.com/dotbrains/prr@latest# Review the current branch's PR
prr
# Focus on security issues
prr 17509 --focus security
# Verify comments for accuracy
prr 17509 --verify
# Post review to GitHub
prr post
# Generate PR description
prr describe --update
# Ask a follow-up question
prr ask "Is this thread-safe?"
# Browse reviews in the web UI
prr serve --openTip: Run prr config init to scaffold a config file, then set your API key with export ANTHROPIC_API_KEY=sk-...
Install prr and get your first AI code review in under a minute