Skip to content

Overview

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.

  • See the Installation Guide for instructions on installing and running the tool on different git platforms.

  • See the Usage Guide for instructions on running commands via different interfaces, including CLI, online usage, or by automatically triggering them when a new PR is opened.

  • See the Tools Guide for a detailed description of the different tools.

To search the documentation site using natural language:

1) Comment /help "your question" in a pull request where PR-Agent is installed

2) The bot will respond with an answer that includes relevant documentation links.

Features

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
Add Docs
Generate Labels
Similar Issues
Help
Help Docs ⚠️
Update CHANGELOG
USAGE CLI
App / webhook
Tagging bot
Actions
CORE Adaptive and token-aware file patch fitting
Agent skills (SKILL.md)
Repo context files (AGENTS.md)
Chat on code suggestions
Compression strategy
Dynamic context
Fetching ticket context
Interactivity
Local and global metadata
Multiple models support
Self reflection

⚠️ /help_docs is temporarily disabled since v0.36.1 pending a fix for a credential-exposure issue (#2445); see Help Docs.

Example Results


/describe

/describe


/review

/review


/improve

/improve


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

Footer