Agent run screen
An agent run you can supervise: steps with evidence and time, approval gates that state the consequence, a live log, pause and stop.
State
When to use
- Agents that act in other apps on someone's behalf.
- Some steps cannot be undone.
When not to use
- Chat answers with no actions; use the assistant transcript.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/agent-run-screen
Adds its 8 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.
API reference
AgentRunScreen
12 props
PropTypeDefaultDescription
title *string—
descriptionstring—
steps *readonly AgentRunStep[]—
log *readonly { time: string; tool: string; text: string; }[]—
metersreadonly { label: string; value: string; }[]—e.g. [{ label: "Cost so far", value: "$0.18" }].
pausedbooleanfalse
onPause((paused: boolean) => void)—
onStop(() => void)—
embeddedbooleanfalseInside a split pane next to a list: the title is an h3, there is no page padding and steps and log stack in one column.
autoFocusGateboolean!embeddedMove focus to an approval gate when one opens. On by default; off when embedded, so choosing a run in a list keeps focus on the list.
statusReactNode—Shown before the title in the heading row, e.g. a status badge.
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes group, alert and log semantics, with aria-hidden, aria-label, aria-pressed and aria-live kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/agent-run-screen.mdThe index of every part is at /llms.txt.