Scripts2026年3月31日·1 分钟阅读

PR-Agent — AI-Powered Code Review for Pull Requests

AI code reviewer for GitHub/GitLab/Bitbucket PRs. Auto-generates descriptions, reviews code, suggests improvements, answers questions. By Qodo. 10.7K+ stars.

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

Add to any GitHub repo — comment on a PR:

/review
/describe
/improve

Or install via GitHub App at qodo.ai.

Self-hosted:

pip install pr-agent
python -m pr_agent.cli --pr_url=https://github.com/owner/repo/pull/123 review

介绍

PR-Agent is an AI-powered code review tool for pull requests. It auto-generates PR descriptions, performs comprehensive code reviews, suggests improvements, and answers questions about code changes. Works with GitHub, GitLab, Bitbucket, and Azure DevOps. Supports Claude, GPT-4, and other models. By Qodo (formerly CodiumAI). 10,700+ GitHub stars.

Best for: Development teams wanting AI-assisted code review on every PR Works with: GitHub, GitLab, Bitbucket, Azure DevOps, Claude, GPT-4


Commands

Command Description
/review Comprehensive code review with risk assessment
/describe Auto-generate PR title and description
/improve Suggest code improvements with patches
/ask "question" Ask anything about the PR changes
/update_changelog Update CHANGELOG.md based on PR
/add_docs Generate docstrings for new functions
/test Suggest test cases for the changes

Review Output

  • Security vulnerabilities flagged
  • Performance concerns highlighted
  • Code quality suggestions with severity levels
  • Overall risk score (1-5)

FAQ

Q: What is PR-Agent? A: An AI code review tool for pull requests. Auto-generates descriptions, reviews code, suggests improvements, and answers questions. Works with GitHub/GitLab/Bitbucket. 10.7K+ stars.

Q: Is PR-Agent free? A: Open-source for self-hosting (AGPL-3.0). Qodo offers a free tier for the hosted version.


🙏

来源与感谢

Created by Qodo. Licensed under AGPL-3.0. Codium-ai/pr-agent — 10,700+ GitHub stars

相关资产