DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to add automatic AI reviews to every pull request with a GitHub Action with PR Agent

Drop a workflow file into the repo so PR-Agent reviews each opened or updated PR.

Short answer: 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. All steps.

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

  1. Create .github/workflows/pr-agent.yml
  2. Trigger it on pull_request with types opened and synchronize
  3. Add a step that uses: the-pr-agent/pr-agent@main with OPENAI_KEY and GITHUB_TOKEN from secrets
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer