Draft: Agentic Button
This MR introduces a prototype for a generic Agentic Button component that enables external buttons to trigger Agentic Duo Chat with custom prompts. This is the first step towards creating feature parity between classic Duo Chat and Agentic Duo Chat for external slash commands and button integrations.
Problem
Currently, external buttons (like root cause analysis, AI genie, etc.) use custom slash commands sent to classic Duo Chat via sendDuoChat. This approach requires backend processing to add context since classic Duo Chat has limited context awareness.
Solution
This prototype creates a reusable button component that:
- Takes a prompt as a parameter
- Sends the prompt directly to Agentic Duo Chat via the new
sendAgenticDuoChatCommandutility - Leverages Agentic Chat's superior context awareness, eliminating the need for manual context injection
meant to solve: https://gitlab.com/groups/gitlab-org/-/epics/18683
How to reproduce:
- Setup Agentic Chat: !197267 (merged)
- check out this branch: !200326 (merge target is the branch we're looking at here, but it embeds a demo button)
- go to http://127.0.0.1:3333/gitlab-duo/test/-/jobs?kind=BUILD
- open a failed job, see the ask agentic button in action
Demo
| Demo |
|---|
| 2025-08-07_15-07-25 |
Edited by Jannik Lehmann