CopilotKit published a walkthrough of AG-UI, an event-driven protocol that standardizes how agent frameworks stream text, tool calls, lifecycle events, and state to applications. The protocol aims to let teams swap agent backends without rewriting the UI contract.

CopilotKit describes AG-UI as a protocol layer that sits between the agent runtime and the app UI, not another agent framework. In its technical breakdown, the company says the contract covers event types including streamed text, tool calls, lifecycle updates, and state, so the frontend can react to a consistent schema even when the backend integration changes.
That is the core engineering pitch in the launch thread: agents and providers should emit “the same standardized events,” which lets teams swap integrations “without breaking changes” in the UI swap claim. The walkthrough also emphasizes bidirectional communication and transport agnosticism, with WebSockets and SSE named as example transports in the full video and summarized in architecture notes.
CopilotKit paired that protocol story with a UI-generation example from the same thread context, arguing that developers should “stop making your users read long text in the chat” and instead let agents render interface elements dynamically through a useFrontendTool hook UI example. Together, the demo positions AG-UI less as a model feature and more as a stable event contract for building agent-facing application UIs.
What is AG-UI and why is everyone talking about it? In this video, @AlemTuzlak breaks it down. The big idea: agents and providers can emit the same standardized events, so you can swap integrations in/out without breaking changes. If you’re overwhelmed by the growing number of Show more