Skip to content

๐Ÿš€CodiumAI PR-Agent: An AI-Powered ๐Ÿค– Tool for Automated Pull Request Analysis, Feedback, Suggestions and More! ๐Ÿ’ป๐Ÿ”

License

Notifications You must be signed in to change notification settings

dannysteenman/pr-agent

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
logo

Installation Guide | Usage Guide | Tools Guide | Qodo Merge ๐Ÿ’Ž

Open-Source AI-Powered Code Review Tool

PR-Agent is a free, open-source tool that provides AI-powered code review and PR assistance. Run it locally, on your CI/CD, or self-host it.

Qodo Merge ๐Ÿ’Ž is the hosted, enterprise version with additional features, zero-setup, and priority support.


Quick Start Options

Option Best For Setup Time Cost
PR-Agent (Open Source) Developers who want full control, self-hosting, or custom integrations 5-15 minutes Free
Qodo Merge Teams wanting zero-setup, enhancing the open-source features, additional enterprise features, and managed hosting 2 minutes Free tier available

Static Badge Static Badge Static Badge Discord GitHub

Table of Contents

PR-Agent vs Qodo Merge

PR-Agent (This Repository) - Open Source

โœ… What you get:

  • Complete source code access and customization
  • Self-hosted deployment options
  • All core AI review tools (/describe, /review, /improve, /ask)
  • Support for GitHub, GitLab, BitBucket, Azure DevOps
  • CLI usage for local development
  • Free forever

โš™๏ธ What you need to manage:

  • Your own API keys (OpenAI, Claude, etc.)
  • Infrastructure and hosting
  • Updates and maintenance
  • Configuration management

Qodo Merge - Hosted Solution

โœ… What you get (everything above plus):

  • Zero-setup installation (2-minute GitHub app install)
  • Managed infrastructure and automatic updates
  • Advanced features: CI feedback, code suggestions tracking, custom prompts
  • Priority support and feature requests
  • Enhanced privacy with zero data retention
  • Free tier: 75 PR reviews/month per organization

๐Ÿ’ฐ Pricing:

๐Ÿ‘จโ€๐Ÿ’ป Developer Recommendation: Start with PR-Agent if you want to experiment, customize heavily, or have specific self-hosting requirements. Choose Qodo Merge if you want to focus on coding rather than tool maintenance.

Getting Started

๐Ÿš€ Quick Start for PR-Agent (Open Source)

1. Try it Instantly (No Setup)

Test PR-Agent on any public GitHub repository by commenting @CodiumAI-Agent /improve

2. GitHub Action (Recommended)

Add automated PR reviews to your repository with a simple workflow file:

# .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: Codium-ai/pr-agent@main
      env:
        OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Full GitHub Action setup guide

3. CLI Usage (Local Development)

Run PR-Agent locally on your repository:

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

Complete CLI setup guide

4. Other Platforms

๐Ÿ’Ž Try Qodo Merge (Zero Setup)

If you prefer a hosted solution without managing infrastructure:

  1. Install Qodo Merge GitHub App (2 minutes)
  2. FREE for Open Source: Full features, zero cost for public repos
  3. Free Tier: 75 PR reviews/month for private repos
  4. View Plans & Pricing

Complete Qodo Merge setup guide

๐Ÿ’ป Local IDE Integration

Receive automatic feedback in your IDE after each commit: Qodo Merge post-commit agent

Why Use PR-Agent?

๐ŸŽฏ Built for Real Development Teams

Fast & Affordable: Each tool (/review, /improve, /ask) uses a single LLM call (~30 seconds, low cost)

Handles Any PR Size: Our PR Compression strategy effectively processes both small and large PRs

Highly Customizable: JSON-based prompting allows easy customization of review categories and behavior via configuration files

Platform Agnostic:

  • Git Providers: GitHub, GitLab, BitBucket, Azure DevOps, Gitea
  • Deployment: CLI, GitHub Actions, Docker, self-hosted, webhooks
  • AI Models: OpenAI GPT, Claude, Deepseek, and more

Open Source Benefits:

  • Full control over your data and infrastructure
  • Customize prompts and behavior for your team's needs
  • No vendor lock-in
  • Community-driven development

Features

PR-Agent and Qodo Merge offer comprehensive pull request functionalities integrated with various git providers:

GitHub GitLab Bitbucket Azure DevOps Gitea
TOOLS Describe โœ… โœ… โœ… โœ… โœ…
Review โœ… โœ… โœ… โœ… โœ…
Improve โœ… โœ… โœ… โœ… โœ…
Ask โœ… โœ… โœ… โœ…
โฎ‘ Ask on code lines โœ… โœ…
Help Docs โœ… โœ… โœ…
Update CHANGELOG โœ… โœ… โœ… โœ…
Add Documentation ๐Ÿ’Ž โœ… โœ…
Analyze ๐Ÿ’Ž โœ… โœ…
Auto-Approve ๐Ÿ’Ž โœ… โœ… โœ…
CI Feedback ๐Ÿ’Ž โœ…
Compliance ๐Ÿ’Ž โœ… โœ… โœ…
Custom Prompt ๐Ÿ’Ž โœ… โœ… โœ…
Generate Custom Labels ๐Ÿ’Ž โœ… โœ…
Generate Tests ๐Ÿ’Ž โœ… โœ…
Implement ๐Ÿ’Ž โœ… โœ… โœ…
Scan Repo Discussions ๐Ÿ’Ž โœ…
Similar Code ๐Ÿ’Ž โœ…
Utilizing Best Practices ๐Ÿ’Ž โœ… โœ… โœ…
PR Chat ๐Ÿ’Ž โœ…
PR to Ticket ๐Ÿ’Ž โœ… โœ… โœ…
Suggestion Tracking ๐Ÿ’Ž โœ… โœ…
USAGE CLI โœ… โœ… โœ… โœ… โœ…
App / webhook โœ… โœ… โœ… โœ… โœ…
Tagging bot โœ…
Actions โœ… โœ… โœ… โœ…
CORE Adaptive and token-aware file patch fitting โœ… โœ… โœ… โœ…
Auto Best Practices ๐Ÿ’Ž โœ…
Chat on code suggestions โœ… โœ…
Code Validation ๐Ÿ’Ž โœ… โœ… โœ… โœ…
Dynamic context โœ… โœ… โœ… โœ…
Fetching ticket context โœ… โœ… โœ…
Global and wiki configurations ๐Ÿ’Ž โœ… โœ… โœ…
Impact Evaluation ๐Ÿ’Ž โœ… โœ…
Incremental Update โœ…
Interactivity โœ… โœ…
Local and global metadata โœ… โœ… โœ… โœ…
Multiple models support โœ… โœ… โœ… โœ…
PR compression โœ… โœ… โœ… โœ…
PR interactive actions ๐Ÿ’Ž โœ… โœ…
RAG context enrichment โœ… โœ…
Self reflection โœ… โœ… โœ… โœ…
Static code analysis ๐Ÿ’Ž โœ… โœ…
  • ๐Ÿ’Ž means this feature is available only in Qodo Merge

See It in Action




Try It Now

Try the GPT-5 powered PR-Agent instantly on your public GitHub repository. Just mention @CodiumAI-Agent and add the desired command in any PR comment. The agent will generate a response based on your command. For example, add a comment to any pull request with the following text:

@CodiumAI-Agent /review

and the agent will respond with a review of your PR.

Note that this is a promotional bot, suitable only for initial experimentation. It does not have 'edit' access to your repo, for example, so it cannot update the PR description or add labels (@CodiumAI-Agent /describe will publish PR description as a comment). In addition, the bot cannot be used on private repositories, as it does not have access to the files there.


Qodo Merge ๐Ÿ’Ž

Qodo Merge is the hosted version of PR-Agent with additional enterprise features.

Key Differences from Open Source PR-Agent:

Infrastructure & Management:

  • Fully managed hosting and automatic updates
  • Zero-setup installation (GitHub/GitLab/BitBucket app)
  • No need to manage API keys or infrastructure

Enhanced Privacy:

  • Zero data retention policy
  • No data used for model training
  • Enterprise-grade security

Additional Features:

  • Advanced code suggestions with tracking
  • CI feedback analysis
  • Custom prompts and labels
  • Static code analysis integration
  • Priority support

Pricing:

  • Free tier: 75 PR reviews/month per organization
  • Paid plans for unlimited usage
  • Free for open source projects

See complete feature comparison for detailed differences.

How It Works

The following diagram illustrates PR-Agent tools and their flow:

PR-Agent Tools

Check out the PR Compression strategy page for more details on how we convert a code diff to a manageable LLM prompt

Data Privacy

Self-hosted PR-Agent

Qodo-hosted Qodo Merge ๐Ÿ’Ž

  • When using Qodo Merge ๐Ÿ’Ž, hosted by Qodo, we will not store any of your data, nor will we use it for training. You will also benefit from an OpenAI account with zero data retention.

  • For certain clients, Qodo-hosted Qodo Merge will use Qodoโ€™s proprietary models โ€” if this is the case, you will be notified.

  • No passive collection of Code and Pull Requestsโ€™ data โ€” Qodo Merge will be active only when you invoke it, and it will then extract and analyze only data relevant to the executed command and queried pull request.

Qodo Merge Chrome extension

  • The Qodo Merge Chrome extension serves solely to modify the visual appearance of a GitHub PR screen. It does not transmit any user's repo or pull request code. Code is only sent for processing when a user submits a GitHub comment that activates a PR-Agent tool, in accordance with the standard privacy policy of Qodo-Merge.

Contributing

To contribute to the project, get started by reading our Contributing Guide.

Links

About

๐Ÿš€CodiumAI PR-Agent: An AI-Powered ๐Ÿค– Tool for Automated Pull Request Analysis, Feedback, Suggestions and More! ๐Ÿ’ป๐Ÿ”

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Other 0.1%