Skip to content

What Is PR-Agent? GitHub Action Setup, the /review /describe /improve Commands and How It Differs from Qodo

When you open a pull request (PR), PR-Agent steps in automatically or when you comment: type `/describe` and it writes a title, summary and file-by-file walkthrough on the PR; type `/review` and it comments on possible bugs, security concerns and tests; `/improve` gives fix suggestions you can commit. It's open source (MIT) and free; it runs as a GitHub Action, on GitLab, Bitbucket, Azure DevOps and Gitea, or from the terminal, you choose the model, and the model cost goes to that provider. It isn't Qodo's paid product; Qodo handed the project over to the community.

What it does
Writes PR descriptions, reviews and fix suggestions
Type
Open-source PR agent (GitHub Action, webhook, CLI)
Where
GitHub, GitLab, Bitbucket, Azure DevOps, Gitea
Model
You choose (OpenAI by default; Claude, Gemini, local models)
Maintenance
Community (handed over from Qodo)
Version
0.50.0 (November 7, 2026)
Cost
Free (MIT); model cost is separate

What is PR-Agent for?

Before merging a code change into the main code, a developer opens a pull request (PR, a merge request); someone on the team reads and approves it. In small teams these reviews stall and PR descriptions stay empty. PR-Agent reads the PR, writes its description, leaves possible issues as comments and suggests fixes; a human review still happens, but it starts faster.

Who it helps: software teams of two or three, agencies that manage client projects on GitHub or GitLab, and open-source maintainers reviewing incoming contributions. For example, on a PR that changes an e-commerce site's checkout code, /review lists security and test gaps as comments.

To learn about GitHub's own AI assistant and code review, see the GitHub Copilot guide.

What's the difference between PR-Agent and Qodo?

PR-Agent was first developed by Qodo (older Docker images are still under codiumai/pr-agent). According to the README, Qodo donated the project to the open-source community: the repository now lives in the The-PR-Agent organization, is fully community-owned, has its first external maintainer, and is in the process of being donated to an open-source foundation. The docs moved to docs.pr-agent.ai.

PR-AgentQodo
WhatOpen-source PR review agentCommercial AI code review platform (successor to the hosted Qodo Merge)
Where it runsIn your GitHub Action, on your server or your computerQodo's service
CostFree (MIT); model cost with the providerOn its own pricing page; a free version for open-source projects
MaintenanceCommunity; Qodo is a Gold sponsor (README)Qodo

README: "This project is not the Qodo free tier." The free version Qodo offers to open-source projects isn't PR-Agent; it's a separate product. Source: the PR-Agent README and SECURITY.md (November 18, 2026).

How does PR-Agent work?

PR or comment› /reviewTriggers automatically when a PR opens, or when you comment a command on the PR.
Prepares the diffFits large PRs to the model with its compression strategy; can add AGENTS.md and SKILL.md context.
ModelSends it to your chosen provider's model; simple requests can finish in one call.
Writes on the PRPosts a description, review comment or suggestions on the PR.

Review categories and behavior are set with a configuration file (.pr_agent.toml). Every command also accepts free-text instructions through extra_instructions (e.g. "focus on security").

How do you install PR-Agent?

Requirement: a model provider's API key (OpenAI by default). No account is needed. The commands come from the official README and installation docs.

  1. Add a secret named OPENAI_KEY to the repository (Settings › Secrets and variables › Actions).
  2. Save the file below as .github/workflows/pr-agent.yml.
.github/workflows/pr-agent.yml› name: PR Agent on: pull_request: 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 }}

By default it doesn't rerun when new commits are pushed (synchronize); the docs explain enabling that with github_action_config.pr_actions or handle_push_trigger. If you use Claude or Gemini, OPENAI_KEY isn't needed, only that provider's key.

The README's @main pulls the latest release on every run. To pin the version, use docker://pragent/pr-agent:0.50.0-github_action in the Action, or pip install "pr-agent[github]==0.50.0" with pip.

What do you type, what do you get? Example commands

You write commands as comments on the PR; PR-Agent posts its answer on the same PR. The examples come from the official commands docs; the output is described as far as the docs describe it.

Have it write the PR description"/describe"What you get: the PR's title, type (bug fix, new feature…), summary, a file-by-file code walkthrough and labels.
Have it review the PR"/review"What you get: a review comment on possible issues, security concerns, tests and review effort.
Ask a question about the PR"/ask "Does this change affect the checkout flow?""What you get: an answer based on the PR's changes, as a comment. On GitHub, GitLab and Azure DevOps you can also ask about specific code lines.
Focused review"/review --pr_reviewer.extra_instructions="Focus on security and authorization checks""What you get: the same review, focused on your instruction. Every command accepts free-text instructions through extra_instructions.

To change the response language, set the response_language locale code in the configuration (e.g. tr-TR); writing /review --config.response_language=tr-TR applies it to that command only. The default is U.S. English; the docs give no Turkish output example.

PR-Agent commands

CommandWhat it does
/describePR title, type, summary, code walkthrough and labels
/reviewPossible issues, security concerns, tests and review effort
/improveRuns /review; findings can carry committable fixes
/ask "…"Questions and answers about the PR or specific code lines
/add_docsWrites documentation for code components that lack it
/generate_labelsGenerates custom labels based on the changes
/update_changelogUpdates CHANGELOG.md with the PR's changes
/similar_issueFinds similar issues from an issue (GitHub only)
/helpLists the available commands

/help_docs has been temporarily disabled since v0.36.1 until a credential-exposure issue (#2445) is fixed. In the terminal the same commands run as pr-agent --pr_url <PR URL> review.

Which models does PR-Agent work with?

PR-Agent has no model of its own; you choose the model in the configuration file's model field, and if it gets no answer it switches to the backup model in the fallback_models list. Because it runs through LiteLLM, providers LiteLLM supports and OpenAI- or Anthropic-compatible endpoints can be connected.

ProviderNote in the docs
OpenAIDefault. In the November 18, 2026 configuration the default model is gpt-6.1-sol, with gpt-6-luna as backup.
Anthropic (Claude)With an Anthropic API key; docs example anthropic/claude-opus-5.
Google GeminiWith a Google AI Studio key; docs example gemini/gemini-3.8-flash.
Azure OpenAI, AWS Bedrock, Vertex AIWith the cloud account's credentials.
OpenRouter, DeepSeek, MistralWith the provider's key and LiteLLM prefix.
OllamaLocal model. Ollama's default 2048-token context isn't enough for most PRs: raise it with OLLAMA_CONTEXT_LENGTH and set custom_model_max_tokens to match. Code stays in-house only if Ollama runs on your own machine or server; PR-Agent in a GitHub Action must be able to reach that address.

Which should you pick? An OpenAI key is enough to start with the ready-made example. To use Claude, use an Anthropic API key or Bedrock. The docs describe a separate setting for routing small PRs to a cheaper model. Turn on config.output_run_details to see which model handled which PR.

Checked on November 18, 2026. Source: the "Changing a model" doc and configuration.toml. Model names change often; the current list is in pr_agent/algo/__init__.py.

Which platforms does PR-Agent run on?

GitHubYesAction, app/webhook, CLI; all commands.
GitLabYesWebhook, pipeline, CLI; except /similar_issue.
Bitbucket Cloud / ServerYesApp and pipeline (Cloud); some commands post output as a comment.
Azure DevOpsYesWebhook, pipeline, CLI.
GiteaYesWebhook and CLI.
Local repository or plain diffPartlyWithout a platform; results go to a file or the screen.

Source: the "Supported platforms" matrix (November 18, 2026). Gerrit and CodeCommit are also registered providers, with more limited support.

What does PR-Agent access, and where does my code go?

Reads

The PR's diff and description, related files when needed, repository context files such as AGENTS.md and SKILL.md, and linked issues or tickets.

Sends

Sends the diff to the model provider you choose. According to SECURITY.md, PR-Agent doesn't send code to any server run by the project; the data relationship is between you and the provider.

Writes

Descriptions, comments and suggestions on the PR; labels; CHANGELOG changes on supported platforms. Action permissions: contents read, issues write, pull-requests write.

For PRs from forks, the pull_request event doesn't provide secrets; working around this with pull_request_target or secret sharing exposes your secrets to a workflow triggered by fork code. Don't enable it without reading the warning in the docs.

Source: SECURITY.md, "Data Privacy" and the GitHub installation doc. This section isn't a security certification.

Is PR-Agent free?

Yes. PR-Agent is MIT-licensed open source; there's no account, subscription or usage limit. The only cost comes from the model provider you connect; the README says simple /review and /ask requests can use one model call, while retries, fallbacks and larger reviews may need more. GitHub Actions minutes count separately under your GitHub plan. Prices are in US dollars.

Allowed
  • MIT: free to use in commercial projects, modify and distribute
Not allowed
  • When distributing you must keep the license and copyright notice; the software is provided "as is"

Source: LICENSE (MIT), the README. Qodo's paid plans don't belong to PR-Agent; they're on Qodo's own pricing page. This isn't legal advice.

Official pricing page last checked on .

Common problems and fixes

What's happeningWhat to do
It doesn't run on PRs from forksThe pull_request event doesn't provide secrets on fork PRs; read the options and their risks in the docs.
It doesn't rerun when I push new commitssynchronize is skipped by default; add it to github_action_config.pr_actions or turn on handle_push_trigger.
/help_docs doesn't respondTemporarily disabled since v0.36.1 because of a credential-exposure issue (#2445).
The Docker image can't be found for a new releaseReleases 0.34.2 and later are under pragent/pr-agent; update your codiumai/pr-agent references.
Output is garbled or incomplete with OllamaThe default 2048-token context isn't enough; raise it, e.g. OLLAMA_CONTEXT_LENGTH=8192 ollama serve, and set custom_model_max_tokens to the same value.
The model errors out or the answer is cut offCheck the key and provider prefix; define a backup with fallback_models, and set custom_model_max_tokens for models outside the token table.

How do you remove PR-Agent?

  1. GitHub Action: Delete .github/workflows/pr-agent.yml and remove the OPENAI_KEY secret if it's no longer needed.
  2. pip: pip uninstall pr-agent (pip's standard command; not stated in the official documentation).
  3. Webhook and app: Remove the webhook or the app you installed from the Git platform's settings.

Frequently asked questions

What's the difference between PR-Agent and Qodo?

PR-Agent is an open-source, free PR review agent; Qodo handed the project over to the community. Qodo is a separate commercial code review platform, and the README states that PR-Agent isn't Qodo's free tier.

How do you install PR-Agent on GitHub?

Add the OPENAI_KEY secret to the repository and save the README's workflow as .github/workflows/pr-agent.yml. To pin the version, use docker://pragent/pr-agent:0.50.0-github_action.

Does PR-Agent work on GitLab?

Yes. On GitLab it runs through a webhook, pipeline or CLI; all commands except finding similar issues are supported. Bitbucket, Azure DevOps and Gitea are supported too.

Does PR-Agent run with Docker?

Yes. The official image is published as pragent/pr-agent; for the GitHub Action, pinning with a version-tagged image or a sha256 digest is recommended.

Does PR-Agent work with a local model (Ollama)?

Yes, Ollama is among the providers supported through LiteLLM. Ollama's default 2048-token context isn't enough for most PRs, so you raise it with OLLAMA_CONTEXT_LENGTH. Speed and review quality depend on the model and hardware.

Is PR-Agent free?

Yes, it's MIT-licensed and needs no account. The only cost comes from the model provider you connect.

Can PR-Agent write comments in Turkish?

You change the response language by setting a locale code in the response_language setting, e.g. tr-TR. The default is U.S. English; the docs give no Turkish output example.

Related guides

Sources

Not clear in the official sources: The quality of replies in Turkish (the setting exists, but there's no Turkish example) · the typical model cost of a PR review. Each is covered in its section.