ai-core/ag-ui-protocol

Official

Stream AG-UI events from your AI backend.

AuthorTanStack
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill ensures backend streams for TanStack AI are delivered as AG-UI compliant events so adapters can render typed tool calls, state snapshots, and message flows without translating proprietary formats.

Core Features & Use Cases

  • SSE and NDJSON telemetry: Convert AsyncIterable chat streams into Server-Sent Events or newline-delimited JSON for web clients implementing AG-UI.
  • Typed event catalog: Document the full suite of StreamChunk types such as run lifecycle events, text deltas, tool call arguments, steps, state snapshots, and custom messages so frontends can react precisely.
  • Production readiness: Demonstrates header customization, abort handling, and error reporting to keep SSE/HTTP streams stable behind proxies and when tool failures occur.

Quick Start

Start by generating chat stream data with TanStack AI and wrapping it in the SSE helper so AG-UI clients receive typed StreamChunk events.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ai-core/ag-ui-protocol
Download link: https://github.com/TanStack/ai/archive/main.zip#ai-core-ag-ui-protocol

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.