Draft: [POC] GitLabDuo interactions powered by Agentic Chat

Approach: When a user mentions @GitLabDuo in an MR comment, a Sidekiq worker POSTs to a new /api/v4/ai/duo_workflows/headless endpoint. Workhorse intercepts via a HeadlessInjecter, opens a gRPC stream to DWS, and runs the chat workflow to completion, proxying any tool calls back to Rails. Once done, the worker reads the AI's answer from the workflow checkpoint and posts it as GitLabDuo.

Related to https://gitlab.com/gitlab-org/gitlab/-/work_items/585237+

Screenshot_2026-05-04_at_5.46.09_PM

Screenshot_2026-05-04_at_6.08.14_PM

Edited by Kinshuk Singh (PTO June 4-19)

Merge request reports

Loading