AG-UI 1.0: The Open Protocol That Connects Any AI Agent to Any App — and Why Your Next Frontend Needs It
Every AI agent demo looks the same until you try to ship it. The agent works in a notebook, then you build the frontend, and suddenly you are writing a custom streaming layer: parsing tokens, tracking tool calls, syncing state, handling the moment the agent pauses to ask the user a question. Change the agent framework and you rewrite the whole layer. AG-UI 1.0 is the open protocol that ends that rewrite. It defines one typed event stream between any agent backend and any user-facing app, so a LangChain agent, a Google ADK agent, or a Microsoft agent can all drive the same frontend without custom glue code.
By Shakeel Ahmed — AI Growth Lab
The short answer: one event stream, any agent, any app
AG-UI stands for Agent-User Interaction Protocol. It is an open, MIT-licensed specification created by CopilotKit and developed in the open on GitHub, where the repository has passed 20,000 stars. Version 1.0, released in late September 2026, freezes the protocol into a stable specification backed by a JSON Schema, with TypeScript, Python, and .NET SDKs generated from that schema. The idea is simple: the client sends one RunAgentInput message — the conversation, the tools the frontend offers, shared state, and context — and the agent answers with a stream of typed events. Text arrives token by token. Tool calls, state updates, reasoning, subagent activity, and errors each have their own event type. The frontend renders whatever arrives without knowing which framework built the agent.
That last point is the whole pitch. Today, every agent framework streams differently. If your product supports two frameworks, you maintain two streaming layers, and every new framework means a third. AG-UI replaces that with one vocabulary: 31 event types in eight families, defined once, validated against a published JSON Schema. CopilotKit lists integrations for LangChain, Mastra, Google ADK, Claude Managed Agents, the OpenAI Agents SDK, Strands Agents, Microsoft Agent Framework, and Pydantic AI, among others, and says the protocol is adopted by Google, Microsoft, Amazon, and Oracle.
How a run actually works
A run has three parts, and none of them is magic. First, the app sends a request to the agent endpoint: a RunAgentInput with a thread ID, a run ID, the message history, the tools the frontend can run, the shared state, and any extra context. Second, a framework bridge on the backend converts the agent's native output into AG-UI events and streams them back over HTTP. Third, an AG-UI client in the frontend validates each event against the spec and hands it to the UI to render.
CopilotKit's own example makes the flow concrete. A user asks an agent to summarize their Notion notes. The stream opens with RUN_STARTED. When the agent reaches for the notes, the frontend sees TOOL_CALL_START, then TOOL_CALL_RESULT when the notes come back. A STATE_DELTA event updates the shared state. The summary itself arrives token by token as TEXT_MESSAGE_CONTENT events. Finally, RUN_FINISHED closes the run. The frontend never asks which framework produced the stream. It just renders events.
The 31 event types, in plain English
Version 1.0 defines 31 event types grouped into eight families. You do not need to memorize them, but you should know what each family is for, because the family is the unit you design around.
| Family | What it covers | Key events |
|---|---|---|
| Runs and steps | The lifecycle of a run | RUN_STARTED, RUN_FINISHED, RUN_ERROR, STEP_STARTED, STEP_FINISHED |
| Text messages | The agent's visible reply | TEXT_MESSAGE_START, TEXT_MESSAGE_CONTENT, TEXT_MESSAGE_END, TEXT_MESSAGE_CHUNK |
| Tool calls | The agent using tools | TOOL_CALL_START, TOOL_CALL_ARGS, TOOL_CALL_END, TOOL_CALL_RESULT, TOOL_CALL_CHUNK |
| State | Keeping frontend and agent in sync | STATE_SNAPSHOT, STATE_DELTA (JSON Patch), MESSAGES_SNAPSHOT |
| Reasoning | The agent's thinking, when exposed | REASONING_START, REASONING_MESSAGE_*, REASONING_ENCRYPTED_VALUE, REASONING_END |
| Activity | Progress indicators | ACTIVITY_SNAPSHOT, ACTIVITY_DELTA |
| Subagents | Agents spawning agents | SUBAGENT_STARTED, SUBAGENT_FINISHED, SUBAGENT_ERROR |
| Passthrough | Anything else | RAW, CUSTOM |
Two details deserve honesty. First, the state events are the quiet superpower. STATE_SNAPSHOT sends the whole shared state; STATE_DELTA sends a JSON Patch with only what changed. That is how the agent and the frontend stay in sync without re-sending everything on every turn — and what lets the same agent drive a web app, a mobile app, a terminal, or a Slack surface from one stream. Second, the count of 31 comes from the spec itself, and one careful reviewer noted that the named events in the documentation add up to 27 plus the REASONING_MESSAGE_* wildcard, which expands to cover the rest. The total is 31 either way, but if you are counting events in code, check the spec's JSON Schema rather than a blog table — including this one.
Version 1.0 also adds the features that make the protocol usable in production: subagent support, metadata for custom data, multimodal tool results, human-in-the-loop interrupts that let the agent pause mid-run for approval and resume without holding a connection open, and token usage reporting. The release is backwards compatible, so existing 0.x agents and clients keep working.
A minimal connection, sketched
Here is the shape of a connection in TypeScript. This is an illustrative sketch based on the documented client API, not a tested, runnable example — check the SDK docs for the current method names before you paste it into a project.
import { HttpAgent } from "@ag-ui/client"; // Point the client at any agent endpoint that speaks AG-UI. // The framework behind the endpoint does not matter to this code. const agent = new HttpAgent({ url: "http://localhost:8000/agent", }); await agent.runAgent( { threadId: "thread-1", runId: "run-1", messages: [{ role: "user", content: "Summarize my Notion notes." }], state: { notes: [] }, }, { // Every event arrives typed and validated against the 1.0 schema. onTextMessageContentEvent: (event) => { process.stdout.write(event.delta ?? ""); }, onToolCallStartEvent: (event) => { console.log(`Calling tool: ${event.toolCallName}`); }, onStateDeltaEvent: (event) => { console.log("State changed:", event.delta); }, onRunFinishedEvent: () => { console.log("\nRun finished."); }, } ); The important line is the first one: the client points at a URL, not at a framework. Swap the LangChain agent behind that endpoint for a Google ADK agent and this code does not change. That is the promise, and it is also the test to run before you commit: point one frontend at two different agent frameworks and confirm the UI behaves identically.
To scaffold a new project, CopilotKit points to npx create-ag-ui-app@latest. The core packages are @ag-ui/client and @ag-ui/core on npm (version 1.0.5 as of mid-November 2026) and ag-ui-protocol on PyPI (version 1.0.0). The .NET SDK ships alongside them, and community SDKs cover Kotlin, Go, Java, Dart, Rust, Ruby, C++, and Swift.
AG-UI vs MCP vs A2A: three protocols, three jobs
The most common confusion about AG-UI is thinking it competes with MCP or A2A. It does not. The three protocols solve three different problems, and a single agent can use all three at once. The AG-UI documentation itself frames it this way, and the comparison below follows that framing.
| Protocol | What it connects | What it does | Example |
|---|---|---|---|
| MCP (Model Context Protocol) | Agent to tools and data | Gives an agent tools, context, and resources to work with | An agent reads files or queries a database through an MCP server |
| A2A (Agent2Agent) | Agent to agent | Lets agents coordinate, delegate, and exchange tasks with each other | One agent hands a research task to another agent |
| AG-UI | Agent to user-facing app | Streams everything the agent does to the screen as typed events | A frontend renders an agent's text, tool calls, and state in real time |
Think of it as a stack. MCP is how the agent gets its hands on the world. A2A is how agents talk to each other. AG-UI is how the agent talks to the human watching it work. If you only build one of these layers, you do not need the other two — but if you are building a product where users watch agents work, AG-UI is the layer that has been missing, and the one developers kept rebuilding by hand.
There is a related distinction worth making because it trips people up. AG-UI is not a UI description format. Projects like A2UI, MCP Apps, and Open-JSON-UI describe what interface an agent wants to show — a form, a card, a chart. AG-UI is the runtime pipe that carries those payloads, along with everything else, between the agent and the app. The two ideas complement each other: a UI description can travel inside an AG-UI event.
When to adopt it — and when to skip it
Adopt AG-UI if you are building a product UI on top of an agent framework and you are tired of writing a custom streaming layer per framework. It fits customer support copilots, research assistants, coding agents, and any app where the user watches the agent think, call tools, and update shared state. It also fits if you expect to support more than one agent framework over time, or if your agent needs to run in more than one surface — web today, mobile or Slack tomorrow.
There are also real caveats to weigh. The spec is frozen, but the ecosystem around it is young: the protocol was created in May 2025, the 1.0 spec is only weeks old, and most integration packages are still at 0.0.x or 0.x versions, with breaking-change notes appearing in recent releases. The ecosystem also leans heavily on CopilotKit, the company behind the protocol — its client is the natural frontend choice, and many integration docs point to its documentation. That is normal for a young open standard, and the MIT license plus open GitHub development mean nobody is locked in. Finally, the adoption claims — Google, Microsoft, Amazon, Oracle — come from CopilotKit's own announcement, not from independent confirmation by those companies. Treat them as the project's claim, not as a verified fact.
Why this matters for your next frontend
The deeper reason AG-UI matters has little to do with event names. For two years, every team building agent products has rebuilt the same streaming layer, and every rebuild has made the same mistakes: spinners that lie, tool calls the user cannot see, state that drifts out of sync, and no clean way to pause for human approval. Those are not cosmetic bugs. In an agent product, the stream is the user experience. When the user cannot see what the agent is doing, they do not trust it. When they cannot interrupt it, they do not use it for anything important.
A shared protocol changes the economics of that problem. If the event stream is standard, frontend components become reusable across frameworks: a tool-call card, a state inspector, an approval dialog, a subagent tree. Developers stop writing plumbing and start writing product. That is the same transition the web went through with HTTP and the agent world is going through with MCP — and AG-UI is the attempt to finish the stack by standardizing the last mile, from the agent to the person.
Further reading
- Anthropic Rebuilt Its Messages API in Rust with Claude — 70% Less CPU, Zero Downtime — what a framework-level rebuild looks like when performance is the goal.
- Google Just Put a Meter on Your Gmail Agent — Workspace MCP Is GA — the MCP side of the stack AG-UI completes.
- Someone Hid Malware in 5 AI Models on Hugging Face — Here's How to Check Before You Download — the supply-chain check to run before you trust any agent dependency, protocol included.
Sources: CopilotKit, "Introducing AG-UI 1.0: a stable spec for connecting any agent to any application" (https://www.copilotkit.ai/blog/ag-ui-1.0); SitePoint, "AG-UI 1.0: A Stable Spec for Connecting AI Agents to Apps" (https://www.sitepoint.com/ag-ui-1-0-stable-spec-agent-user-interaction/); Sanity, "What is AG-UI? The agent-user interaction protocol explained" (https://www.sanity.io/glossary/ag-ui-agent-user-interaction-protocol); Andrew, "AG-UI Review: The Open Protocol Between Agents and UIs" (https://andrew.ooo/posts/ag-ui-review-agent-user-interaction-protocol/). Release dates differ between sources: CopilotKit and SitePoint date the 1.0 release to September 30, 2026, while one independent review dates it to September 17, 2026. The code sketch in this article is illustrative and was not executed.
Originally published on AI Growth Lab