uimaxxer

Transcript

A chat thread where the agent's work is drawn: plans you edit, live swarms, diffs, previews and tests. Drag a step's crew and the swarm it will start reshapes.

npx shadcn@latest add https://uimaxxer.com/r/transcript.json
PasskeysFix the duplicate Stripe charge
Tell the Captain what to build.

Usage

import { CaptainTranscript } from "@/components/ui/transcript"
import { fromUIMessages, toolOutputFor } from "@/components/ui/transcript-ai-sdk"

const { messages, status, addToolOutput } = useChat()

<div style={{ height: 600 }}>
  <CaptainTranscript
    messages={fromUIMessages(messages, { status })}
    onAction={(e) => { const out = toolOutputFor(e, messages); if (out) addToolOutput(out) }}
  />
</div>

Props

PropTypeDefaultWhat it does
messagesMessage[]The thread, controlled. Give a message a new object only when it changes.
defaultMessagesMessage[]Uncontrolled start; add more with the ref's append and update.
onAction(e: ActionEvent) => voidApprove, edit, answer, pick, accept, run, ship. Plan edits arrive as they happen.
renderers{ tool?, diff?, stream? }Swap the pieces inside blocks, e.g. Pro ToolCall, DiffReview and StreamingText. Defaults are plain and free.
blocksRecord<string, ComponentType<BlockProps>>Your own block kinds (x-*), or replace a built-in one.
namestring"Captain"The agent's name on its turns.
widthnumber760Reading column in px.
theme"light" | "dark" | "system"Leave it out to follow the page.

Keyboard

PageDown / PageUp
Next and previous message
1 to 9
Answer a waiting block
Enter
Its main action
Arrows on a crew
Fewer or more agents
Arrows on a grip
Move a step

Accessibility

  • role=feed of articles, virtualised, with a polite log that reads state changes and finished replies, never word by word.
  • Every crew is a slider and every grip moves its step from the keyboard.
  • The before and after split is a slider with its value in words.