Skip to content

Feature Request: Add AG-UI Protocol Support #889

@anirudha

Description

@anirudha

What would you like to be added?

HolmesGPT currently supports CLI and Robusta UI. I’d like to propose adding support for the AG-UI protocol — an open, event-driven standard for agent–user interaction.

AG-UI streams structured JSON events (e.g. TEXT_MESSAGE_CONTENT, TOOL_CALL_START, STATE_DELTA) over SSE or WebSockets, allowing agents to plug into modern UIs and frameworks like CopilotKit or LangGraph with minimal glue code.

Proposed Implementation

  • Add a new output mode that streams HolmesGPT responses as AG-UI events
  • Map:
    • Agent output → TEXT_MESSAGE_CONTENT
    • Tool calls → TOOL_CALL_START / TOOL_CALL_END
    • State updates → STATE_DELTA
  • Default transport: SSE (with optional WebSockets)
  • Config flag: --ag-ui (off by default for backward compatibility) or a new http server ?

Open Questions

  • Should HolmesGPT start with output-only events, or support bi-directional AG-UI immediately?
  • Should we design tool-specific schemas (e.g., Prometheus, K8s), or stick to generic event wrappers?
  • Should this be part of core HolmesGPT or an external adapter?

Next Steps

  • Prototype SSE streaming of TEXT_MESSAGE_CONTENT
  • Gather community feedback on event mappings

@ashwin-pc @goyamegh


References



### Why is this needed?

- Improves interoperability with AG-UI compatible front-ends   
- Makes HolmesGPT’s reasoning and tool usage visible in real-time  
- Increases adoption by developers already using AG-UI in their ecosystems  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions