doc/development/duo_agent_platform/_index.md
{{< history >}}
Workflow to Agent Platform in GitLab 18.2.{{< /history >}}
How to set up the local development environment to run GitLab Duo Agent Platform.
ai-enablement-dev-69497ba7 project in GCP because GDK by default uses Anthropic hosted on Vertex. Access to this project should be available to all engineers at GitLab.
DUO_WORKFLOW__VERTEX_PROJECT_ID in the GitLab Duo Agent Platform Service and set ANTHROPIC_API_KEY to a regular Anthropic API keyAgent Platform consists of four separate services:
gitlab-lsp)You should set up GitLab Duo Agent Platform with the GitLab Development Kit (GDK) to run local versions of GitLab and the GitLab Duo Agent Platform Service.
This setup can be used as-is with the publicly available version of the VS Code Extension or GitLab Duo CLI.
To test Agentic GitLab Duo Chat in the Web UI of your local GitLab instance, follow these additional setup steps:
http://gdk.test:8080. Your GDK is still available
at port 3000 but accessing it at port 8080 accesses the application through
NGINX, which is required for Agentic GitLab Duo Chat to work on the web. If you access
the application at port 3000 and try Agentic GitLab Duo Chat, you see an error message:
Error: Unable to connect to workflow service. Please try again..There is no need to set up the backend components of the Agent Platform to test changes for the Agent Platform UI in the IDE.
A local build of the UI is required if you are making GitLab Duo Agent Platform UI changes that you need to view locally. A local build is also required if you want to use a version of the UI that has not been released yet.
Refer to the GitLab Duo Agent Platform README file in the Language Server project to get started with local development of GitLab Duo Agent Platform UI in the IDE.
Each of these settings can be turned on in your user settings in VS Code.
Enable the GitLab Duo Agent Platform as a sidepanel instead of fullview. This is going to be the default for public beta.
"gitlab.featureFlags.duoWorkflowPanel": true,
Allow users to get access to tools that require approval such as running terminal commands.
"gitlab.duo.workflow.toolApproval": true
To evaluate your local setup, please refer to GitLab Duo Agent Platform Tests repo.
Once you finish a evaluation and have a experiment ID from LangSmith, compare results using this notebook from the GitLab Duo Agent Platform Notebooks repo.