- Explain code in the Web UI with Code explanation
- Summarize issue discussions with Discussion summary
- Forecast deployment frequency with Value stream forecasting
- Root cause analysis
- Summarize an issue with Issue description generation
GitLab Duo Experiments
The following GitLab Duo features are in the Experiment phase.
Explain code in the Web UI with Code explanation
- Introduced in GitLab 15.11 as an Experiment on GitLab.com.
To use this feature:
- The parent group of the project must:
- Enable the experiment and beta features setting.
- You must:
- Belong to at least one group with the experiment and beta features setting enabled.
- Have sufficient permissions to view the project.
GitLab can help you get up to speed faster if you:
- Spend a lot of time trying to understand pieces of code that others have created, or
- Struggle to understand code written in a language that you are not familiar with.
By using a large language model, GitLab can explain the code in natural language.
To explain your code:
- On the left sidebar, select Search or go to and find your project.
- Select any file in your project that contains code.
- On the file, select the lines that you want to have explained.
- On the left side, select the question mark (). You might have to scroll to the first line of your selection to view it. This sends the selected code, together with a prompt, to provide an explanation to the large language model.
- A drawer is displayed on the right side of the page. Wait a moment for the explanation to be generated.
- Provide feedback about how satisfied you are with the explanation, so we can improve the results.
You can also have code explained in the context of a merge request. To explain code in a merge request:
- On the left sidebar, select Search or go to and find your project.
- Select Code > Merge requests, then select your merge request.
- On the secondary menu, select Changes.
-
On the file you would like explained, select the three dots () and select View File @ $SHA.
A separate browser tab opens and shows the full file with the latest changes.
- On the new tab, select the lines that you want to have explained.
- On the left side, select the question mark (). You might have to scroll to the first line of your selection to view it. This sends the selected code, together with a prompt, to provide an explanation to the large language model.
- A drawer is displayed on the right side of the page. Wait a moment for the explanation to be generated.
- Provide feedback about how satisfied you are with the explanation, so we can improve the results.
We cannot guarantee that the large language model produces results that are correct. Use the explanation with caution.
Summarize issue discussions with Discussion summary
- Introduced in GitLab 16.0 as an Experiment.
To use this feature:
- The parent group of the issue must:
- Enable the experiment and beta features setting.
- You must:
- Belong to at least one group with the experiment and beta features setting enabled.
- Have sufficient permissions to view the issue.
You can generate a summary of discussions on an issue:
- In an issue, scroll to the Activity section.
- Select View summary.
The comments in the issue are summarized in as many as 10 list items. The summary is displayed only for you.
Provide feedback on this experimental feature in issue 407779.
Data usage: When you use this feature, the text of all comments on the issue are sent to the large language model referenced above.
Forecast deployment frequency with Value stream forecasting
- Introduced in GitLab 16.2 as an Experiment.
To use this feature:
- The parent group of the project must:
- Enable the experiment and beta features setting.
- You must:
- Belong to at least one group with the experiment and beta features setting enabled.
- Have sufficient permissions to view the CI/CD analytics.
In CI/CD Analytics, you can view a forecast of deployment frequency:
- On the left sidebar, select Search or go to and find your project.
- Select Analyze > CI/CD analytics.
- Select the Deployment frequency tab.
- Turn on the Show forecast toggle.
- On the confirmation dialog, select Accept testing terms.
The forecast is displayed as a dotted line on the chart. Data is forecasted for a duration that is half of the selected date range. For example, if you select a 30-day range, a forecast for the following 15 days is displayed.
Provide feedback on this experimental feature in issue 416833.
Root cause analysis
- Introduced in GitLab 16.2 as an Experiment.
To use this feature:
- The parent group of the project must:
- Enable the experiment and beta features setting.
- You must:
- Belong to at least one group with the experiment and beta features setting enabled.
- Have sufficient permissions to view the CI/CD job.
When the feature is available, the “Root cause analysis” button will appears on a failed CI/CD job. Selecting this button generates an analysis regarding the reason for the failure.
Summarize an issue with Issue description generation
- Introduced in GitLab 16.3 as an Experiment.
To use this feature:
- The parent group of the project must:
- Enable the experiment and beta features setting.
- You must:
- Belong to at least one group with the experiment and beta features setting enabled.
- Have sufficient permissions to view the issue.
You can generate the description for an issue from a short summary.
- Create a new issue.
- Above the Description field, select AI actions > Generate issue description.
- Write a short description and select Submit.
The issue description is replaced with AI-generated text.
Provide feedback on this experimental feature in issue 409844.
Data usage: When you use this feature, the text you enter is sent to the large language model referenced above.