GitLab Duo: Choose your path
GitLab Duo is a suite of AI-powered features that assist you while you work in GitLab.
Select the path that best matches what you want to do:
Perfect for: New users exploring GitLab Duo
Follow this path to learn how to:
- Use the variety of GitLab Duo features
- Get help from AI through GitLab Duo Chat
- Generate and improve code
Quick start
Want to start using GitLab Duo right now? Here’s how:
- Open GitLab Duo Chat by selecting GitLab Duo Chat in the upper-right corner of the GitLab UI.
- Ask a question about your project, code, or how to use GitLab.
- Try one of the AI-powered features like Code Suggestions in your IDE, or use Chat to summarize a bulky issue.
View all of the GitLab Duo possibilities →
Common tasks
Need to do something specific? Here are some common tasks:
Task | Description | Quick Guide |
---|---|---|
Get AI assistance | Ask GitLab Duo questions about code, projects, or GitLab | GitLab Duo Chat → |
Generate code | Get code suggestions as you type in your IDE | Code Suggestions → |
Understand code | Have code explained in plain language | Code Explanation → |
Fix CI/CD issues | Analyze and fix failed jobs | Root Cause Analysis → |
Summarize changes | Generate descriptions for merge requests | Merge Request Summary → |
How GitLab Duo integrates with your workflow
GitLab Duo is integrated with your development processes and is available:
- In the GitLab UI
- Through GitLab Duo Chat
- In IDE extensions
- In the CLI
Experience levels
For beginners
If you’re new to GitLab Duo, start with these features:
- GitLab Duo Chat - Ask questions about GitLab and get help with basic tasks
- Code Explanation - Understand code in files or merge requests
- Merge Request Summary - Generate descriptions for your changes automatically
For intermediate users
After you’re comfortable with the basics, try these more advanced features:
- Code Suggestions - Get AI-powered code completion in your IDE
- Test Generation - Create tests for your code automatically
- Root Cause Analysis - Troubleshoot failed CI/CD jobs
For advanced users
When you’re ready to maximize your productivity with GitLab Duo:
- GitLab Duo Self-Hosted - Host LLMs on your own infrastructure
- GitLab Duo Workflow - Automate tasks in your development workflow
- Vulnerability Resolution - Automatically generate merge requests to fix security issues
Best practices
Follow these tips for effective GitLab Duo usage:
Be specific in your prompts
- Provide clear context for better results
- Include relevant details about your code and objectives
- Use code task commands like
/explain
,/refactor
, and/tests
in Chat
Improve code responsibly
- Always review AI-generated code before using it
- Test generated code to ensure it works as expected
- Use vulnerability resolution with appropriate review
Refine iteratively
- If a response isn’t helpful, refine your question
- Try breaking complex requests into smaller parts
- Add more details for better context
Leverage Chat for learning
- Ask about GitLab features you’re not familiar with
- Get explanations for error messages and problems
- Learn best practices for your specific technology
Next steps
Ready to dive deeper? Try these resources:
- GitLab Duo use cases - Practical examples and exercises
- Set up GitLab Duo Self-Hosted - For complete control over your data
Troubleshooting
Having issues? Check these common solutions:
- GitLab Duo features don’t work on self-managed
- GitLab Duo features not available for users
- Run a health check to diagnose your GitLab Duo setup
Need more help? Search the GitLab documentation or ask the GitLab community.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support