In short.
This guide explains Codex merge request reviews for GitLab teams, but the beta setup depends on hosting type, access permissions and webhook configuration. Reviews run in Codex cloud and return GitLab discussions and notes. GitLab.com requires a project environment for reviews; self-managed and Dedicated installations can enable group-wide reviews, while coding tasks always require a project environment. The page provides practical instructions but establishes neither review accuracy nor total usage cost.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to the complete selected page at [https://learn.chatgpt.com/docs/third-party/gitlab.md], captured on 25 November 2026. Linked connection articles, cloud-environment documentation, GitLab documentation, settings pages and the documentation index are outside the selected scope. The page's beta and experimental notices are included. No commands, connections, reviews or coding tasks were executed; operational behavior, review quality, total cost and unspecified rights remain unverified.
The overview
identity
This is an OpenAI documentation guide for configuring Codex code review on GitLab, available at [https://learn.chatgpt.com/docs/third-party/gitlab.md]. The resource is instructional documentation for an integration that reviews proposed code changes and posts findings on merge requests.
The page covers GitLab.com, self-managed GitLab and GitLab Dedicated. It identifies the integration as beta and says it is available on all ChatGPT plans.
assessment
The guide is useful for teams that want another review pass inside their existing GitLab merge request process. It explains how connection setup, event delivery, service-account access and review policies fit together, including distinctions that can otherwise leave a configured integration unable to respond.
Its instructions support setup planning, but its description of review quality is not backed by accuracy measurements, comparative benchmarks or demonstrated review outcomes. Operational reliability and finding quality are not assessed.
users
Developers and reviewers can use the guide to request reviews and write repository-specific review rules. Repository maintainers can configure project activity and automatic review policies. Workspace administrators have additional responsibilities for self-managed and Dedicated connections and service accounts.
The setup involves concepts such as webhooks, access tokens and inherited group permissions. A developer without the required administrative access may need a project owner or administrator to complete the relevant steps.
capabilities
The documented integration reviews merge request diffs, follows applicable AGENTS.md guidance and posts GitLab discussions and notes. A comment containing @codex review requests a review; a longer comment can direct attention to a particular concern.
Automatic reviews support triggers for merge request opening, every push, or Smart Trigger, which is experimental. By default, manual reviews can include P0, P1 and P2 findings, while automatic reviews focus on P0 and P1. With a configured project environment, further comments can request fixes or other coding work.
Using it
requirements
A connected GitLab account is required. GitLab.com also requires a project environment for reviews. Self-managed and Dedicated installations require workspace-admin template setup and a configured service account with Developer access where Codex should operate. Its personal access token needs the api scope.
Installing a project webhook requires Maintainer, Owner, administrator or suitable custom-role access. Group webhooks require a connected group Owner, GitLab Premium or Ultimate, and GitLab 19.0 or newer. Signed project and group webhooks require GitLab 19.0 or newer; self-managed 19.0 also needs webhook_signing_token enabled. The page says that flag was removed in 19.1.
mechanism
Project or group webhooks deliver GitLab activity to Codex. A manual request or matching automatic-review event initiates a cloud review, and Codex writes findings back to the merge request. Group activity coverage can pass down to descendant projects, but the service account still needs its own access to those projects.
Codex applies root and more-specific AGENTS.md review guidance to the changed files they govern. Group activity enables reviews without creating project environments. Coding requests use a configured project environment and start what the page calls a legacy cloud chat with merge request context.
setup
For GitLab.com, connect GitLab in ChatGPT and then in Codex, create the project's cloud environment, and enable Codex activity from GitLab. For self-managed or Dedicated GitLab, reviewers connect after the administrator publishes the template, and an administrator configures the service account in Codex connector settings.
Codex can create a service account when the administrator also has GitLab instance administrator access. Alternatively, an existing service-account token can be supplied; its expiration must be at least 30 days away. Selected-group access extends into projects and subgroups, whereas selected-project access covers only the chosen projects.
Enable activity through a project environment or, where supported, group activity settings. Configure the repository's review policy and trigger, then add scoped review rules to AGENTS.md. Repository settings can override personal defaults.
example
For a merge request involving a database migration, the guide gives the request @codex review for issues in the database migration. Codex is expected to acknowledge the request with an eyes reaction and then post its review. This is a documented example, not an observed execution.
If a review reports a P1 issue, the page gives @codex fix the P1 issue as a follow-up request. That requires a configured project environment, and pushing a fix depends on permission. The repository-rule example concerns experiment reporting: preserve assignment or exposure cohorts instead of filtering comparisons using later conversion or retention behavior.
Assessment & evidence
limitations
The integration is in beta, and Smart Trigger is experimental. Desktop repository controls such as Create pull request are outside this beta. Group activity alone cannot run coding tasks or fix findings; those operations require a project environment.
The guide says review rules do not replace tests, branch protections or required approvals. It does not specify the reviewing model, context limits, review latency or measured false-positive and missed-issue rates.
reasoning
The clearest fit is a GitLab team seeking additional review comments within merge requests and willing to configure cloud access and event delivery. Repository-scoped rules offer a documented way to express compatibility requirements, data boundaries and other consequential behavior that generic review instructions might miss.
Hosting type changes the setup decision. GitLab.com teams need project environments even for reviews. Self-managed or Dedicated teams can enable reviews across a group, while creating project environments wherever they also want coding work. These documented capabilities do not establish effectiveness on a particular codebase.
alternatives
Within the documented integration, teams can request individual reviews or configure automatic reviews. Eligible self-managed and Dedicated installations can choose project activity or group-wide coverage, depending on the intended scope.
For formatting, linting and other deterministic checks, the guide recommends CI. Tests, branch protections and required approvals remain complementary controls. The page provides no comparison with competing AI reviewers, so relative quality, speed and cost are unknown.
evidence
The evidence consists of the complete documentation page at [https://learn.chatgpt.com/docs/third-party/gitlab.md]. Its captured source revision is sha256:d1eec5b468386fca132bad9e9960723cc224799ccd28ce3fafd1a56b3f7ce4d3.
The page supports the described configuration paths, access requirements, commands and troubleshooting steps. It contains no execution receipts, measured outcomes or independent evaluation. Connection setup, review delivery and generated fixes were not tested.
Access & freshness
costs
The page states that the beta is available on all ChatGPT plans. It does not provide review prices, usage allowances, rate limits or charges for follow-up cloud coding tasks, so total cost is unknown.
Group webhooks require GitLab Premium or Ultimate. The page supplies no subscription prices or comparison of the costs of project-level and group-level configurations.
rights
The supplied page does not state a documentation license or redistribution permission. It also does not establish ownership or reuse terms for generated review comments or code fixes.
Terms covering source-code processing, retention and data residency are not supplied. Those matters remain unknown from this page.
freshness
The supplied copy was captured on 25 November 2026 at 05:46:23.016 UTC. The page itself supplies no publication or last-update date.
Its beta designation, experimental trigger and version-specific webhook requirements make availability and setup details subject to change. Changes after the capture are unknown.
actions
Identify the GitLab hosting type and whether the intended use includes coding tasks. Follow the corresponding connection and activity setup, then request a review on a representative merge request with @codex review. The guide recommends starting with two or three concise repository rules and refining them based on actual findings.
If Codex does not respond, inspect webhook deliveries, the selected app and environment, review-policy eligibility, and service-account access. For self-managed or Dedicated installations, also check signed hooks, SSL verification, supported GitLab version and token validity. Activity coverage and permission to write back must both be present.
