doc/user/duo_agent_platform/agents/custom.md
{{< details >}}
{{< /details >}}
{{< collapsible title="Model information" >}}
{{< /collapsible >}}
{{< history >}}
global_ai_catalog. Enabled on GitLab.com.ai_catalog_agents. Enabled on GitLab.com.ai_catalog_agents removed in GitLab 18.9.global_ai_catalog removed in 18.10.ai_catalog_project_level_enablement. Enabled on GitLab.com, GitLab Self-Managed, and GitLab Dedicated by default.ai_catalog_project_level_enablement removed in GitLab 18.11.{{< /history >}}
Agents use AI to perform tasks and answer complex questions. Create custom agents to accomplish specific tasks, like creating merge requests or reviewing code. Or, use the AI Catalog to discover agents created by GitLab.
When you're ready to interact with an agent, enable it and start using it with GitLab Duo Chat in the GitLab UI, VS Code, and JetBrains IDEs.
{{< history >}}
{{< /history >}}
When you create a custom agent, you select a project to manage it and choose whether the agent is public or private.
Public agents:
Private agents:
You cannot make a public agent private if the agent is currently enabled.
Prerequisites:
To view a list of agents associated with your project:
Select an agent to view its details.
You can create an agent from a project, or by using the AI Catalog.
Prerequisites:
{{< tabs >}}
{{< tab title="From a project" >}}
To create an agent:
In the top bar, select Search or go to and find your project.
Select Automate > Agents.
Select New agent.
Under Basic information:
Under Visibility & access, for Visibility, select Private or Public.
Under Prompts, in System prompt, enter a prompt to define the agent's personality, expertise, and behavior.
Optional. Under Available tools, from the Tools dropdown list, select which tools the agent can access. For example, for the agent to create issues automatically, select Create issue.
[!note] Some tools require the IDE extension and are not available in Web UI. For more information, see the list of agent tools.
Select Create agent.
{{< /tab >}}
{{< tab title="From the AI Catalog" >}}
To create an agent:
In the top bar, select Search or go to > Explore.
Select AI Catalog, then select the Agents tab.
Select New agent.
Under Basic information:
Under Visibility & access:
Under Prompts, in System prompt, enter a prompt to define the agent's personality, expertise, and behavior.
Optional. Under Available tools, from the Tools dropdown list, select which tools the agent can access. For example, for the agent to create issues automatically, select Create issue.
For a list of available tools, see the built-in tool definitions.
Select Create agent.
{{< /tab >}}
{{< /tabs >}}
The agent appears in the AI Catalog. To use the agent with Chat, you must enable it.
Enable an agent to use it with Chat.
When you enable an agent in a project, it is enabled in the top-level group for that project at the same time.
Prerequisites:
{{< tabs >}}
{{< tab title="From the managing project" >}}
To enable an agent:
{{< /tab >}}
{{< tab title="From the AI Catalog" >}}
To enable an agent:
{{< /tab >}}
{{< /tabs >}}
The agent appears in the group and project Automate > Agents pages. Members of any project in the top-level group can now enable the agent in their project.
In the project, you can start a new chat with the agent. For more information, see select an agent.
If an agent is already enabled in a top-level group, you can enable it in the group's projects.
Prerequisites:
To enable an agent in a project:
The agent appears in the project's Automate > Agents page.
In the project, you can start a new chat with the agent.
You can use a custom agent in the GitLab UI, VS Code, and JetBrains IDEs.
Prerequisites:
To use a custom agent in the GitLab UI:
In the top bar, select Search or go to and find your project or group.
Open an issue, epic, or merge request.
On the GitLab Duo sidebar, select Add new chat ({{< icon name="pencil-square" >}}).
From the dropdown list, select the custom agent.
A Chat conversation opens in the GitLab Duo sidebar on the right side of your screen.
Enter your question or request.
Prerequisites:
To use a custom agent in VS Code:
Prerequisites:
First, enable the GitLab Duo Agent Platform:
Then, to use a custom agent:
Prerequisites:
To disable an agent:
The agent no longer appears in the project, and is not available in Chat.
To make changes to an agent without overwriting the original, create a copy of an existing agent.
Prerequisites:
To duplicate an agent:
Edit an agent to change its configuration.
Prerequisites:
Hide an agent to remove it from the AI Catalog.
After you hide an agent, users can't enable it. However, they can still interact with the agent in the groups and projects it is already enabled in.
Prerequisites:
To hide an agent:
Delete an agent to permanently remove it from the instance.
Prerequisites: