Direct answer: The AG-UI protocol trending on GitHub defines standard events for connecting AI agents to user interfaces: streamed tokens, tool-call updates, state changes and progress as one coherent flow. It targets the hardest agent-UI problem - keeping an interface honest while work happens invisibly.

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.

Token events: streamed textTool events: calls starting and finishingState events: structured data updatesProgress events: run phasesUI renders each in its own layer

Why one protocol matters

Without standard eventsWith a standard event flow
Every agent invents its own wire formatClients swap backends without rewritesInteroperability
Tool calls render as walls of textActions render as live status cardsComprehension
State syncs by full refreshStructured patches apply cleanlyConsistency
Interruption is ad hocCancel and resume are defined eventsControl

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.

missedyour Brain mapquiz yourselfmasteredWatch your weak spots turn green.

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.

Open Brain - free

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.