Open Source • PolyForm Shield 1.0.0

AI Code Reviews, One Command

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.

4
AI Providers
Human
Like Comments
Go
Single Binary

Code reviews that sound like your team wrote them

Local-first, provider-agnostic, and designed for real engineering workflows

PR + Local
Review Modes
Claude
Opus Default
Markdown
Structured Output
Zero
Bot Comments

Built for Real Engineering Workflows

prr fits into how you already work — local-first, provider-agnostic, zero bot spam

Claude & GPT Agents

Choose from Claude Opus, GPT-4o, or bring your own. CLI and API providers supported out of the box.

GitHub PR Reviews

Pass a PR number or URL — prr fetches the diff via gh, sends it to AI, and writes structured review comments.

Local Branch Diffs

No PR needed. Diff any two branches in a local git repo and get a full AI code review.

Human-Like Comments

Prompt-engineered to write like a senior engineer — direct, specific, no AI-speak. Banned phrases list enforced.

Post to GitHub

Post reviews directly to GitHub with prr post. Auto-detects REQUEST_CHANGES vs COMMENT based on severity.

Focus Modes

Drill into what matters with --focus security, performance, or testing. Deprioritizes noise outside your focus area.

PR Descriptions

Generate clear, structured PR descriptions from the diff with prr describe. Push to GitHub with --update.

Follow-Up Q&A

Ask follow-up questions about any review with prr ask. Full review context is loaded automatically.

Review Diffs

Compare two review runs with prr diff. See which comments are new, resolved, or changed between iterations.

Comment Verification

Fact-check review comments with --verify. Flag inaccurate comments or drop them with --verify-action drop.

Web UI

Browse reviews in a local web interface with prr serve. Dark theme, severity badges, comments grouped by file — all embedded in the binary.

How It Works

Three steps from install to your first AI code review

1

Install prr

Install via go install, Homebrew, or download a prebuilt binary from GitHub Releases. Single binary, zero runtime dependencies.

2

Run a Review

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.

3

Post or Copy-Paste

Post directly to GitHub with prr post, or copy-paste from the structured markdown output. Comments are organized by file and severity.

Code Examples

See prr in action — PR reviews, local diffs, verification, and configuration

bash
# 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/123

Use Cases

prr adapts to how your team reviews code

PR Reviews

Get a thorough AI review on any GitHub PR by number or URL. Catches bugs, race conditions, and security issues.

Pre-PR Reviews

Review your branch locally before opening a PR. Fix issues before anyone sees them.

Review → Post Workflow

Review a PR, inspect the output, then post directly to GitHub with prr post. No copy-paste needed.

Self-Review

Use prr on your own PRs before requesting review. Generate a description with prr describe. Reduce review rounds.

Focused Security Audit

Run prr --focus security to zero in on injection, auth bypass, and crypto issues. Suppresses noise from unrelated nits.

Verified Reviews

Run prr --verify to fact-check every comment with a secondary AI pass. Catches hallucinated line numbers and wrong variable names.

Incremental Reviews

Use --since to only review changes since the last run. Track progress between iterations with prr diff.

Review Browser

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.

Quick Start

Install prr and run your first review in under a minute

1. Install

bash
go install github.com/dotbrains/prr@latest

2. Review

bash
# 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 --open

Tip: Run prr config init to scaffold a config file, then set your API key with export ANTHROPIC_API_KEY=sk-...