AG-UI is an open, event-based protocol that connects AI agent backends to the frontend applications people click on. It is aimed at developers who already have a working agent and now have to show everything it does in a real interface: streaming tokens, tool calls that fire mid-response, shared state that keeps changing, a pause for human approval. The repository holds the published spec plus the TypeScript and Python packages that implement it.
What it does
The README states the problem plainly: agents do not fit the request/response model. They stream tokens, call tools mid-response, update shared state, pause for a human and spawn subagents, and every framework does it differently. The result is that each agent app grows its own bespoke transport layer between backend and UI, and each one breaks in its own way.
AG-UI replaces that custom wiring with one lightweight event protocol both sides speak. Version 1.0 of the spec is published in the project's docs, so a frontend that knows how to render AG-UI events can be pointed at a different agent backend without the UI layer being rewritten from scratch.
The release the video covers adds three things, all as described by the project itself rather than measured by anyone independent:
- The event compactor now keeps events ordered across overlapping streams, so parallel tool calls stop landing in the wrong slot. That is the fix the video leads with, and it is the kind of bug that only shows up once an agent starts calling several tools at once.
- Reasoning deltas are compacted too, which shrinks stored history size. The project publishes no figure for how much, so treat it as a direction, not a number.
- A brand new package for Cloudflare Agents.
How it works
Rather than one request and one response, the agent and the app hold a bidirectional connection and exchange typed events: text deltas, tool call activity, state updates and so on. The frontend's job becomes reacting to a known event vocabulary instead of parsing whatever shape a given agent framework happens to emit.
The compactor sits inside that stream and is what makes long sessions practical: it folds many small events into fewer stored ones, and after this release it also preserves ordering when two or more streams overlap.
The new Cloudflare Agents package is the most opinionated piece. One Durable Object serves the whole protocol over WebSocket, and that object's own state becomes the shared thread between agent and UI, so there is no separate session store to run alongside it. The catch is that this package needs AI SDK 6 or 7.
Getting started
This is a library and a spec, not an application, and the project lists no hardware requirements: what you need is a Node or Python toolchain and an agent to wire up. For TypeScript, install the core package with npm install @ag-ui/core; for Python, pip install ag-ui-protocol. There is no build to hunt for in Releases and no installer: the code lives at github.com/ag-ui-protocol/ag-ui under the MIT licence, and cloning it is only useful if you want to read the spec and the examples directly.
On money: the protocol is free and the packages are free, but AG-UI ships no intelligence of its own. Whatever model your agent calls is what costs, so you either run a local model on your own hardware or pay for a cloud API key, exactly as you would without AG-UI. The Cloudflare route adds a Cloudflare account and Durable Objects on top; the materials here do not say which Cloudflare plan covers that, so check before building on it.
For learning, the project points to its docs site, the 1.0 spec, a hosted set of runnable examples it calls the Dojo, and a Discord server for questions.
When to use it / when not
The main catch is version pressure at the edges: the new Cloudflare Agents package requires AI SDK 6 or 7, so a project pinned to an older AI SDK cannot pick it up yet. The broader catch is structural, and true of any protocol: it only pays off when both ends speak it, which means adopting it on the backend as well as in the UI.
Use it instead of your own hand-rolled server-sent-events or WebSocket glue when the agent streams, calls tools in parallel, keeps state the UI must display, or stops to ask the user something, because that is precisely the wiring people get wrong twice. Don't use it if your agent is a single-shot question and answer where one plain HTTP endpoint already does the job, or if you control both halves of a small internal tool and a protocol is more ceremony than the feature deserves.
The repository shows roughly 20,973 stars and 2,137 forks on GitHub's own counters, was created in May 2025, and still had commits landing in November 2026, which is a reasonable sign that the spec is being maintained rather than parked. Take it seriously if you are building a product interface on top of an agent and are tired of inventing the transport layer each time: the ordering fix in this release in particular addresses a failure that is nasty to debug by hand. If your agent is simple and synchronous, you can safely wait.