What do you want to do?
3 use cases
-
Add automatic AI reviews to every pull request with a GitHub Action
Drop a workflow file into the repo so PR-Agent reviews each opened or updated PR.
View prompt
Add .github/workflows/pr-agent.yml to this repo using the-pr-agent/pr-agent@main on pull_request opened and synchronize, with OPENAI_KEY and GITHUB_TOKEN from secrets. Do not commit any key.
-
Review any pull request from your terminal
Install the CLI and run review, describe or improve against a PR URL.
View prompt
Install pr-agent with `pip install "pr-agent[github]"`, then run `pr-agent --pr_url <PR_URL> review` and summarize the findings by severity.
-
Describe, improve and question a PR with comment commands
Use /describe, /improve and /ask as PR comments once PR-Agent is installed.
View prompt
On PR <url>, run PR-Agent /describe and /improve, then /ask whether it changes any public API, and give me a short summary.
Quick start with PR Agent
- Check you have what it needs: 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.
- Open The-PR-Agent/pr-agent on GitHub and read the README and license.
- Create
.github/workflows/pr-agent.yml - Trigger it on pull_request with types opened and synchronize
- Add a step that
uses: the-pr-agent/pr-agent@mainwith OPENAI_KEY and GITHUB_TOKEN from secrets - Open a PR and read the review comment
These steps come from our top use case, Add automatic AI reviews to every pull request with a GitHub Action, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for The-PR-Agent/pr-agent
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 freeAbout this repo
- Who it is forTeams that want self-hosted AI pull request reviews with their own model key.
- Why it is hot+966 stars this week, 15k total, talked about in 2 AI sources we track
- LanguagePython
- Sourcegithub.com/The-PR-Agent/pr-agent ยท Back to Hot repos
Requirements
- 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
Add this badge to your README
Maintain PR Agent? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/the-pr-agent-pr-agent/?utm_source=github&utm_medium=badge&utm_campaign=The-PR-Agent-pr-agent)
HTML
<a href="https://dedupedai.com/use-cases/the-pr-agent-pr-agent/?utm_source=github&utm_medium=badge&utm_campaign=The-PR-Agent-pr-agent"><img src="https://dedupedai.com/badge/The-PR-Agent/pr-agent.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about PR Agent
What is PR Agent?
PR-Agent is an open-source, AI-powered code review agent, now community maintained. It runs tools such as /describe, /review, /improve and /ask as PR comments or from the CLI, each with a single LLM call, and works with GitHub, GitLab, BitBucket, Azure DevOps and Gitea and with models reachable through LiteLLM. It is an open-source project on GitHub: https://github.com/The-PR-Agent/pr-agent.
How do I use PR Agent?
Create .github/workflows/pr-agent.yml; then Trigger it on pull_request with types opened and synchronize; add a step that uses: the-pr-agent/pr-agent@main with OPENAI_KEY and GITHUB_TOKEN from secrets. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is PR Agent for?
Teams that want self-hosted AI pull request reviews with their own model key.
What can I do with PR Agent?
3 use cases so far, for example: Add automatic AI reviews to every pull request with a GitHub Action; Review any pull request from your terminal; Describe, improve and question a PR with comment commands. Each has steps and a copy-paste agent prompt.
What do I need to run PR Agent?
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.
What are alternatives to PR Agent?
Other hot AI repos in Software and DevOps: Skills, Claude Mem, Freellmapi, Andrej Karpathy Skills, Agent Desktop.
Is PR Agent safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.