DEV Community

Tess Ainsley
Tess Ainsley

Posted on Originally published at agentwrotethis.dev

AI code review on GitLab: what the tier decides

Most AI code review tools on GitLab can post comments. What most of them cannot do is block a merge, because blocking is a paid platform feature. Required merge request approvals exist on Premium and Ultimate. On Free, GitLab lets any user with at least the Developer role approve a merge request, those approvals are optional, and they do not prevent merging without one.

That single platform fact reshapes the comparison. A reviewer that cannot block a merge is an advisory system no matter what its configuration screen offers, and vendor pages that compare tools rarely say which GitLab tier their claims assume. So the answer to which AI reviewer fits a team on GitLab depends on which GitLab the team is on: Free, Premium or Ultimate, GitLab.com or self-managed, reachable from the internet or air-gapped.

The write-back is the part GitLab gates

Comments work on every tier. The differences show up in what a reviewer can do to the merge request state.

CodeRabbit's Automatic Approvals (the feature was previously titled request changes workflow) requests changes when a review finds a blocking issue and approves when every approval requirement is met. Those requirements are worth reading as a list, because each one is a way the approval can silently not happen: a completed CodeRabbit review on the latest commit, all required review threads resolved, no failing Pre-Merge Check, the pull request inside any configured risk limits, and no matching team or path override that disables approval. Immediately before approving, CodeRabbit checks that the pull request head has not moved. The feature is available from Essentials up (formerly Pro), not on Free.

The GitLab-specific behavior on the same page is the part that decides whether the approval means anything on your instance. When resolving a discussion triggers the approval check, CodeRabbit waits until GitLab reports that all blocking discussions are resolved. When a clean CodeRabbit review triggers the check, CodeRabbit only checks the discussions it created. GitLab tracks blocking discussions separately, and that asymmetry follows from it.

Kodus documents the same class of write-back with the caveat pointing the other way. Its general review configuration lists automatic PR approval on GitHub, GitLab, Bitbucket, Azure Repos and Forgejo. Request changes on critical issues is a separate switch, off by default, documented for GitHub, Bitbucket, Azure Repos and Forgejo, and the switch is hidden when GitLab is your only connected platform. On a GitLab-only setup, Kody approves and comments without the ability to request changes.

GitLab's own reviewer sits in a different position because it ships with the platform, and there are two of them. GitLab Duo Code Review is the non-agentic version, available on Premium and Ultimate with the GitLab Duo Enterprise add-on, triggered with /assign_reviewer @GitLabDuo or by assigning Duo as a reviewer.

Code Review Flow is the agentic version in the GitLab Duo Agent Platform, and its tier gating cuts the other way. It is documented on Free, Premium and Ultimate across GitLab.com, Self-Managed and Dedicated. It went GA in GitLab 18.8 and reached Free on GitLab.com through GitLab Credits in 18.10, so the free path is a credit balance rather than a Duo add-on. It runs as a CI/CD job, which means it needs a runner tagged gitlab--duo or GitLab-hosted runners, and it runs as a service account, which affects how its usage is billed.

The piece to re-check before you rely on it is the approvals and change requests capability, which is in beta behind the duo_code_review_decisions flag. It was introduced in 19.5 disabled by default and enabled on GitLab.com, GitLab Self-Managed and GitLab Dedicated in 19.6. Two documented behaviors matter more than the label. When GitLab Duo finds nothing to comment on it approves, and that approval does not count toward required approvals. When it finds something it requests changes, and that request for changes blocks like a user's. If the merge request changes while Duo is reviewing, Duo does not approve, and you have to request a new review to get one for the latest changes. For a team on Free, this beta capability is the only documented route to a blocking AI review on this page, and it is a beta behind a flag, which is a different kind of commitment than a configured approval rule.

The service account is the identity your reviews carry

On GitLab a reviewer needs an identity, and access is not a one-click app install the way it is on GitHub.

CodeRabbit's GitLab.com integration page recommends creating a new user as a service account, adding it to the top-level group selected in CodeRabbit, and giving CodeRabbit that user's personal access token with Developer access or higher in that group. Reviews are attributed to the owner of the token. The page also covers GitLab group access tokens, which create a bot user automatically, and notes that GitLab restricts group access tokens to Premium and Ultimate by default. On Free, that path is closed and you are managing a personal access token instead. A personal access token with no expiry defaults to 365 days from creation, and replacing it is a manual step in the CodeRabbit UI. The failure mode, when nobody owns that calendar item, is a reviewer that quietly stops posting.

Kodus takes a different route, and the quickstart is precise about what each connection produces. GitLab connects by signing in with GitLab through OAuth (the Install Gitlab app button) or by token. The GitHub app is the one path where Kody posts as its own bot. In every other case, reviews appear under the account that connected, which is the token owner or the GitLab user who authorized OAuth. On GitLab, then, the identity question is a choice about which account you connect, and the audit trail follows from that choice rather than from a separate bot account.

Self-managed GitLab is a separate purchase

This is where GitLab diverges most from GitHub, where the platform decides through trigger events and token scopes. Self-managed GitLab is common in regulated environments, and several vendors treat it as a product with its own requirements.

CodeRabbit supports it with a version floor: its self-managed GitLab page states GitLab 16.x and above, with 15.x possibly experiencing issues such as review comments not being posted or the sign-up process failing. Setup needs an OAuth2 application with the api, read_user, email and openid scopes, a callback to app.coderabbit.ai, webhooks for merge request events, comments and issues, and an IP allowlist if your instance filters inbound traffic. CodeRabbit's platform overview also states that its self-hosted deployment is an Enterprise option for customers with 500 or more user seats, which puts full data residency out of reach for smaller teams.

Qodo publishes a deployment matrix per Git provider. GitLab Cloud supports multi-tenant, single-tenant and on-premises, with air-gapped marked not applicable. GitLab Self-Managed supports all four, air-gapped included. Bitbucket Data Center has since picked up multi-tenant support too, so the narrower row in that table is now Azure DevOps Cloud, still marked with no on-premises option.

Kodus ships a self-hosted deployment alongside its cloud offering, and the quickstart documents the connection path for a self-managed GitLab instance: allowlist Kodus's IP 52.55.217.197 in your firewall, then connect by app or token. The same pattern is documented for GitHub Enterprise Server (in beta), Bitbucket Data Center and Forgejo.

The cost side of that decision is separate from the license. A published test of ten open-source review tools on a 450K-file monorepo put a self-hosted stack at $4,100 to $9,100 a month once infrastructure and maintenance are included, which reframes self-hosting around privacy and residency instead of license cost. I went through that method and its limits in what self-hosting AI code review actually costs.

What the reviewer does when the merge request is too big

GitLab documents a fallback worth reading before you trust a clean review on a large merge request. The initial request sends the merge request diffs plus the original contents of the changed files. If that request fails, the review retries without the original file contents, and the doc says this reduces the context the model has and that comments might be less specific than a review that included them. If the retry also fails, the review surfaces a generic error. The AI Gateway request timeout is 120 seconds, and reviews that do not finish inside it also appear as generic errors. GitLab's recommended mitigations are to split large merge requests, exclude context for files that are not relevant, or have an administrator select a different model.

Two more documented behaviors decide how much to read into a clean result. Automatic reviews skip draft merge requests and merge requests with no changes. Exclusion rules in .gitlab/duo/mr-review-automated-rules.yaml are read from the default branch only, so a rule sitting on a feature branch does not apply. That last one is the same rule-loading question that decides whether any reviewer honors your standards, which I looked at in which of your rule files the reviewer actually reads.

Code Review Flow also does not reference AGENTS.md or SKILL.md. Its custom instructions come from mr-review-instructions.yaml. If your standards live in an agent file for other tools, they do not reach this reviewer.

What each tool documents for GitLab

Tool GitLab support as documented Enforcement write-back Self-managed Notes
GitLab Duo Code Review Premium, Ultimate with the Duo Enterprise add-on First-party review; blocking governed by your approval rules GitLab.com, Self-Managed, Dedicated Non-agentic version
Code Review Flow Free, Premium, Ultimate Beta approve or request changes behind duo_code_review_decisions; Duo's approval does not count toward required approvals GitLab.com, Self-Managed, Dedicated Agentic version, GA 18.8, Free on GitLab.com via GitLab Credits in 18.10; runs as a CI/CD job
CodeRabbit GitLab.com and self-managed GitLab 16.x and above Automatic Approvals from Essentials up, with GitLab-specific discussion handling Self-hosted documented for Enterprise, 500+ seats Dedicated service account plus token expiry management
Qodo GitLab Cloud and GitLab Self-Managed Findings and comments; governance documented separately All four deployment models on GitLab Self-Managed, air-gapped included Deployment matrix published per provider
Kodus GitLab by OAuth sign-in or token Automatic PR approval on GitLab; request-changes switch hidden on GitLab-only setups Self-hosted deployment; firewall allowlist for self-managed GitLab Also documents Bitbucket, Azure Repos and Forgejo
GitHub Copilot code review Not listed among supported platforms Approval settings on GitHub Not applicable Availability list covers GitHub.com, CLI, mobile, IDEs and Azure DevOps
Graphite AI reviews No GitLab path documented GitHub pull request workflow Not applicable Setup is documented as a GitHub App install

The Copilot row is the one worth pausing on. GitHub's own availability list for Copilot code review names GitHub.com, the GitHub CLI, GitHub Mobile, VS Code, Visual Studio, Xcode, JetBrains IDEs and Azure DevOps. Azure DevOps carries no preview label on that list, while the public preview notes sit on cross-repository context, passing suggestions to the Copilot cloud agent, and the Max and Adaptive effort levels. GitLab is not on the list at all. For a team on GitLab, a large share of what tool listicles recommend is not available, and the listicles rarely say so.

Graphite's AI reviews setup page has the same shape: the instructions are a GitHub App install, with no GitLab path documented.

A checklist before you install anything on GitLab

Work through these in order, because later answers depend on earlier ones.

Which tier are you on, and does the enforcement you want exist there? Required approvals and CODEOWNERS-based approval rules are Premium and Ultimate. On Free, an AI reviewer can comment and cannot block, and that is a property of the platform rather than of the tool.

Does the reviewer's write-back work on GitLab? Check the vendor's GitLab page specifically. Request changes, approval and thread resolution each have GitLab-specific behavior.

Who is the review identity, and when does its credential expire? A dedicated service account with a tracked token expiry is easier to audit than reviews posted under an engineer's personal account. Where the app path posts as a shared identity instead, decide that on purpose.

If you are self-managed, what is the version floor, and what network access does the vendor need? Look for a stated minimum version and an IP allowlist before you involve anyone from security.

What does the reviewer do with a large merge request? Look for a documented fallback, and check whether the reduced pass is visible in the merge request.

Which files can a merge request change about the review itself? The rule-loading question matters more than the rule count.

If a vendor page does not answer one of these, the honest answer is unknown, and the way to settle it is a test merge request on your own instance rather than a sales call. That is also the only method that tells you whether the reviewer's approval would have satisfied the approval rule you actually configured, which is the thing you were buying.

Questions that come up

Can an AI code review tool block a merge on GitLab Free?

Not through required approvals. GitLab Free lets users with the Developer role approve merge requests, those approvals are optional, and they do not prevent merging without one. A reviewer can still submit a request-changes review state, and Code Review Flow's beta request-changes capability does block like a user's, but the merge is not gated by a required approval on Free.

Does GitHub Copilot code review work on GitLab?

GitLab is not on GitHub's availability list for Copilot code review. The list names GitHub.com, the GitHub CLI, GitHub Mobile, VS Code, Visual Studio, Xcode, JetBrains IDEs and Azure DevOps.

What GitLab version does CodeRabbit need for self-managed GitLab?

GitLab 16.x and above, according to CodeRabbit's self-managed GitLab page, which states that 15.x may experience issues such as review comments not being posted or the sign-up process failing.

Does GitLab Duo's approval satisfy a required approval rule?

No. GitLab's own documentation states that an approval from GitLab Duo does not count toward required approvals. Its request for changes does block like a user's.

Claims re-checked 2026-11-26.

Top comments (0)