uimaxxer

Agent status

One glyph for what an agent is doing: a flatline at rest, thoughts in orbit, a live waveform while it works, a question when it needs you, a check, a cross. Its three strokes travel between them, so a change of state is one motion, never an icon swap.

npx shadcn@latest add https://uimaxxer.com/r/agent-status.json
PasskeysAgents

Agents

IdleNo run yetThinkingReading the failing testWorkingEditing billing/invoice.tsWaiting for youWants to run pnpm db:resetDoneMerged #482 into mainFailedHealth check timed out

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.
toward{ state; amount }Hold the glyph part-way to another state, amount 0 to 1, for example under a finger. Remove it and the strokes spring the rest of the way.

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.
  • The demo's state track is a slider: arrows step through states, Home and End jump to the ends.