The repo is on GitHub Trending today as agent frontends multiply. Every builder hits the same wall: an agent works for thirty seconds and the user stares at nothing. The protocol approach treats that as an event-streaming problem, which it is.
The event taxonomy is the real content.
The events that matter
Agents produce several distinct event kinds, and conflating them is what makes agent UIs feel broken. Text tokens stream for reading now. Tool-call events announce actions starting and finishing. State updates carry structured changes the UI should apply. Progress events report run-level phases. Separating them lets each render correctly.
Why one protocol matters
| Without standard events | With a standard event flow | |
|---|---|---|
| Every agent invents its own wire format | Clients swap backends without rewrites | Interoperability |
| Tool calls render as walls of text | Actions render as live status cards | Comprehension |
| State syncs by full refresh | Structured patches apply cleanly | Consistency |
| Interruption is ad hoc | Cancel and resume are defined events | Control |
The control row is quietly the most important: users trust agents they can interrupt. Defined cancel-and-resume events turn an opaque run into something that behaves like a well-behaved process.
Designing your own agent UI
- Stream text tokens as they arrive - perceived speed is streaming speed.
- Render tool calls as status cards with start and finish states.
- Apply state updates as patches, never full redraws.
- Make interruption a first-class button wired to a defined cancel event.
Those four moves cover most of what makes an agent interface feel professional rather than experimental.
Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.
Protocols outlive frameworks
The durable pattern in every UI revolution is a protocol arriving before the winner frameworks do - and the agent era is early enough that event conventions are still forming. Learning the event taxonomy now prepares you for whichever frameworks win, because they will all speak some version of these events.
Key takeaways
- Agent UIs need separated event streams: tokens, tool calls, state and progress.
- Tool calls deserve live status cards, not walls of raw text.
- Interrupt-and-resume as defined events is what makes agents feel trustworthy.
- Protocols outlast frameworks - learn the event model, not just one library.
Quick answers
What problem does AG-UI solve?
It standardizes the event flow between AI agents and user interfaces, so any client can render any agent's work coherently.
Why stream tokens separately from tool calls?
Tokens are text to read immediately; tool calls are actions needing status cards - conflating them confuses both.
Why does interruption matter so much?
Users trust agents they can stop; defined cancel-and-resume events turn opaque runs into controllable processes.
Should state updates redraw the whole UI?
No - structured patches apply changes cleanly and keep interfaces consistent during long runs.
One thing to do tonight
Watch one AI tool work and count its event types: streaming text, tool status, state changes. Noticing which are missing explains exactly why it feels unpolished.