Can Claude or ChatGPT review a GitLab merge request? AI review in 2026
Short answer
Yes. ChatGPT's Codex reviews GitLab merge requests in beta, on every ChatGPT plan: connect GitLab, then comment @codex review or turn on automatic reviews. Claude reviews them through Claude Code for GitLab CI/CD, a beta maintained by GitLab, or through GitLab's MCP server when you ask in chat. GitLab's own option is the GitLab Duo Code Review Flow: assign @GitLabDuo as a reviewer. Duo's approval doesn't count toward required approvals, but an assistant on the MCP server acts as you.
More teams now ask an AI to look over a merge request before a person does. In October 2026 there are three first-party ways to do that on GitLab, plus a fourth that works through any assistant connected to GitLab. Here is what each one does, how you start a review, and what it takes to run.
The options at a glance
| Option | How a review starts | Where it runs | Status |
|---|---|---|---|
| GitLab Duo Code Review Flow | Assign @GitLabDuo as a reviewer, mention it, or turn on automatic reviews |
GitLab, as a CI/CD job on a runner | Generally available since GitLab 18.8 |
| Codex (ChatGPT) | Comment @codex review, or set automatic reviews |
Codex cloud | Beta, on all ChatGPT plans |
| Claude Code for GitLab CI/CD | A pipeline job: run by hand, on merge request events, or from @claude comments through a webhook |
Your GitLab runners | Beta, maintained by GitLab |
| Claude or ChatGPT on the GitLab MCP server | Ask in chat: “review !482” | Your assistant, acting as you through MCP | MCP server generally available since GitLab 19.5 |
GitLab Duo: the Code Review Flow
GitLab’s own reviewer is the Code Review Flow, part of the GitLab Duo Agent Platform. It reads the diff, scans the repository for related code first, and leaves comments on specific lines plus a review summary. Follow-up reviews pick up its earlier threads.
- Start it: assign
@GitLabDuoas a reviewer, type/assign_reviewer @GitLabDuo, mention@GitLabDuoin a comment, or ask in the GitLab Duo chat sidebar. - Automatic reviews: in Settings › Merge requests, under GitLab Duo Code Review, select Enable automatic reviews by GitLab Duo. A group can turn it on for all its projects.
- Your rules: write review instructions in
.gitlab/duo/mr-review-instructions.yaml, with optional file filters for each rule. Custom instructions are a Premium and Ultimate feature. - What it needs: GitLab Duo and the Agent Platform turned on, with Allow foundational flows and Code Review on for the top-level group; the Developer role or higher; and a runner to pick up the job, either yours with the
gitlab--duotag or one hosted by GitLab. - What it costs: it is listed for Free, Premium and Ultimate and consumes GitLab Credits when used. On GitLab.com’s Free tier, you buy those credits.
The older, non-agentic GitLab Duo Code Review is still there for customers with the GitLab Duo Enterprise add-on. GitLab runs one or the other, depending on your add-on and group settings.
ChatGPT: Codex code review
OpenAI’s Codex reviews GitLab merge requests in beta, on every ChatGPT plan. It reads the merge request’s diff, follows the guidance in your repository’s AGENTS.md files, and posts review comments that aim to flag serious issues.
- Connect GitLab in ChatGPT and Codex. A self-managed or Dedicated instance needs a one-time setup by your ChatGPT workspace admin, including a service account with Developer access: Codex can create one, or the admin supplies a personal access token with the
apiscope. - Create a Codex environment for the project with Enable Codex activity from GitLab, which installs the project webhook. On GitLab.com, reviews need this environment, and creating the webhook takes Maintainer or Owner access.
- Comment
@codex reviewon a merge request, or set automatic reviews: when a merge request opens, on every push, or with the experimental Smart Trigger.
Write your rules in a ## Code Review Rules section of AGENTS.md, at the repository root or next to the code they govern. A comment like @codex fix the P1 issue asks Codex to push a fix to the branch.
Claude: in your pipeline, or in chat
Claude Code for GitLab CI/CD runs Claude in a job on your GitLab runners. You add one job to .gitlab-ci.yml and an ANTHROPIC_API_KEY masked CI/CD variable (or Amazon Bedrock or Google Cloud credentials), then give it a prompt such as “Review this MR”. It follows your CLAUDE.md, and any change it makes arrives as a merge request, so your approval rules still apply. It is in beta and maintained by GitLab. Two things to know:
@claudecomments need wiring. GitLab doesn’t start the job on a comment by itself. You add a webhook for comments and a listener that calls the pipeline trigger API when a comment contains@claude.- It costs twice: runner minutes for the job, and Claude API tokens for the work.
Claude or ChatGPT on the GitLab MCP server needs no pipeline at all. Connect the assistant to https://gitlab.com/api/v4/mcp and ask “review !482 and list anything risky”. In ChatGPT that takes developer mode, with full MCP apps on Business, Enterprise and Edu, and your top-level group has to allow MCP access. The assistant acts with your account: it reads the diff and can comment, or approve, with your permissions. It is the quickest way to try an AI review, but it only reviews when you ask. Setup is in how to connect Claude or ChatGPT to GitLab.
Does an AI approval count?
Not the way a person’s does, with one exception. GitLab Duo can approve when it finds nothing and request changes when it does, but that is a beta in GitLab 19.5, off by default. Its approval doesn’t count toward required approvals, though with the beta on its change request blocks the merge just as a person’s would. OpenAI says Codex’s review rules don’t replace tests, branch protections or required approvals. With Claude Code, every change still goes through a merge request that your approval rules govern.
The exception is an assistant on the MCP server: it acts with your account, so if you let it approve, the approval is yours. (How approvals work: can you approve your own GitLab merge request?)
Which one to pick
- Your company already has GitLab Duo: the Code Review Flow is built in. Turn on automatic reviews and add review instructions.
- Your team works in ChatGPT: Codex review takes a few steps once GitLab is connected, and it is on every plan during the beta.
- You want control over what runs and where: Claude Code in your GitLab runners, on the Claude API, Bedrock or Google Cloud.
- You want a second opinion now and then: an assistant on the MCP server.
Treat every AI comment as a suggestion. GitLab’s MCP documentation warns about prompt injection and advises using its tools only on GitLab objects you trust.
The human part, on your phone
An AI review still ends with a person approving and merging. MergeBell sends a push when your review is requested, shows every line comment in a phone-sized diff, the AI’s included, and has Approve and Merge in the free tier. It is on Google Play for Android, with iPhone coming soon. See also how to review a GitLab merge request on your phone.
Frequently asked questions
Can ChatGPT review GitLab merge requests?
Yes, through Codex. Its GitLab support is in beta and available on all ChatGPT plans. Connect GitLab in ChatGPT and Codex, create a Codex environment for the project with Enable Codex activity from GitLab, then comment @codex review on a merge request or set automatic reviews. Review rules go in a Code Review Rules section of AGENTS.md.
Can Claude review my GitLab merge requests?
Yes, in two ways. Claude Code for GitLab CI/CD runs as a job in your GitLab runners and reviews a merge request or pushes changes when you prompt it; it is in beta and maintained by GitLab. Or connect Claude to GitLab's MCP server and ask it to review a merge request in chat.
Is GitLab Duo Code Review free?
GitLab's agentic Code Review Flow is listed for Free, Premium and Ultimate, but it consumes GitLab Credits when used, and on GitLab.com's Free tier you buy them. The older, non-agentic GitLab Duo Code Review needs the GitLab Duo Enterprise add-on.
Does an AI approval count toward required approvals?
Not GitLab Duo's: its approvals are a beta in GitLab 19.5, off by default, and they don't count, though with that beta on a change request from Duo blocks the merge like a person's. An assistant on GitLab's MCP server is different: it acts with your account, so an approval it gives is yours.
Do these work with self-managed GitLab?
Yes. The Code Review Flow runs on GitLab.com, Self-Managed and Dedicated. Codex supports self-managed and Dedicated instances after a ChatGPT workspace admin sets them up with a service account; signed webhooks need GitLab 19.0 or later. Claude Code runs in your GitLab runners.
Sources
- GitLab docs — Code Review Flow
- GitLab docs — Customize review instructions for the Agent Platform
- ChatGPT Learn — Review GitLab merge requests with Codex
- Claude Code docs — Claude Code GitLab CI/CD
- GitLab docs — GitLab MCP server
- GitLab docs — GitLab MCP server tools
- OpenAI Help Center — Developer mode and full MCP connectors in ChatGPT
Checked against these pages on 18 October 2026. GitLab changes quickly — if something here no longer matches, tell us and we will fix it.
Do this from your phone with MergeBell
Free for the whole review loop: the To-Do inbox, diffs and line comments, approve and merge, pipelines with retry, and push alerts for your To-Dos. Works with gitlab.com and self-managed GitLab 16.0+.
Get MergeBell for AndroidiPhone: email me at launch
On Google Play for Android 12 or later. The iPhone app is coming soon to the App Store. An independent app, not affiliated with GitLab Inc.