When to use
- The runs page of an agent product: a team's runs down the side, one open in the middle, watched from the first thought to what it produced.
- Operators who need the cost and the clock beside the steps, and a step's input, output and tokens without leaving the page.
- Runs that stream their steps as they happen; each one rises onto the rail when it starts.
When not to use
- A run inside a chat reply: use Agent Run on its own, inline with the message.
- Background work the person is not watching: dock a Live Activity Pill instead.
Installation
pnpm dlx shadcn add @eased-pro/agent-run-consolenpx shadcn add @eased-pro/agent-run-consoleyarn dlx shadcn add @eased-pro/agent-run-consolebunx --bun shadcn add @eased-pro/agent-run-consoleInstalls from the @eased-pro registry and MCP server. · Already have Pro? Sign in.
Install the dependencies
pnpm add motion @base-ui/reactnpm install motion @base-ui/reactyarn add motion @base-ui/reactbun add motion @base-ui/reactAdd the Eased pieces it builds on
Copy each item’s files the same way, or install them with the CLI:
Add the files
- components/eased/agent-run-console/agent-run-console.tsx
Source is included with Eased Pro. Members download the files with the CLI command above, or through the MCP server.
Keep the folder layout
The files import each other by relative path (
../lib/motion), so keep each one at the path shown, undercomponents/eased/.
Usage
import { AgentRunConsole, type ConsoleRun } from "@/components/eased/agent-run-console/agent-run-console";export function RunsPage({ runs }: { runs: ConsoleRun[] }) { return <AgentRunConsole className="h-dvh" runs={runs} now={Date.now()} />;}// One run. Append a step as it starts and settle it with `updateStep` from thinking-core.const run: ConsoleRun = { id: "run_8f3k2", title: "EU AI Act brief for legal", model: "Atlas 3 Pro", startedBy: "Priya Raman", startedAt, thinking: { status: "done", startedAt, endedAt, reasoning }, steps: [{ id: "search", label: "Searching the web", status: "active", startedAt, tools: [{ id: "s1", name: "web_search", label: "Searching", state: "running", input }] }], usage: { inputTokens: 6_210, outputTokens: 480, cost: 0.04 }, onStop: () => cancel("run_8f3k2"),};A run is running from the moment it has a startedAt, a thinking or a step, and ends only when you say so: pass status, a result (completed) or an error (failed). Set status: "stopped" after Stop. queued is a run with none of those yet.
API reference
AgentRunConsole
| Prop | Type | Default | Description |
|---|---|---|---|
runs | ConsoleRun[] | The list, newest first. The selected one fills the console. | |
selectedId / defaultSelectedId / onSelectRun | string / string / (id) => void | first run | Which run is open. |
foldWhenDone | boolean | true | Fold the rail into "7 steps · 45s" once a run completes. |
now | number | Epoch ms for the list's relative times ("2 hr ago"). Without it the list shows start times. | |
currency / locale | string | "USD" / "en-US" | |
className | string | "" | Appended to the root. Give it a height (h-dvh, flex-1); the columns scroll inside it. |
ConsoleRun
| Field | Type | Description |
|---|---|---|
id / title | string | The run and the task, as the person wrote it. |
model / startedBy | string | The meta line under the title, with the start time. |
startedAt | number | Epoch ms. Elapsed and the rail's settled total count from here. |
steps | ConsoleStep[] | Agent Run's steps plus tokens: { input, output } for the inspector. |
thinking | RunThinking | { status, startedAt, endedAt, lines, reasoning } for the Thinking Bar row above the rail. |
usage | RunUsage | { inputTokens, outputTokens, cost? }. Without it the Tokens and Cost cells are left out. |
status | RunStatus | Overrides the derived status: queued, running, completed, failed or stopped. |
result | RunResult | { title, detail, excerpt, icon, actionLabel, onAction }. Marks the run completed and shows the row under the rail. |
error | string | Marks the run failed and shows why, where the result would be. |
onStop / onRestart / restartLabel | Cancel while queued, Stop while running, the restart button (default "Run again") once settled. |
Keyboard
| Key | Action |
|---|---|
Tab | Moves from the open run in the list to the run's action, the thinking row, the rail's header, each step, each expandable tool call and the result's action. The list is one tab stop. |
↑ / ↓, Home / End | Move between runs and open them. |
Enter / Space | Opens a run, toggles the reasoning, the rail or a tool call, or sends a step to the inspector. |
Accessibility
- The runs are a
navof buttons with a roving tabindex andaria-currenton the open one; each run's status is a shape as well as a colour (dot, check, cross, bar) and is spoken after its title. The totals are a description list, so each cell reads as "Elapsed, 45s". - The run has one live region: it announces the step the run is on, then "Completed: 7 steps in 45s", "Stopped after 3 steps" or "Failed: …". The rail and its tool rows are told not to announce, so nothing is said twice.
- The scroll region follows the newest step until the person scrolls up, and lets go the moment they do.
Motion
On mount the run's header, cells and body rise 4px in turn (stagger.line, once). From then on everything is state-driven: the status badge swaps with y + blur, the cells roll on the snappy spring as the clock ticks and steps land, each step rises once onto the rail as it starts, a running tool call traces a band of light down its rule, a failed one shakes once, and the settling step draws its check. The inspector swaps to the open step as the run moves. When the last step settles the rail folds on Auto Height into "7 steps · 45s", both numbers rolling, and the result row rises in under it; a run that is already over when it mounts starts folded. Switching runs glides the list's bar and cross-fades the run in place; the entrance never replays. Reduced motion: fades only, nothing rolls or slides.
Notes for AI
Pick this for a runs page, where a team watches agents work; give every run a stable id, pass the full steps array on every update (append on start, updateStep on settle) and the running totals in usage, and let the console derive the status. End a run by passing result or error, or status for stopped. Give startedAt so the elapsed counter and the settled total agree.
Do not render another timer, spinner or step count beside it, and do not wrap it in a card: it already counts, and it is the page. To use the rail without the list and inspector, compose Agent Run with counts={false} yourself.
Layout
Three columns from 64rem: the runs list (15rem), the run, and the inspector (18rem). Below 64rem the inspector folds away first, and with it step selection (tool calls still expand inline in the rail); below 40rem the list becomes a Select above the run, with the same status marks, and the run's title moves out of the header into the Select. Nothing scrolls sideways at 390px.
Related components
- AI Agent Steps Timeline: the rail on its own, for a run inside a chat.
- AI Tool Call Row: the rows under each step.
- AI Thinking Indicator: the reasoning row above the rail (
variant="row"). - Dynamic Island Activity Pill: the same run, glanced at from another screen.