AG-UI: Agent-User Interaction Protocol for AI Apps
What AG-UI is
AG-UI, the Agent-User Interaction Protocol, is an open, MIT-licensed specification plus a set of SDKs for one narrow job: carrying everything that happens during an AI agent run from the backend to a user-facing application, and carrying the user's input back. The README describes it as "an open, lightweight, event-based protocol that standardizes how AI agents connect to user-facing applications". The repository's main language is TypeScript, and it ships official SDKs for TypeScript, Python and .NET, with community SDKs for Kotlin, Go, Java, Dart, Rust, Ruby, C++ and Swift.
The problem it targets is familiar to anyone who has wired a chat UI to an agent framework. Agents, in the README's words, "don't fit the request/response model": they stream tokens, call tools in the middle of a response, update shared state, pause for a human and spawn subagents, and every framework exposes that differently. AG-UI replaces the per-framework glue with a single stream of typed events. The client posts one RunAgentInput (messages, the tools the frontend offers, shared state and context) and the agent answers with events such as RUN_STARTED, TEXT_MESSAGE_CONTENT, TOOL_CALL_ARGS, STATE_DELTA and RUN_FINISHED. Any client that understands those events can render any agent that emits them.
The project was created by CopilotKit and, per the README, "is developed in the open with the community". The README states that AG-UI is "adopted by Google, Microsoft, Amazon, and Oracle" and lists integrations for LangChain/LangGraph, CrewAI, Microsoft Agent Framework, Google ADK, AWS Strands Agents, Mastra, Pydantic AI, LlamaIndex, Agno, AG2, the Claude Agent SDK and others, plus Amazon Bedrock AgentCore as a deployment target. Those are the project's own claims; this page did not verify each integration.
The audience is twofold: frontend and full-stack developers who want one client contract regardless of which agent framework the backend team picks, and framework or platform authors who want their agents to show up in existing AG-UI clients such as CopilotKit, a terminal client or Slack and Teams through CopilotKit's Channels SDK. The page below is based on the README, eleven documentation pages, DEPRECATIONS.md, the last five GitHub releases and the npm and PyPI registries, plus a hands-on session with the published packages.
Where AG-UI sits next to MCP and A2A
The documentation page "MCP, A2A, and AG-UI" frames AG-UI as one of three complementary agentic protocols, each covering a different edge of an agent's world:
- MCP (Model Context Protocol) "connects agents to tools and to context". The introduction page notes it originated at Anthropic.
- A2A (Agent to Agent) "connects agents to other agents"; the introduction notes it originated at Google.
- AG-UI "connects agents to users (through user-facing applications)". The docs call it the "kitchen sink" protocol, "informed by bottom-up, real-world needs".
The page says "a single agent can and often does use all 3 simultaneously": an agent might call tools over MCP, delegate to a remote agent over A2A, and stream its progress to a browser over AG-UI. It also says contributors have added "handshakes" that let AG-UI "front for" agents that speak MCP or A2A, so an AG-UI client can talk to those agents. In the repository tree this shows up as middlewares/mcp-middleware, middlewares/a2a-middleware, middlewares/mcp-apps-middleware and integrations/a2a. If you run MCP and A2A traffic through a proxy such as agentgateway, AG-UI is the piece that sits between that agent layer and the user's screen rather than a replacement for it.
A second naming confusion is addressed directly in the README: A2UI, MCP Apps and Open-JSON-UI are "generative UI specs" that describe what UI an agent wants to show, while AG-UI is "the runtime protocol that carries those payloads". In other words, an A2UI component tree can travel inside an AG-UI stream; the two are layered, not competing. The repository ships an a2ui-middleware package for that bridge.
How the protocol works
Runs, threads and the event stream
The unit of work is a run inside a thread. The client sends RunAgentInput, and the agent streams back events until the run ends. Only the lifecycle is mandatory: every run begins with RUN_STARTED and ends with either RUN_FINISHED or RUN_ERROR; STEP_STARTED/STEP_FINISHED pairs are optional progress markers. The README says AG-UI 1.0 defines 31 event types in eight families, and the installed @ag-ui/core 1.0.5 enum has exactly 31 members:
| Family | Events | Pattern |
|---|---|---|
| Runs and steps | RUN_STARTED, RUN_FINISHED, RUN_ERROR, STEP_STARTED, STEP_FINISHED | Lifecycle |
| Text messages | TEXT_MESSAGE_START, _CONTENT, _END, _CHUNK | Start, content, end |
| Tool calls | TOOL_CALL_START, _ARGS, _END, _RESULT, _CHUNK | Start, content, end |
| State | STATE_SNAPSHOT, STATE_DELTA, MESSAGES_SNAPSHOT | Snapshot, delta |
| Reasoning | REASONING_START, REASONING_MESSAGE_*, REASONING_ENCRYPTED_VALUE, REASONING_END | Start, content, end |
| Activity | ACTIVITY_SNAPSHOT, ACTIVITY_DELTA | Snapshot, delta |
| Subagents | SUBAGENT_STARTED, SUBAGENT_FINISHED, SUBAGENT_ERROR | Lifecycle |
| Passthrough | RAW, CUSTOM | Free-form |
Streaming content uses a start/content/end pattern keyed by messageId or toolCallId: clients concatenate delta strings in arrival order. The *_CHUNK variants are conveniences that the client's stream transformer expands into the full triad, which is how the server quickstart forwards OpenAI chunks without tracking message boundaries itself. Every event shares a base with an optional timestamp, rawEvent and an open-by-key metadata object; the docs describe metadata as the sanctioned place for token usage, trace ids and other extras, and most events also accept a subagentRunId that attributes them to a delegated child run.
Shared state with snapshots and JSON Patch
State is a JSON document that both sides can read and write. STATE_SNAPSHOT replaces the client's copy wholesale; STATE_DELTA carries an array of RFC 6902 JSON Patch operations (add, remove, replace, move, copy, test). The state concept page says the TypeScript client applies patches with fast-json-patch, without mutating the original, and that a failing patch is logged and skipped rather than crashing the run; the hands-on section below shows exactly that behaviour. When a client suspects drift, the guidance is to ask for a fresh snapshot. Activity events reuse the same snapshot/delta model for structured in-progress views such as a plan or a search panel.
Tools that run in the frontend
AG-UI distinguishes backend tools, which stay inside the agent framework, from client-defined tools passed in RunAgentInput.tools. The tools page is explicit that this array "is only for these client-provided tools" and is not meant to mirror every backend tool. When the agent calls one, the client sees TOOL_CALL_START, a series of TOOL_CALL_ARGS JSON fragments and TOOL_CALL_END, runs the tool locally (show a confirmation dialog, mutate the UI, read browser state), and returns a role: "tool" message on the next run. A tool message can carry an error field so a failed frontend tool is distinguishable from a successful one.
Interrupts: human in the loop as a run outcome
Pausing for approval is modelled as a way for a run to end, not as a special event in the middle. RUN_FINISHED has an optional outcome union: omitted (legacy, treated as success), { type: "success" }, or { type: "interrupt", interrupts: [...] }. Each interrupt has an id, a reason (core values tool_call, input_required, confirmation; custom reasons should be namespaced like langgraph:database_modification), and optionally a message, toolCallId, responseSchema and expiresAt. The client resumes by starting a new run on the same thread with a resume array, as in the interrupts page's minimal tool-approval example:
{
"threadId": "thread-1",
"runId": "run-2",
"resume": [
{
"interruptId": "int-abc123",
"status": "resolved",
"payload": { "approved": true }
}
]
}
The contract rules are strict: a resume must address every open interrupt (partial resumes are not supported), a thread with pending interrupts rejects any input that lacks a resume, replays with the same payload must be idempotent, and expired or mismatched resumes produce RUN_ERROR. Before emitting the interrupt the agent must send whatever state is needed to resume as STATE_SNAPSHOT and MESSAGES_SNAPSHOT, which keeps the protocol neutral between replay-style and checkpoint-style frameworks. For server-owned tools, a metadata marker of "ag-ui:tool-execution": "server" tells the client not to synthesize a tool result, and the docs stress that the marker "is not an authorization credential".
Transports and serialization
The protocol is transport-agnostic. The spec defines an HTTP + SSE binding (JSON events as data: lines) and a binary HTTP + Protobuf binding under the media type application/vnd.ag-ui.event+proto. The TypeScript EventEncoder negotiates between the two from the request's Accept header, and protobuf frames are length-prefixed (a 4-byte big-endian length, then the message, as the installed encoder source shows). The serialization page adds lineage on top: RUN_STARTED can carry parentRunId for git-like branching and an input echo of what the agent received, and a compactEvents() helper collapses stored history. It recommends JSON over protobuf for archival storage because protobuf metadata is a google.protobuf.Struct whose numbers are IEEE-754 doubles.
What changed in 1.0 and recent releases
AG-UI 1.0 shipped on 17 September 2026, according to DEPRECATIONS.md; npm records @ag-ui/core 1.0.0 the same day. The README describes it as "a stable, frozen specification" backed by a JSON Schema, with the TypeScript, Python and .NET protocol types generated from that schema, and says 1.0 is backwards compatible in both directions. The migration guide spells out what that means in practice:
- Producers must declare their version. A 1.0 producer "MUST declare the protocol version it speaks on
RUN_STARTED", using the SDK constant rather than a hand-typed string or an echo of the client's version. Proxies must pass the field through untouched. - Optional fields are omitted, never
null. The client tolerates a fixed list of legacy whole-field nulls on incoming events (with a warning once per field per run), but direct schema validation stays strict. - zod became an optional peer dependency of
@ag-ui/core. The main entry is types and constants only; validators moved to@ag-ui/core/schemas.@ag-ui/client,@ag-ui/encoderand@ag-ui/protostill need zod installed alongside. - One enforcement stage on every path. Unknown event types are dropped with a warning, unknown properties on known events are stripped with a warning, and a malformed value on a defined field fails the run, now also with middleware installed and over protobuf.
- Retired names. The five
THINKING_*events give way toREASONING_*; thebinarycontent part gives way toimage/audio/video/documentparts;SubAgentInfobecomesSubagentInfo. Inbound shims for old shapes expire on 17 September 2027.
The TypeScript snippet the migration guide gives for declaring the version:
import { EventType, PROTOCOL_VERSION, type RunStartedEvent } from "@ag-ui/core";
const runStarted: RunStartedEvent = {
type: EventType.RUN_STARTED,
threadId: input.threadId,
runId: input.runId,
protocolVersion: PROTOCOL_VERSION,
};
GitHub releases are date-tagged roll-ups of whichever packages were published that day, not protocol versions. The 17 November 2026 release moved @ag-ui/client, @ag-ui/core, @ag-ui/encoder and @ag-ui/proto to 1.0.5: compactEvents now preserves ordering across overlapping streams, reasoning deltas are compacted, large replayed threads apply faster through a MessageLookup index, and enforcement now rejects missing or inherited union discriminators (flagged as breaking). The same day added @ag-ui/cloudflare-agents 0.1.0 with a withAGUI(Agent) wrapper for Durable Objects. The latest release, 21 November 2026, is integration-only: @ag-ui/langgraph 0.0.47 and ag-ui-langgraph 0.0.48 tighten which client forwardedProps reach LangGraph and stop clients from skipping graph nodes on continue; ag_ui_adk 0.14.0 closes an auth bypass on /agents/state and /capabilities (advisory GHSA-jhvp-j8pf-5vh5); and ag-ui-openai-agents 0.2.0 signs paused tool calls with an HMAC so a resume can only run a tool the server actually paused.
Getting started
The README offers two paths. The scaffolded one generates a frontend (CopilotKit on Next.js, or a terminal client) wired to the agent framework you pick; the generated templates call OpenAI, so they need an API key:
npx create-ag-ui-app@latest
export OPENAI_API_KEY="sk-..."
The protocol-level path is a 30-line FastAPI agent plus a TypeScript client, and needs no API key. The agent side:
pip install ag-ui-protocol fastapi uvicorn
uvicorn server:app --port 8000
The server.py in the README builds an EventEncoder from the request's Accept header and yields RunStartedEvent (with protocol_version=PROTOCOL_VERSION), a three-chunk text message and RunFinishedEvent. The client side, in a new folder:
npm init -y && npm pkg set type=module
npm install @ag-ui/client tsx
// client.ts
import { HttpAgent } from "@ag-ui/client";
const agent = new HttpAgent({ url: "http://localhost:8000/" });
agent.addMessage({ id: crypto.randomUUID(), role: "user", content: "Hi there!" });
await agent.runAgent({}, {
onRunStartedEvent: ({ event }) => console.log(`run started (AG-UI ${event.protocolVersion})`),
onTextMessageContentEvent: ({ event }) => { process.stdout.write(event.delta); },
onRunFinishedEvent: () => console.log("\nrun finished"),
});
npx tsx client.ts
Note that the migration guide says @ag-ui/client needs zod as a peer dependency; the hands-on below installed zod explicitly, in line with the guide:
npm install @ag-ui/client zod
For building an integration rather than consuming one, the repository's integrations/server-starter and middlewares/middleware-starter are the templates the README points to, and the AG-UI Dojo at dojo.ag-ui.com hosts live demos for each listed framework.
Hands-on, 25 November 2026
Environment. A Linux VM with Node.js v22.23.5, npm 10.9.9 and Python 3.13.18. From npm: @ag-ui/core, @ag-ui/client, @ag-ui/encoder and @ag-ui/proto 1.0.5 (the latest dist-tag, published 17 November 2026), with zod 4.6.7 and tsx 4.23.15; npm checked each tarball against its registry sha512 integrity on install (npm audit signatures failed to download its key data in this sandbox, so signatures were not verified). From PyPI, in a virtualenv: ag-ui-protocol 1.0.0 with pydantic 2.14.4, FastAPI 0.165.0 and uvicorn. Not tested: CopilotKit or any other UI, any LLM or framework integration (no API keys were used), create-ag-ui-app, the Dojo, the .NET and community SDKs, WebSocket transports and production load.
1. The README quickstart, verbatim
The README's server.py and client.ts were copied unchanged. The client printed run started (AG-UI 1.0), streamed Hello from AG-UI! and printed run finished, exactly as the README promises. A raw curl showed seven SSE data: lines, with "protocolVersion":"1.0" on RUN_STARTED. A POST with only threadId got HTTP 422 from FastAPI listing the missing runId and messages. Sending Accept: application/vnd.ag-ui.event+proto to this Python server still returned text/event-stream: the Python EventEncoder in 1.0.0 ignores its accept argument and only encodes SSE.
2. Schema validation of good and malformed events
A 17-event stream (run start, state snapshot, a step, a three-chunk text message, a streamed tool call and result, a two-operation STATE_DELTA, a CUSTOM event and a success outcome) was built with the SDK's EventType and PROTOCOL_VERSION ("1.0") and checked with EventSchemas.safeParse from @ag-ui/core/schemas. All 17 passed. Edge cases:
| Event tried | TS schema (1.0.5) | Observed message / note |
|---|---|---|
TEXT_MESSAGE_CONTENT without messageId | Rejected | messageId: expected string, received undefined |
TEXT_MESSAGE_CONTENT with delta: 42 | Rejected | delta: expected string, received number (Python SDK also rejects) |
TEXT_MESSAGE_CONTENT with delta: "" | Accepted | Docs call the delta "non-empty"; Python SDK and verifyEvents also accept it |
TEXT_MESSAGE_START with role: "robot" | Rejected | Expected developer, system, assistant or user |
Extra threadId on TEXT_MESSAGE_CONTENT | Accepted | Schema passes it; the client's enforcement stage strips unknown keys (see test 4) |
STATE_DELTA with a patch object (shape used in the serialization page) | Rejected | delta: expected array, received undefined |
STATE_SNAPSHOT with a state key (serialization page) | Rejected | snapshot: Invalid input |
JSON Patch op: "merge" | Rejected | Expected add, remove, replace, move, copy or test |
RUN_FINISHED with result: null | Rejected | Strict schema; the Python model silently drops the null on output |
Interrupt outcome with empty interrupts | Rejected | expected array to have >=1 items |
Interrupt outcome with one tool_call interrupt | Accepted | |
THINKING_START, unknown FOO | Rejected | Invalid discriminator |
CUSTOM with value: null | Accepted | Matches the migration guide (required JSON payloads may be null) |
Event with metadata: null | Rejected | Matches the migration guide |
3. Sequence verification and compaction
Schema checks look at one event at a time; verifyEvents() from @ag-ui/client checks ordering. The full stream passed. Every broken sequence tried was rejected with a readable message: content before TEXT_MESSAGE_START ("No active text message found with ID 'm1'"), a message never ended ("Cannot send 'RUN_FINISHED' while text messages are still active"), an event before RUN_STARTED ("First event must be 'RUN_STARTED'"), a mismatched STEP_FINISHED name, events after RUN_FINISHED, tool arguments after TOOL_CALL_END, and a reasoning message left open at the end of the run. A RUN_ERROR followed by a new RUN_STARTED passed, consistent with the migration guide's statement that this begins a new run in the same stream.
compactEvents() reduced the 17 events to 13 (1,199 to 901 bytes of JSON): the three text chunks became one TEXT_MESSAGE_CONTENT reading Hello from AG-UI!, the two argument fragments merged, and the snapshot plus delta folded into a single STATE_SNAPSHOT placed just before RUN_FINISHED. Unlike the serialization page's example, the text message stayed a start/content/end triad rather than becoming a MESSAGES_SNAPSHOT.
4. HttpAgent against a local Node server
A small node:http server using @ag-ui/encoder streamed a run with a state snapshot, a four-chunk message, a two-operation STATE_DELTA and a success outcome, with URL paths that inject faults. The request the client sent carried Accept: text/event-stream, protocolVersion: "1.0" and the keys threadId, runId, state, messages, tools, context and forwardedProps.
| Scenario | runAgent() | What the client did |
|---|---|---|
| Normal run | Resolved | 10 events; text assembled; final state {"count":1,"items":["first"]}; messages user, assistant |
Unknown property vendorField | Resolved | Warned "Removed unrecognised material at '/vendorField'"; delta still applied |
Unknown event type VENDOR_EVENT | Resolved | Warned "Dropping unrecognised event 'VENDOR_EVENT'" |
Legacy THINKING_START/THINKING_END | Resolved | Converted to REASONING_START/REASONING_END with a [ag-ui][compat] warning |
delta: 42 mid-stream | Rejected | Run failed with the zod issue; state stayed at the snapshot value (delta never applied) |
| Patch on a missing path | Resolved | Logged "Failed to apply state patch"; state kept its previous value |
Agent sends RUN_ERROR | Resolved | onRunErrorEvent fired with QUOTA: model quota exceeded; no rejection, as the migration guide says |
| Interrupt outcome | Resolved | onRunFinishedEvent received the confirmation interrupt |
Passing Accept: application/vnd.ag-ui.event+proto through HttpAgent's headers option did not change what reached the server; the request still arrived with text/event-stream. Fetching the same run directly with each Accept value and parsing it with the client's own runHttpRequest and transformHttpEventStream worked for both: 835 bytes over SSE and 325 bytes over protobuf, both decoding to the same 10 events.
5. SSE versus protobuf size
Each event of the 17-event stream was encoded with EventEncoder.encodeBinary() under both Accept values and decoded back with @ag-ui/proto. All 17 round-tripped identically (ignoring key order), and a minimal example of each of the 31 event types also encoded and decoded without loss.
| Payload | SSE bytes | Protobuf bytes | Protobuf / SSE |
|---|---|---|---|
TEXT_MESSAGE_CONTENT ("Hello ") | 73 | 22 | 0.30 |
TOOL_CALL_START | 101 | 28 | 0.28 |
RUN_STARTED with protocolVersion | 83 | 23 | 0.28 |
STATE_DELTA (2 operations) | 164 | 82 | 0.50 |
CUSTOM with an object value | 62 | 42 | 0.68 |
| Whole 17-event stream | 1,317 | 483 | 0.37 |
TEXT_MESSAGE_CONTENT with 4.8 KB of text | 4,867 | 4,818 | 0.99 |
STATE_SNAPSHOT of 200 small objects | 10,862 | 14,723 | 1.36 |
The takeaway: protobuf removes most of the per-event envelope (field names, data: framing), so streams of many small token events shrink to roughly a third. Large text deltas gain almost nothing, and a large state snapshot was about 36% bigger as protobuf, because state travels as a generic Struct that spells out every key and type tag. Whether binary pays off depends on how much of a stream is token chatter versus state.
Use cases
- One chat UI, several agent backends. A product team that runs a LangGraph agent for one feature and a Mastra or Pydantic AI agent for another can keep one client and swap the endpoint, which is the core promise of the README's "the client doesn't change".
- Approval gates on side-effecting tools. The interrupt lifecycle (tool-bound interrupts, approve-with-edits through an
editedArgsschema, parallel interrupts resolved in one resume) gives a documented contract for "ask before sending the email" flows instead of a framework-specific callback. - Collaborative documents and dashboards. Shared state with JSON Patch suits agents that fill in a form, outline a report or build a plan while the user edits the same object; activity events cover in-progress panels.
- Frontend-executed tools. An agent that needs to navigate the app, read the current selection or open a dialog can declare those as client tools and receive results back on the next run.
- Multi-agent transparency. Subagent events and
subagentRunIdattribution let a UI show which delegated agent produced which output when several stream concurrently. - Persisted and branchable conversations.
parentRunIdlineage pluscompactEvents()support storing a thread as an append-only log and restoring or branching it later. - Exposing an existing agent platform. Framework authors can ship an AG-UI adapter once and appear in CopilotKit, terminal clients and chat-platform bridges; the 23 top-level folders under
integrations/show the pattern.
How it compares
AG-UI's own docs position it as complementary to MCP, A2A and the generative-UI specs, so the table below is about scope rather than a head-to-head. The last column is the do-it-yourself baseline most teams start from. Claims about the other protocols are kept to what AG-UI's docs say and what is plain at category level; check each project's own spec before relying on a detail.
| AG-UI | MCP | A2A | A2UI | Hand-rolled SSE/WebSocket | |
|---|---|---|---|---|---|
| Connects | Agent to user-facing app | Agent to tools and context | Agent to agent | Describes UI an agent wants shown | Whatever you define |
| Role per AG-UI docs | Runtime event protocol | Complementary; AG-UI can front MCP agents | Complementary; AG-UI can front A2A agents | A payload AG-UI can carry | What AG-UI replaces |
| Streaming text and tool-call arguments | Typed events with start/content/end | Not its focus | Not its focus | No (UI description) | Custom |
| Shared app state | Snapshots plus JSON Patch | Not its focus | Not its focus | UI data model | Custom |
| Human approval | Interrupt outcome plus resume | Varies by client | Varies | UI actions | Custom |
| Schema and validation | JSON Schema; generated TS, Python, .NET types | Own spec and SDKs | Own spec and SDKs | Own spec | None unless you write it |
| Wire formats | SSE (JSON), protobuf binding | See MCP spec | See A2A spec | JSON payloads | Any |
Two practical notes. First, AG-UI is not a realtime media layer: if the "user interaction" is voice or video, something like LiveKit handles the media, and AG-UI-style events would ride alongside. Second, agent platforms such as Dify or pipeline frameworks such as Haystack come with their own APIs; AG-UI matters there only if you want a client that is portable across them. For tool access over MCP, a concrete server such as the GitHub MCP Server sits on the other side of the agent and is unaffected by the choice of UI protocol.
Limits, trade-offs and things to know before adopting
- Licence. MIT, per the API and the
LICENSEfile, which reads "Copyright (c) 2025" without naming a holder. No copyleft concerns for the SDKs reviewed; integrations pull in their frameworks' own licences. - Young project, fast-moving edges. The repository was created on 7 May 2025 and the frozen 1.0 spec is about ten weeks old. The core packages are at 1.0.5, but most integration packages are still 0.0.x or 0.x, and the last five releases carry "Breaking changes" sections in nearly every integration (LangGraph continue semantics, ADK route authentication, OpenAI Agents approval signing). Pin versions and read each release's notes.
- Security lives in the adapters. Recent releases fixed an auth bypass in
ag_ui_adk(GHSA-jhvp-j8pf-5vh5), client-controlledforwardedPropsleaking into LangGraph runs, and replayable tool approvals in the OpenAI Agents adapter. The protocol leaves authentication to you, and the interrupts page is explicit that metadata markers are not credentials. Treat everything the client sends, includingstate,forwardedPropsandresumepayloads, as untrusted. - Uneven SDK features. In this test the Python 1.0.0 encoder ignored
Acceptand produced SSE only, while the TypeScript encoder supports protobuf. Python validation is also deliberately tolerant (unknown keys kept, missingprotocol_versionaccepted silently), so the strict contract is the TypeScript client and the spec's fixture corpus, as the migration guide says. - Version numbers do not line up. npm has
@ag-ui/core1.0.5 (17 November 2026); PyPI's newestag-ui-protocolis 1.0.0 (17 September 2026). GitHub releases are date tags (release/2026-11-21) that bundle unrelated packages, so "latest release" on GitHub may not touch the package you use. - Protobuf is not automatically smaller. It cut a token-heavy stream to 37% of the SSE size but made a 200-item state snapshot 36% larger, and the serialization page recommends JSON for archival because protobuf numbers are doubles.
- Strictness can surprise. A single malformed field fails the whole run in the TypeScript client, unknown properties are stripped before your subscriber sees them (use
metadataorforwardedPropsinstead), and a producer-sentRUN_ERRORdoes not reject therunAgent()promise unless you raise it yourself. - Deprecation clock.
THINKING_*events,binarycontent parts and a list of legacynullfields are translated by shims that, perDEPRECATIONS.md, may be removed after 17 September 2027. - Telemetry. The reviewed docs and package READMEs say nothing about telemetry in the SDKs,; this hands-on did not audit network traffic. The README itself embeds third-party badge images (npm, PyPI, Discord, Trendshift).
Source discrepancies found
- Event count. The architecture page says agents emit "any of the 16 standardized event types" and lists a short set; the README says 31, and the 1.0.5 enum has 31.
- Thinking events. The events page warns that
THINKING_*"will be removed in version 1.0.0", but 1.0 shipped with an inbound shim until 17 September 2027, and the client converted them in the test. - Draft labels. The events page still lists
RUN_FINISHED.outcomeandRUN_STARTED.parentRunId/inputunder "Draft Events", while the interrupts page, the migration guide and the 1.0.5 schema treatoutcomeas part of 1.0. - Serialization examples. The compaction example uses
STATE_DELTAwith a singlepatchobject andSTATE_SNAPSHOTwith astatekey; the 1.0 schema rejects both and expectsdelta(array) andsnapshot. The same page says several event types have no protobuf representation; minimal examples of all 31 round-tripped here. - Empty deltas. The events page calls
TEXT_MESSAGE_CONTENT.delta"non-empty", but the TypeScript schema,verifyEventsand the Python model all accepted"". - Runtime requirements. The README asks for Python 3.9+ and Node.js 20+; the server quickstart asks for Python 3.12+ and Poetry, and the client quickstart for Node.js 22.13.0+. PyPI declares
requires_python >=3.9. - Version declaration. The migration guide says a 1.0 producer MUST set
protocolVersiononRUN_STARTED, but the server quickstart's Python code does not, and the Python SDK accepts the omission without warning. - Client API shape. The architecture page shows
agent.runAgent({...}).subscribe(...); the README'sawait agent.runAgent({}, subscriber)form is what worked with 1.0.5 here.
Project activity
Checked 25 November 2026: latest release release/2026-11-21 (21 November 2026), 21,680 stars, licence MIT.
The ag-ui-protocol/ag-ui repository had 21,680 stars, 2,180 forks, 109 watchers and 621 open issues at the time of writing. GitHub reports TypeScript as the main language; the tree also holds the Python and .NET SDKs, eight community SDKs, the JSON Schema and generator under spec/, 23 top-level folders under integrations/, six middlewares and the Dojo app. It was created on 7 May 2025, develops on main, is not archived or a fork, and was last pushed on 24 November 2026. Five date-tagged releases landed between 10 and 21 November 2026. On npm, @ag-ui/core, @ag-ui/client, @ag-ui/encoder and @ag-ui/proto are at 1.0.5 (six 1.0.x releases since 17 September 2026, plus canary and alpha tags); on PyPI, ag-ui-protocol is at 1.0.0 and depends only on pydantic 2.11.2 or newer. Documentation lives at docs.ag-ui.com, the homepage is ag-ui.com, and live demos are in the AG-UI Dojo. Questions go to Discord and GitHub Discussions, bugs to GitHub Issues, and security reports follow SECURITY.md.
Enjoying this project?
Discover more amazing open-source projects on TechLogHub. We curate the best developer tools and projects.
Repository:https://github.com/ag-ui-protocol/ag-ui
GitHub - ag-ui-protocol/ag-ui: AG-UI: Agent-User Interaction Protocol for AI Apps
AG-UI is an MIT-licensed, event-based protocol and SDK set that streams agent runs, tool calls, shared state and interrupts to user-facing apps. 1.0 spec, hands...
github - ag-ui-protocol/ag-ui
Related Projects
Maintain AG-UI: Agent-User Interaction Protocol for AI Apps? Add the badge to your README
Show that the project is featured on TechLogHub and send readers to this write-up.
[](https://techloghub.com/open-source/ag-ui-protocol?utm_source=techloghub_badge&utm_medium=referral&utm_campaign=readme)