Variants assistant-ui-variants
Compares UI design options inside the running app.
Works in Claude, ChatGPT, Codex and more
- Our test
- —
- not tested yet
- GitHub stars
- 14k
- assistant-ui/assistant-ui
- Added by
- 0
- members
- Updated
- Dec 6
- commit 6a70f5b
- Content
- 1 file
- no scripts · 1 KB
- License
- MIT
- free to use
What our test found
Not tested yet. Our model tries every skill on a realistic request and scores the result, the most popular skills first. Until then, the safety checks on the right still apply.
name: variants description: Compares UI design options inside the running app.
import { Variant, Variants } from "@assistant-ui/variants";
<Variants id="pricing-plans" label="Plans" default="current">
<Variant id="current" label="Current"><PlansCurrent /></Variant>
<Variant id="table" label="Comparison table"><PlansTable /></Variant>
</Variants>;- Group ids are unique across the codebase. A nested
<Variants>is a dependent decision. ?variants=canvasshows every option side by side.
The sidebar copies commands the user pastes back:
/variants choose group:id … [-- notes: …]: keep each chosen option in place of its<Variants>block./variants apply [group…]: apply notes without choosing./variants connect: take requests from.variants/inbox.jsonl({ id, kind: "choose" | "apply", pairs, notes }) instead, append{ id, re, type: "ack" | "status" | "done" }events tooutbox.jsonl, and touchagent.jsonevery 5 seconds while connected. A request without adoneevent is unhandled./variants disconnectremovesagent.json.
Notes are change requests: group[:id] "text" (on: hint) entries after -- notes:, or {/* @variants-note … text="<base64url JSON { note, hint }>" */} as the first child of their <Variant>.
Ship nothing with an @assistant-ui/variants import or @variants-note left in it. allowInProduction bypasses this rule.