Favicon of PR-Agent

PR-Agent

A self-hosted AI code review agent reviews pull requests, suggests improvements and answers questions, with local CLI and Docker deployment.

Screenshot of PR-Agent website

PR-Agent is an open-source AI code review agent for development teams that want to run their own pull request reviewer. It can provide feedback automatically through repository workflows or respond to requests in pull request comments.

  • Code review: Review proposed changes and suggest code improvements, including for large pull requests through PR compression.
  • Pull request descriptions: Generate descriptions of proposed changes to help reviewers understand the work.
  • Questions about changes: Ask the agent questions about a pull request through comments or the local CLI.
  • Repository integration: Add reviews through GitHub Actions or connect the agent to GitLab, Bitbucket and Azure DevOps.

You can run PR-Agent locally through its CLI or deploy it in Docker on your own infrastructure. Self-hosting controls where the agent runs, but model requests can still leave that infrastructure. When you use an OpenAI API key, review data goes to OpenAI for inference.

PR-Agent uses the MIT license. It's a community-maintained project originally developed by Qodo, separate from Qodo's hosted code review offering.

Similar to PR-Agent