PR-Agent is an open-source, AI-powered code review agent. It is a legacy project of Qodo that is now maintained by the community.
NOTE: It is not related to the main product offering of Qodo's code review product.
Qodo now offers a free tier for AI code review to easily integrate with GitHub, GitLab, Bitbucket, and Azure DevOps, with feature-rich capabilities for high-quality context-aware code reviews.
- Getting Started
- Why Use PR-Agent?
- Features
- See It in Action
- Try It Now
- How It Works
- Data Privacy
- Contributing
Test PR-Agent on any public GitHub repository by commenting @CodiumAI-Agent /improve
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
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 reviewFast & 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
PR-Agent offers 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 | โ | โ | โ | โ | ||
| USAGE | CLI | โ | โ | โ | โ | โ |
| App / webhook | โ | โ | โ | โ | โ | |
| Tagging bot | โ | |||||
| Actions | โ | โ | โ | โ | ||
| CORE | Adaptive and token-aware file patch fitting | โ | โ | โ | โ | |
| Chat on code suggestions | โ | โ | ||||
| Dynamic context | โ | โ | โ | โ | ||
| Fetching ticket context | โ | โ | โ | |||
| Incremental Update | โ | |||||
| Interactivity | โ | โ | ||||
| Local and global metadata | โ | โ | โ | โ | ||
| Multiple models support | โ | โ | โ | โ | ||
| PR compression | โ | โ | โ | โ | ||
| RAG context enrichment | โ | โ | ||||
| Self reflection | โ | โ | โ | โ |
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.
The following diagram illustrates PR-Agent tools and their flow:
- If you host PR-Agent with your OpenAI API key, it is between you and OpenAI. You can read their API data privacy policy here: https://openai.com/enterprise-privacy
To contribute to the project, get started by reading our Contributing Guide.
This open-source release remains here as a community contribution from Qodo โ the origin of modern AI-powered code collaboration. Weโre proud to share it and inspire developers worldwide.
The project now has its first external maintainer, Naor (@naorpeled), and is currently in the process of being donated to an open-source foundation.



