Skip to content
caliper ui docs

Pro

Agent status

One line inside a reply that says what the agent is doing right now, thinking, searching, reading or writing, with what it is working on and a running clock, then settles into how long it took.

Pro
pnpm dlx shadcn@latest add @caliper/agent-status

Billing assistant

Asked by Dev Patel · Halden workspace

What would 20 seats cost on the annual plan?

ThinkingThinking
Installs components/ui/agent-status.tsxDepends on lucide-reactMotion shared motion tokens

When to use

Use it for

  • Inside an assistant reply while the answer is being made.
  • Any long agent step where people should see progress without opening a log.

Skip it when

  • A full record of every step; use agent activity, which folds the steps away.
  • Waits with no phases to report; use agent loading.

Decisions

Why it is built this way, so you know what to keep when you change your copy.

Behaviour

Phases come from your agent, not a timer
The line changes only when you pass a new phase, so it never claims to be reading while the model is still thinking. Rotating words that do not match the work erode trust fast.
Announce the phase, not the clock
Screen readers hear each new phase once. The seconds tick visually but stay out of the live region, so the line is not read out every second.

Styling

Shimmer while working, plain when settled
The phase word shimmers only while something is happening; finished and stopped turns read in muted text with the time it took.

Usage

Pass what the phase is about
A query or the page being read in detail is what makes the line worth reading; on its own a phase word says little.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/agent-status

Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

Usage

Import it from your copy of the source. The example behind the preview comes with the source. It is built from AgentStatus and elapsedLabel.

example.tsx
import { AgentStatus, elapsedLabel } from "@/components/ui/agent-status"

The worked example comes with Pro

The 55-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

AgentStatus

component
PropTypeDefaultDescription
phase *AgentPhase—
detailReactNode—What the phase is about: the query, the page being read.
startedAtnumber—When the turn began (ms since epoch); shows a running clock.
endedAtnumber—When it finished; freezes the clock. Defaults to the moment the phase stopped working.
labelstring—Overrides the phase word, e.g. "Comparing three plans".
actionReactNode—Something to do beside it, such as a button that opens the full activity.
classNamestring—

elapsedLabel

component

No props of its own; it accepts the native props of its root element.

Accessibility

It exposes status semantics, with aria-hidden kept in step with state. Changes that matter are announced through a live region.

No custom key handling; Tab and the native activation keys do the work.

Motion

Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.

All Agent media examples