GitLab Duo Code Review (Classic)
- Tier: Premium, Ultimate
- Add-on: GitLab Duo Enterprise
- Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated
Model information
- Default LLM
- Available on GitLab Duo with self-hosted models
Version history
-
Introduced in GitLab 17.5 as an experiment behind two feature flags named
ai_review_merge_requestandduo_code_review_chat, both disabled by default. - Feature flags
ai_review_merge_requestandduo_code_review_chatenabled by default on GitLab.com, GitLab Self-Managed, and GitLab Dedicated in 17.10. - Changed to beta in GitLab 17.10.
- Changed to include Premium in GitLab 18.0.
- Feature flag
ai_review_merge_requestremoved in GitLab 18.1. - Feature flag
duo_code_review_chatremoved in GitLab 18.1. - Generally available in GitLab 18.1.
- Changed to be available on GitLab Duo with self-hosted models in beta in GitLab 18.3.
- Changed to be generally available on GitLab Duo with self-hosted models in GitLab 18.4.
When your merge request is ready to be reviewed, use GitLab Duo Code Review (Classic) to perform an initial review:
- On the top bar, select Search or go to and find your project.
- In the left sidebar, select Code > Merge requests and find your merge request.
- In a comment box, enter the quick action
/assign_reviewer @GitLabDuo, or assign GitLab Duo as reviewer.
Learn about the new agentic Code Review Flow.
Data usage: When you use this feature, the following data is sent to the large language model:
- Merge request title
- Merge request description
- File contents before changes applied (for context)
- Merge request diffs
- Filenames
- Custom instructions
Provide feedback on this feature in issue 517386.
Interact with GitLab Duo in reviews
You can mention @GitLabDuo in comments to interact with GitLab Duo on your merge request. You can
ask follow-up questions on its review comments, or ask questions on any discussion thread in your
merge request.
Interactions with GitLab Duo can help to improve the suggestions and feedback as you work to improve your merge request.
Feedback provided to GitLab Duo does not influence later reviews of other merge requests. There is a feature request to add this functionality, see issue 560116.
Custom code review instructions
You can create custom MR review instructions to ensure consistent and specific code review standards in your project.
For more information, see customize review instructions for GitLab Duo.
Automatic reviews from GitLab Duo for a project
Version history
- Changed to a UI setting in GitLab 18.0.
Automatic reviews from GitLab Duo ensure that all merge requests in your project receive an initial review. After a merge request is created, GitLab Duo reviews it unless:
- It's marked as draft. For GitLab Duo to review the merge request, mark it ready.
- It contains no changes. For GitLab Duo to review the merge request, add changes to it.
Prerequisites:
- You must have at least the Maintainer role in a project.
To enable @GitLabDuo to automatically review merge requests:
- On the top bar, select Search or go to and find your project.
- Select Settings > Merge requests.
- In the GitLab Duo Code Review section, select Enable automatic reviews by GitLab Duo.
- Select Save changes.
Automatic reviews from GitLab Duo for groups and applications
Version history
-
Introduced in GitLab 18.4 as a beta with a flag named
cascading_auto_duo_code_review_settings. Disabled by default. - Feature flag
cascading_auto_duo_code_review_settingsremoved in GitLab 18.7.
Use group or application settings to enable automatic reviews for multiple projects.
Prerequisites:
- To turn on automatic reviews for groups, have the Owner role for the group.
- To turn on automatic reviews for all projects, be an administrator.
To enable automatic reviews for groups:
- On the top bar, select Search or go to and find your group.
- Select Settings > General.
- Expand the Merge requests section.
- In the GitLab Duo Code Review section, select Enable automatic reviews by GitLab Duo.
- Select Save changes.
To enable automatic reviews for all projects:
- In the upper-right corner, select Admin.
- Select Settings > General.
- In the GitLab Duo Code Review section, select Enable automatic reviews by GitLab Duo.
- Select Save changes.
Settings cascade from application to group to project. More specific settings override broader ones.