GitLab Duo
Version history
- First GitLab Duo features introduced in GitLab 16.0.
- Removed third-party AI setting in GitLab 16.6.
- Removed support for OpenAI from all GitLab Duo features in GitLab 16.6.
GitLab Duo is a suite of AI-native features that assist you while you work in GitLab. These features aim to help increase velocity and solve key pain points across the software development lifecycle.
GitLab Duo features are available in IDE extensions and the GitLab UI. Some features are also available as part of GitLab Duo Chat.
GitLab is transparent. As GitLab Duo features mature, the documentation will be updated to clearly state how and where you can access these features.
GitLab Duo language models
The language models that are the source for GitLab Duo depend on where you're using it.
-
On GitLab.com: GitLab hosts the models and connects to them through the cloud-based AI gateway.
-
On GitLab Self-Managed, two options exist:
- GitLab can host the models and the cloud-based AI gateway.
- Your organization can use GitLab Duo Self-Hosted, which means you host the AI gateway and language models. You can use GitLab AI vendor models or the other supported language models. Watch overview
Working across the entire software development lifecycle
To improve your workflow across the entire software development lifecycle, try these features:
- GitLab Duo Chat: Write and understand code, get up to speed on the status of projects, and learn about GitLab by asking your questions in a chat window. Watch overview
- GitLab Duo Workflow: Automate tasks and help increase productivity in your development workflow.
- AI Impact Dashboard: Measure the AI effectiveness and impact on SDLC metrics.
Planning work
To improve your workflow while planning work, try these features:
- Issue Description Generation: Generate a more in-depth issue description based on a short summary. Watch overview
- Discussion Summary: Summarize lengthy conversations in an issue. Watch overview
Authoring code
To improve your workflow while authoring code, try these features:
-
Code Suggestions: Generate code and show suggestions as you type. Watch overview
-
Code Explanation: Have code explained. View docs for explaining code in:
-
Test Generation: Test your code by generating tests. Watch overview
-
Refactor Code: Improve or refactor the selected code. Watch overview
-
Fix Code: Fix quality problems, like bugs or typos, in the selected code.
-
GitLab Duo for the CLI: Discover or recall
git
commands.
Reviewing code
To improve your workflow while reviewing code in merge requests, try these features:
- Merge Request Summary: Generate a description based on the code changes. Watch overview
- Code Review: Review proposed code changes.
- Code Review Summary: Summarize all the comments in a review. Watch overview
- Merge Commit Message Generation: Generate commit messages. Watch overview
Testing and deploying code
To improve your testing and deployment workflow, try these features:
- Root Cause Analysis: Research the root cause for a CI/CD job failure by analyzing the logs. Watch overview
Securing code
To improve your security, try these features:
- Vulnerability Explanation: Learn more about vulnerabilities, how they can be exploited, and how to fix them. Watch overview
- Vulnerability Resolution: Generate a merge request that addresses a vulnerability. Watch overview
Summary of GitLab Duo features
The following features are generally available on GitLab.com, GitLab Self-Managed, and GitLab Dedicated.
They require a Premium or Ultimate subscription and one of the available add-ons.
Feature | GitLab Duo Core | GitLab Duo Pro | GitLab Duo Enterprise |
---|---|---|---|
Code Suggestions | {check-circle-filled} Yes | {check-circle-filled} Yes | {check-circle-filled} Yes |
GitLab Duo Chat in IDEs | {check-circle-filled} Yes | {check-circle-filled} Yes | {check-circle-filled} Yes |
Code Explanation in IDEs | {check-circle-filled} Yes | {check-circle-filled} Yes | {check-circle-filled} Yes |
Refactor Code in IDEs | {check-circle-filled} Yes | {check-circle-filled} Yes | {check-circle-filled} Yes |
Fix Code in IDEs | {check-circle-filled} Yes | {check-circle-filled} Yes | {check-circle-filled} Yes |
Test Generation in IDEs | {check-circle-filled} Yes | {check-circle-filled} Yes | {check-circle-filled} Yes |
GitLab Duo Chat in GitLab UI | {dash-circle} No | {check-circle-filled} Yes | {check-circle-filled} Yes |
Code Explanation in GitLab UI | {dash-circle} No | {check-circle-filled} Yes | {check-circle-filled} Yes |
Discussion Summary | {dash-circle} No | {dash-circle} No | {check-circle-filled} Yes |
GitLab Duo for the CLI | {dash-circle} No | {dash-circle} No | {check-circle-filled} Yes |
Merge Commit Message Generation | {dash-circle} No | {dash-circle} No | {check-circle-filled} Yes |
Root Cause Analysis | {dash-circle} No | {dash-circle} No | {check-circle-filled} Yes |
Vulnerability Explanation | {dash-circle} No | {dash-circle} No | {check-circle-filled} Yes |
Vulnerability Resolution | {dash-circle} No | {dash-circle} No | {check-circle-filled} Yes |
AI Impact Dashboard | {dash-circle} No | {dash-circle} No | {check-circle-filled} Yes |
In addition:
- All GitLab Duo Core and Pro features include generally available support for GitLab Duo Self-Hosted.
- All GitLab Duo Enterprise-only features include beta support for GitLab Duo Self-Hosted.
Beta and experimental features
The following features are not generally available.
They require a Premium or Ultimate subscription and one of the available add-ons.
Feature | GitLab Duo Core | GitLab Duo Pro | GitLab Duo Enterprise | GitLab.com | GitLab Self-Managed | GitLab Dedicated | GitLab Duo Self-Hosted |
---|---|---|---|---|---|---|---|
Code Review Summary | {dash-circle} No | {dash-circle} No | {check-circle-filled} Yes | Experiment | Experiment | {dash-circle} No | Experiment |
Issue Description Generation | {dash-circle} No | {dash-circle} No | {check-circle-filled} Yes | Experiment | {dash-circle} No | {dash-circle} No | N/A |
Code Review | {dash-circle} No | {dash-circle} No | {check-circle-filled} Yes | Beta | Beta | Beta | N/A |
Merge Request Summary | {dash-circle} No | {dash-circle} No | {check-circle-filled} Yes | Beta | Beta | {dash-circle} No | Beta |
GitLab Duo Workflow is in private beta, does not require an add-on, and is not supported for GitLab Duo Self-Hosted.