Captain UI

Agent status

One glyph for what an agent is doing. Its strokes travel between idle, thinking, working, waiting, done and failed, so a change of state reads as one motion, never an icon swap.

npx shadcn@latest add https://captain-ui.vercel.app/r/agent-status.json
  • AtlasEditing billing/invoice.tsWorking
  • JunoWants to run pnpm db:resetWaiting for you
  • RookPlanning tests for #482Thinking
  • VegaDeploy health check timed outFailed

Usage

import { AgentStatus } from "@/components/ui/agent-status"

<AgentStatus state={run.state} />

Props

PropTypeDefaultWhat it does
state"idle" | "thinking" | "working" | "waiting" | "done" | "failed"Change it any time, even mid-morph: the strokes retarget from where they are.
labelstring | nullOverrides the quiet label. null hides it; the state is still announced.
sizenumber18Glyph size in px.

Accessibility

  • role=status with the state as its accessible name, so changes are announced politely.
  • Colour is never the only signal: every state has its own shape.
  • Under reduced motion the shape changes at once and nothing spins or bobs.