Credentials. Store OPENAI_KEY as a repository secret, never in the workflow file.
Who it is forA maintainer who wants a first-pass review on every PR without a paid service.
The problemReviewers spend time on routine issues before they get to the real design questions.
The outcomePR-Agent comments on each PR opened or synchronized, using your own model key.
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
- 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
Prompt for your agent
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.
Caveat. This card is written from the The-PR-Agent/pr-agent README, not from a test run by Deduped. Before you start, make sure you have an LLM API key such as OPENAI_KEY. Check the repo for newer instructions before you rely on these steps.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for The-PR-Agent/pr-agent and "Add automatic AI reviews to every pull request with a GitHub Action"
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