Who it is forA developer who wants an AI review of a PR before requesting human reviewers.
The problemRunning a review bot usually means installing an app on the repository.
The outcomeA local review of any PR URL, without changing the repository setup.
What you need first
- An LLM API key such as OPENAI_KEY
- A GitHub token (the GitHub Action uses secrets.GITHUB_TOKEN)
- pip for the CLI, or a GitHub Actions workflow
Steps
- Run
pip install "pr-agent[github]" - Run
export OPENAI_KEY=your_key_here - Run
pr-agent --pr_url https://github.com/owner/repo/pull/123 reviewwith your PR URL - Use
pr-agent --pr_url <PR_URL> reviewstyle commands for other tools
Prompt for your agent
Install pr-agent with `pip install "pr-agent[github]"`, then run `pr-agent --pr_url <PR_URL> review` and summarize the findings by severity.
Caveat. Git provider SDKs are optional extras; install the one for your provider or PR Agent[all].
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for The-PR-Agent/pr-agent and "Review any pull request from your terminal"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer