pr-agent

🚀 PR Agent: The Original Open-Source PR Reviewer. This project is not the Qodo free tier.

What is pr-agent?

🚀 PR Agent: The Original Open-Source PR Reviewer. This project is not the Qodo free tier.

Overview of pr-agent

What it is

PR-Agent is an open-source, AI-powered code review agent. It is the original open-source PR reviewer and a community-maintained legacy project of Qodo. This repository is distinct from Qodo's primary AI code review offering and is not the Qodo free tier.

Key features

  • Fast and affordable: each tool (e.g., /review, /improve, /ask) uses a single LLM call, completing in about 30 seconds with low cost.
  • Handles any PR size: PR Compression strategy processes both small and large pull requests effectively.
  • Highly customizable: JSON-based prompting allows easy customization of review categories and behavior via configuration files.
  • Platform agnostic: supports GitHub, GitLab, Bitbucket, Azure DevOps, Gitea; deployment via CLI, GitHub Actions, Docker, self-hosted, webhooks; AI models include OpenAI GPT, Anthropic Claude, Google Gemini, DeepSeek, Mistral, and any model reachable through LiteLLM.
  • Open source benefits: full control over data and infrastructure, customize prompts and behavior, no vendor lock-in, community-driven development.

Use cases

  • Automated code review on pull requests using commands like /review, /improve, /describe, and /ask for free-text Q&A about the PR.
  • Issue-scoped commands such as /similar_issue to find similar issues in the repository.
  • Local CLI usage for reviewing PRs or issues without a webhook.

Getting started

GitHub Action (Recommended)

### .github/workflows/pr-agent.yml
name: PR Agent
on:
  pull_request:
    types: [opened, synchronize]
jobs:
  pr_agent_job:
    runs-on: ubuntu-latest
    steps:
- name: PR Agent action step
      uses: the-pr-agent/pr-agent@main
      env:
        OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CLI Usage (Local Development)

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

For other platforms (GitLab, Bitbucket, Azure DevOps), see the repository README.

License and pricing

This project is licensed under the MIT License and is open source. No pricing information is provided beyond being open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/the-pr-agentpr-agent.svg)](https://yunodb.com/tools/the-pr-agentpr-agent?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/the-pr-agentpr-agent?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/the-pr-agentpr-agent.svg" alt="Featured on YunoDB" height="20"></a>