PR-Agent CLI

Open-source AI agent for pull request review: descriptions, feedback and improvement suggestions on GitHub, GitLab and more

  • 13,681 ★ on the repository
  • Last commit
  • MIT
CLI

Extended access

Why this level

  • Requires a git provider token and an LLM key
  • PR code is sent to the chosen model
  • Posts comments on PRs
All reasons and checks

The-PR-Agent/pr-agent

Install

Manual install

pip install pr-agent
export OPENAI_KEY=your_key_here
pr-agent --pr_url https://github.com/owner/repo/pull/123 review

Local CLI run

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • Requires a git provider token and an LLM key
  • PR code is sent to the chosen model
  • Posts comments on PRs

This is third-party code. Review the repository files before installing.

What it does

PR-Agent analyzes pull requests and, via /describe, /review, /improve and /ask, writes descriptions, reviews code, suggests improvements and answers questions. Each tool uses a single LLM call, and large PRs are handled by a compression strategy. It runs as a GitHub Action, from the CLI, in Docker or via webhooks, and works with GitHub, GitLab, Bitbucket, Azure DevOps and Gitea. Any model reachable through LiteLLM can be used.

Who it is for. Development teams that want automated PR review on their own infrastructure.

Good fit when

  • You want automatic review of every PR in GitHub Actions
  • You use GitLab, Bitbucket, Azure DevOps or Gitea
  • You want full control over data and review prompts
  • You need a quick description of a large PR

Not a fit when

  • You need a commercial product with deep context: the README itself points to Qodo's main offering
  • You cannot use an external or local LLM

Example request

Add a PR-Agent GitHub Action to the repository so it reviews PRs when they are opened or updated

Limitations

It is a community-maintained legacy project of Qodo. /help_docs has been temporarily disabled since v0.36.1 due to a credential-exposure issue. Docker images from 0.34.2 are published under pragent/pr-agent.

How to disable. Delete .github/workflows/pr-agent.yml or disable the webhook; remove the CLI with pip uninstall pr-agent.

FAQ

How is PR-Agent different from Qodo?

PR-Agent is an open-source, community-maintained project. Qodo's main code review product is separate and more feature-rich.

Discussion

No questions or reviews yet.

CLI tools

Reviews the git diff and the conversation with the agent: catches bugs and gaps between your request and the agent's result. CLI, skill, GitHub Action

SkillExtended access512Repository stars

An extendable code review agent that reads your diff, explores the codebase with real developer tools and leaves focused PR comments

CLIBroad access2.5KRepository stars
Editors’ pick

A CLI for testing and red teaming LLM applications: compares models, runs automated CI checks and finds vulnerabilities

CLIExtended access26.6KRepository stars

An MCP server that checks whether the agent is really done: drives the real app and returns pass, fail or couldn't tell with the file and line

MCP serverExtended access1.3KRepository stars
Needs a VPN

OpenQodex reviews your change before a push: scanners with no model first, then a separate Claude Code or Codex process triages findings on your login

CLIBroad access1KRepository stars

A self-improving QA agent: natural-language tests for web and mobile that self-heal and remember runs

CLIExtended access909Repository stars

README in short

PR-Agent is an open-source code review agent and a community-maintained legacy project of Qodo. The README provides a quick start via GitHub Action and CLI and links to GitLab, Bitbucket and Azure DevOps setup. It covers single-call cost per tool, large PR compression, prompt customization via config and multi-model support. Examples of /describe, /review, /improve and /ask are included.

README badge

Report a problem

Foxx AIPR-Agent
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.