
Ag UI
Lets an agent stream runs, tool calls and shared state to user-facing apps over AG-UI 1.0
Ag UI is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 5
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Ag UI
This skill guides an AI coding agent through building or reviewing an AG-UI endpoint, a client that consumes one, or middleware between them. It covers the run lifecycle, the event families, HTTP with Server-Sent Events and Protobuf transports, and the processing rules for unknown and malformed events.
The workflow runs in steps: pick the protocol version, choose roles and transport, emit or consume the run lifecycle, add the event families needed, wire human-in-the-loop interrupts and frontend tools, then build the processing pipeline and version handshake. It includes a checklist for verifying streams against the 1.0 JSON Schema and for keeping cancelled, interrupted and truncated runs distinct from success.
The skill also includes an upgrade path from AG-UI 0.x to 1.0 and reference notes on the 1.1 working draft, which it tracks but does not emit. Expect to work with TypeScript, Python or .NET SDK conventions, and with HTTP endpoints that return event streams.
When your agent uses it
AG-UI: stream agent runs to user-facing apps with the Agent-User Interaction Protocol 1.0, upgrade 0.x integrations to 1.0, and track the AG-UI 1.1 working draft. Use when building or reviewing an AG-UI agent endpoint (producer), a client or UI that consumes one (consumer), a framework bridge, or middleware: RunAgentInput (threadId, runId, messages, tools, context, state, forwardedProps, resume), the 31 event types in eight families (RUN_STARTED, RUN_FINISHED outcomes, RUN_ERROR, steps, TEXT_MESSAGE_*, TOOL_CALL_*, REASONING_*, STATE_SNAPSHOT, STATE_DELTA with JSON Patch, MESSAGES_SNAPSHOT, ACTIVITY_*, SUBAGENT_*, RAW and CUSTOM), the chunked form, the HTTP + SSE and HTTP + Protobuf bindings, frontend tools, human-in-the-loop interrupts and resume, the processing model (unknown versus malformed), protocolVersion negotiation, the JSON Schema, and the TypeScript, Python and .NET SDKs. Triggers: ag-ui, agui, agent-user interaction protocol, agent UI streaming, generative UI, shared state, human in the loop.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 7 files (50 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the better-supabase plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add ScaleDockHQ/better-supabase
/plugin install better-supabase@better-supabaseOr copy only this skill to ~/.claude/skills/ag-ui:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ag-ui &&
cp -R "$tmp/.agents/skills/ag-ui" ~/.claude/skills/ag-ui &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/ag-ui inside it instead.
Copy the skill folder to ~/.agents/skills/ag-ui to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ag-ui &&
cp -R "$tmp/.agents/skills/ag-ui" ~/.agents/skills/ag-ui &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/ag-ui inside it instead.
Copy the skill folder to ~/.cursor/skills/ag-ui to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ag-ui &&
cp -R "$tmp/.agents/skills/ag-ui" ~/.cursor/skills/ag-ui &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/ag-ui inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/ScaleDockHQ/better-supabase.git --path .agents/skills/ag-uiOr copy the folder to ~/.gemini/skills/ag-ui yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/ag-ui:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ag-ui &&
cp -R "$tmp/.agents/skills/ag-ui" ~/.copilot/skills/ag-ui &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/ag-ui inside it instead.
Get the folder:
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.gitThen copy better-supabase/.agents/skills/ag-ui into your agent's skills folder as ag-ui. Agents that support SKILL.md read one folder per skill.
What it does
- Run lifecycle handling
- Covers starting, finishing and erroring runs, with success, interrupt and cancelled outcomes.
- Event family coverage
- Describes the 31 event types across text, tool calls, reasoning, state, activity and subagents.
- Transport bindings
- Explains the HTTP with SSE and HTTP with Protobuf bindings and handling of truncated streams.
- Human-in-the-loop flows
- Guides frontend tools, interrupts, resume entries and consent before side effects.
- Processing and versioning
- Sets rules for stripping unknown events, failing malformed values and negotiating protocolVersion.
- Upgrade from 0.x
- Provides a checklist for moving 0.x integrations to the 1.0 specification.
Good for
- Add an AG-UI streaming endpoint to my agent
- Review our AG-UI client for spec conformance
- Upgrade our AG-UI 0.x integration to 1.0
- Implement human-in-the-loop approval for agent tool calls
- Stream shared state updates to a web UI using JSON Patch deltas
Ag UI FAQ
Which AG-UI version does the skill target?
It targets AG-UI 1.0 by default. It treats 0.x as legacy to read and upgrade from, and tracks the 1.1 working draft without emitting it.
What transports are covered?
The skill covers HTTP with Server-Sent Events and HTTP with Protobuf, plus guidance for custom transports.
Does the skill run scripts or change files?
The skill lists no scripts. It provides instructions and reference files that an agent follows when building or reviewing an AG-UI integration.
How do I install Ag UI in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/ag-ui to use it in all your projects, or to .claude/skills/ag-ui in one project. Or install the better-supabase plugin, which includes it: /plugin marketplace add ScaleDockHQ/better-supabase, then /plugin install better-supabase@better-supabase.
Does Ag UI run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Ag UI?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Ag UI?
The closest alternatives to Ag UI are Developing genkit js, A2a, Axiom swiftui, Agents SDK and Cloudevents.
Where this comes from
- Description: from the skill's own SKILL.md.
More from ScaleDockHQ/better-supabase

Apply the CommonMark 0.31.2 spec when parsing or rendering Markdown
- Open source
- 5 GitHub stars
- Files and documents

Publish Agent Cards and run agent-to-agent calls over the A2A 1.0 protocol
- Open source
- 5 GitHub stars
- Developer tools

Lets an AI agent drive Chrome or Chromium through a fast browser automation CLI
- Open source
- 5 GitHub stars
- Browser automation

Guides an agent to write, review and validate SKILL.md skills against the Agent Skills
- Open source
- 5 GitHub stars
- Developer tools

Write, place, migrate and review AGENTS.md instruction files for coding agents
- Open source
- 5 GitHub stars
- Developer tools

Guides an agent to set up and operate Vercel AI Gateway for model routing and spend
- Open source
- 5 GitHub stars
- AI models and LLM tooling




