Updated on: May 27, 2026
9 min read
Deep dive into GitLab Duo Agent Platform agent types. Learn about foundational agents, create custom agents for team workflows, and integrate external agents like Claude Code and OpenAI Codex.

Welcome to Part 3 of our eight-part guide, Getting started with GitLab Duo Agent Platform, where you'll master building and deploying AI agents and workflows within your development lifecycle. Follow tutorials that take you from your first interaction to production-ready automation workflows with full customization.
In this article:
🎯 Try GitLab Duo Agent Platform today!
Agents are specialized AI collaboration partners within GitLab Duo Agent Platform. Each agent type serves different purposes and runs in different contexts.
| Type | Interface | Maintainer | Use Case |
|---|---|---|---|
| Foundational | GitLab Duo Chat | GitLab | Common development tasks |
| Custom | GitLab Duo Chat | You | Team-specific workflows |
| External | Platform | You, see configuration examples | External AI integrations |
Built and maintained by GitLab, these agents are available immediately with no setup required.
The availability of foundational agents can be managed by namespace owners or instance administrators.
Start the interaction with foundational agents by opening GitLab Duo Agentic Chat in the IDE or Web UI.
This is the default agent, your general-purpose development collaboration partner for creating and modifying code, opening merge requests, triaging and updating issues/epics, planning complex tasks like refactoring, and running workflows with full SDLC platform context.
Example prompts:
Helps with product planning, breaking down epics, and creating structured issues.
Example prompts:
Learn more about Planner Agent.
Triages vulnerabilities, identifies false positives, and prioritizes security risks.
Example prompts:
Learn more about Security Analyst Agent.
Queries, visualizes, and surfaces data across the GitLab platform using GitLab Query Language (GLQL) to provide actionable insights about your projects and teams.
Example prompts:
Learn more about Data Analyst Agent.
CI Expert Agent is a GitLab Duo foundational agent that helps you create, debug, and optimize GitLab CI/CD pipelines. It can:
Available in GitLab Duo Chat when foundational agents are enabled. Currently in beta for Premium/Ultimate tiers.
Learn more about CI Expert Agent.
Create your own agents tailored to your team's specific workflows and standards.
Watch the GitLab DACH Roadshow Vienna 2025 Duo Agent Platform use cases talk recording:
🎯 Try it now: Interactive demo of Custom Agents — Explore how to create and configure custom agents.
Custom agents are configured through your project or group settings. The key component is the system prompt, which defines your agent's behavior and expertise.
System Prompt Example from the custom agent devops-debug-failures-agent:
You are an expert in Dev, Ops, DevOps, and SRE, and can debug code and runtime failures.
Your speciality is that you can correlate static SDLC data with runtime data from CI/CD pipelines, logs, and other tool calls necessary.
Expect that the user has advanced knowledge, but always provide commands and steps to reproduce your analysis so they can learn from you.
Start with a short summary and suggested actions, and then go into detail with thoughts, analysis, suggestions.
Think creative and consider unknown unknowns in your debug journey.
Visibility options:
Custom agent configuration interface
Full setup guide available in the documentation.
System prompt tips:
Start small:
External agents run in the background on the GitLab platform when they are triggered by mentions or assignments in issues, epics, and merge requests (for example, mentioning the service account for an external agent in a comment).
Unlike foundational and custom agents that you interact with through GitLab Duo Agentic Chat, external agents execute asynchronously on GitLab-managed compute, enabling powerful automation with specialized AI providers.
They read the surrounding context and repository code, decide on the appropriate actions, and typically run CI/CD pipelines or push changes and comments back to GitLab, all with audit trails and project permissions enforced.
For GitLab-managed external agents such as the Claude Code Agent and Codex Agent, GitLab-managed credentials are provided through the GitLab AI Gateway so you don’t have to store and rotate API keys yourself. Other providers like Amazon Q and Gemini require you to configure your own credentials using CI/CD variables in your project.
@ai-codex-agent Please review this merge request for security issues
This triggers a runner execution job that runs the external AI tool and posts results back to GitLab.
A development team uses an external agent such as the Codex Agent by GitLab for code review. When developers create merge requests, they assign the external agent’s service account as a reviewer.
The agent:
All of this happens automatically in the background while the developer continues working, with results posted directly in the merge request.
The following external agents have been tested and are available in the AI Catalog on GitLab.com:
GitLab-managed credentials are provided and billed through the GitLab AI Gateway.
The setup process differs based on the type of external agent you're using.
For complete setup instructions including service accounts, triggers, and configuration examples, see the External agents documentation.
| Feature | Foundational Agents | Custom Agents | External Agents |
|---|---|---|---|
| Setup | Zero setup, maintained by GitLab | Requires system prompt configuration | Configured via AI Catalog or flow YAML + service account |
| Availability | Available immediately in Chat | Available in Chat after enabled in a project | Runs on platform compute via CI/CD runners and triggers |
| Customization | Limited (custom instructions) | Behavior customizable via system prompt and skills | Prompt and flow configuration; provider-level configuration |
| Interaction | Agentic chat | Agentic chat | Event-triggered, asynchronous (mentions/assignments) |
| Best For | General development tasks | Team-specific workflows | External AI integrations and provider-specific capabilities |
GitLab Duo Agent Platform offers these agent types:
Start with foundational agents, create custom agents for team-specific needs, and explore external agents when you need specialized AI providers or event-triggered automation.
Next: Part 4: Understanding flows
Previous: Part 2: Getting started with GitLab Duo Agentic Chat
Enjoyed reading this blog post or have questions or feedback? Share your thoughts by creating a new topic in the GitLab community forum.
Share your feedback