SuperAPI AI Directory

pr-agent

Open-source AI agent for PR reviews with actionable insights.

Open website

About this tool

PR-Agent is an open-source, AI-powered code review agent and a legacy project maintained by the Qodo community. It is not Qodo's free version for open-source projects, but rather an open-source project independent of Qodo's main AI code review product. The project has been donated by Qodo to the open-source community and is currently hosted under the PR-Agent organization on GitHub, fully community-owned, and open to contributions and maintainers.

In terms of purpose, PR-Agent is designed to provide development teams with automated PR review capabilities. It can run as comments in PRs, or be used locally in a repository via the CLI. Common tools include /review, /improve, /ask, etc. Each tool uses a single LLM call, completes in about 30 seconds, and has low cost. It adopts a PR compression strategy and can effectively handle both small and large PRs.

Main capabilities include: fast and economical, with a single LLM call per tool; handling PRs of any size; easily customizing review categories and behavior through JSON-based prompt configuration; platform independence, supporting Git providers such as GitHub, GitLab, BitBucket, Azure DevOps, and Gitea, with deployment methods covering CLI, GitHub Actions, Docker, self-hosting, and Webhooks; AI model support for OpenAI GPT, Anthropic Claude, Google Gemini, DeepSeek, Mistral, and any model accessible through LiteLLM (such as Azure OpenAI, AWS Bedrock, Vertex AI, Databricks, OpenRouter, Ollama, etc.).

In terms of usage, automated PR review can be added to a repository through a simple workflow file, or run locally using the CLI. Git provider SDKs are optional add-ons; you can install the package for the corresponding provider, or use pr-agent[all] to install all integrations. The project provides documentation such as the GitHub Action setup guide, CLI setup guide, GitLab Webhook setup, BitBucket app installation, and Azure DevOps setup.

The applicable scenarios are development teams that want to automate code review and improve team collaboration efficiency, especially suitable for organizations that need complete data and infrastructureself-control, no vendor lock-in, and customizable prompts and behavior.

Limitations and notes: /help_docs has been temporarily disabled since v0.36.1 due to a credential exposure issue, pending a fix. Docker images from 0.34.2 and later are published under the pragent/pr-agent namespace, while older versions (up to v0.31) remain in the codiumai/pr-agent namespace as a frozen archive, with no new images pushed; when upgrading, the pinned image reference needs to be updated. When self-hosting, if you use your own OpenAI API key, data privacy is governed by the policy between the user and OpenAI. For local verification, you can run PYTHONPATH=. uv run pytest; end-to-end tests require provider credentials.