# Ag UI

> Ag UI is an open-source agent skill for developer tools. Lets an agent stream runs, tool calls and shared state to user-facing apps over AG-UI 1.0. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ScaleDockHQ/better-supabase/tree/main/.agents/skills/ag-ui
- **Repository:** https://github.com/scaledockhq/better-supabase
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** ag-ui
- **Collection:** https://github.com/ScaleDockHQ/better-supabase
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/ag-ui)
- [License: MIT](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/ag-ui)

## Features

- **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

## Install

### Claude Code

This skill ships in the `better-supabase` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ScaleDockHQ/better-supabase
/plugin install better-supabase@better-supabase
```

Or copy only this skill to `~/.claude/skills/ag-ui`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/ag-ui` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/ag-ui` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ScaleDockHQ/better-supabase.git --path .agents/skills/ag-ui
```

Or copy the folder to `~/.gemini/skills/ag-ui` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ag-ui`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git
```

Then 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.

## 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.

## Alternatives

- [Developing genkit js](https://ai-powered.com/skills/developing-genkit-js): Developing genkit js is an open-source agent skill for developer tools.
- [A2a](https://ai-powered.com/skills/a2a-scaledockhq): A2a is an open-source agent skill for developer tools.
- [Axiom swiftui](https://ai-powered.com/skills/axiom-swiftui-charleswiltgen-2): Axiom swiftui is an open-source agent skill for developer tools.
- [Agents SDK](https://ai-powered.com/skills/agents-sdk): Agents SDK is an open-source agent skill for developer tools.
- [Cloudevents](https://ai-powered.com/skills/cloudevents): Cloudevents is an open-source agent skill for developer tools.
- [Developing genkit go](https://ai-powered.com/skills/developing-genkit-go): Developing genkit go is an open-source agent skill for developer tools.
- [Build si agent](https://ai-powered.com/skills/build-si-agent): Build si agent is an open-source agent skill for developer tools.
- [API integration](https://ai-powered.com/skills/api-integration): API integration is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/ag-ui
