The-PR-Agent /pr-agent
🚀 PR Agent: The Original Open-Source PR Reviewer. This project is not the Qodo free tier.
★ 16,225⑂ 2,207👁 64⑃ 3,536● 1,359▤ 42
+59
Daily
16,225
stars
2,207
forks
64
watchers
3,536
prs
1,359
issues
42
releases
README
The Original Open-Source PR Reviewer
---
This repository contains the open-source PR Agent Project.
It is not the Qodo offering for open-source projects.
PR-Agent is an open-source, AI-powered code review agent and a community-maintained legacy project of Qodo. It is distinct from Qodo's primary AI code review offering, which provides a feature-rich, context-aware experience. Qodo offers a free version for open-source projects and integrates seamlessly with GitHub, GitLab, Bitbucket, and Azure DevOps for high-quality automated reviews.
Sponsors
PR-Agent is a community-maintained open-source project, with its ongoing development supported by our sponsors. If you'd like to support the project, consider becoming a sponsor.
🥇 Gold Sponsor
Free version of Qodo for open-source projects
Table of Contents
- Getting Started
- Why Use PR-Agent?
- Features
- See It in Action
- How It Works
- Data Privacy
- Contributing
Getting Started
[!NOTE]
Docker Hub namespace migration. Releases 0.34.2 and later are published under pragent/pr-agent. Older releases (up to and including v0.31) remain available at the legacy codiumai/pr-agent namespace as a frozen archive — no new images are pushed there. Update any pinned image: / docker pull / uses: docker:// references when upgrading to 0.34.2+.
🚀 Quick Start for PR-Agent
1. GitHub Action (Recommended)
Add automated PR reviews to your repository with a simple workflow file:
yaml
.github/workflows/pr-agent.yml
name: PR Agent
on:
pull_request:
PR-Agent skips synchronize by default. Include it in github_action_config.pr_actions
for auto commands, or enable github_action_config.handle_push_trigger for push_commands (takes precedence).
types: [opened, synchronize]
jobs:
pr_agent_job:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
steps:
- name: PR Agent action step
uses: the-pr-agent/pr-agent@main
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Full GitHub Action setup guide
2. CLI Usage (Local Development)
Run PR-Agent locally on your repository:
bash
pip install "pr-agent[github]"
export OPENAI__KEY=your_openai_key
export GITHUB__USER_TOKEN=your_github_token
pr-agent --pr_url https://github.com/owner/repo/pull/123 review
Git provider SDKs are optional extras: install the one for your provider (list), or pr-agent[all] for every integration.
Complete CLI setup guide
3. Other Platforms
- GitLab webhook setup
- BitBucket app installation
- Azure DevOps setup
News and Updates
Full notes for every release are on the Releases page.
Why Use PR-Agent?
🎯 Built for Real Development Teams
Fast & Affordable: Each command (/review, /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 CustoTop issues
#2499Is there any plan for supporting code graph?15 comments · 2026-07-03#2640Support analysis of CI build logs6 comments · 2026-08-13#3778Using PR-Agent at your company/organization? We'd love to know!5 comments · 2026-09-30#4444Refuse configuration overrides in PR comments by default3 comments · 2026-10-28#4889Option to include ticket comments in the ticket context2 comments · 2026-11-12#4699Document the approval verdict, its checks and the opt-in approval2 comments · 2026-11-05#4935Turn on the merge verdict and gated auto-approval in this repository's PR-Agent workflow1 comments · 2026-11-14#4908GitLab ticket context publishes confidential issues in public and internal projects1 comments · 2026-11-13
Discussions
#4606Question: do you test for unintended side effects?0 comments · 2026-11-02#4465How to configure to review individual commits?1 comments · 2026-10-28#4046Opt-in, conditional auto-approval (off by default)2 comments · 2026-10-09#4040explicit skill applicability and versioned metadata0 comments · 2026-10-09#3991How should we manage credential redaction?1 comments · 2026-10-08#3988Documentation-rot baseline: 8/8 external references healthy (2026-10-08)0 comments · 2026-10-08#3942A hard dollar cap per PR-Agent run in GitHub Actions (OPENAI.API_BASE + LITELLM.EXTRA_HEADERS)1 comments · 2026-10-06#3924Maintainer interest: sb123sb1232 comments · 2026-10-05
Latest release
v0.50.0 v0.50.0 2026-11-07⚠️ Breaking changes and upgrade notes - Host-only settings: Repository .pr_agent.toml files can no longer override GitHub pacing and retry settings (github.seconds_between_requests, github.seconds_between_writes, github.api_retries, github.ratelimit_retries), config.num_retries, azure_devops_server.agent_identity, custom-label settings (config.enable_custom_labels and [custom_labels]), or pr_code_suggestions.max_number_of_calls. config.num_retries is capped at 10. Per-directory .pr_agent.toml files also cannot set pr_code_suggestions.dual_publishing_score_threshold. Move values you rely on
相关报道 (7)
blog.csdn最完整PR-Agent使用指南:从安装到高级配置的一站式教程2026-11-04blog.csdn【亲测免费】 CodiumAI PR-Agent 使用教程2026-11-04CSDNGitHub趋势:AI编程代理进入工程化协作时代,从个人助手到团队协作者2026-11-08CSDNAI Agent装备清单:5个开源项目让智能体真正干活2026-11-06OrcaRouterPixelLeak:13,000 张内部截图现身公开 GitHub2026-10-26新浪财经_金融信息服务商GitHub宕机七小时,代码世界的“权威源”第一次有了挑战者2026-08-18www.80aj.comAI编程新秀项目Vibedesign获首个PR,社区聚焦Agent可视化需求2026-07-17
News & coverage (9)
orcarouter.aiBenchmarks: Artificial Analysis · atualizado diariamente2026-11-04korbenPR-Agent - Automate your pull requests on Github and Gitlab2024-01-19tech2geekPR-Agent – To automate the analysis of Pull Requests and many other tasks on your Github, Gitlab projects, and more2024-01-19irblog.prnewswire.comCodiumAI Disrupts the Pull Request Paradigm with Cutting-Edge Open-Source PR-Agent Adopted by Giants2023-07-24DatabricksLakebase and Agentic SDLC: Branching Databases for Coding Agents2026-10-08OrcaRouterWhat Is a PR Agent? AI Pull-Request Review, Explained2026-08-18The Futurum GroupQodo Hands PR-Agent to the Community: Will Open Governance Accelerate AI Code Review?2026-04-23Augment Code12 Best Open Source Code Review Tools in 20262026-01-23Augment Code10 Open Source AI Code Review Tools Tested on a 450K-File Monorepo [2026 Rankings]2026-01-16