# Agent Run Console

> An animated agent run console for React and shadcn, with a runs list, live steps and a step inspector.

The screen a team watches agent runs on: a runs list, the selected run with its status badge, rolling totals, Thinking Bar and Agent Run rail, and an inspector that follows the open step. Steps rise once as they start, tool calls trace a band of light while they run, and when the last step settles the rail folds into "7 steps · 45s" and the result rises in under it.

- Tier: Eased Pro
- Interaction: Loading
- Page: https://eased.dev/components/agent-run-console
- Installs: motion, @base-ui/react

## Install

Agent Run Console ships with Eased Pro (https://eased.dev/#pricing). Members add the `@eased-pro` registry with their token (https://eased.dev/account), then run:

```bash
npx shadcn add @eased-pro/agent-run-console
```

The screen a team watches agent runs on: a list of runs, the selected run in the middle (header, totals, Thinking Bar and Agent Run rail, then the result) and an inspector that follows the step the run is on. Built on Agent Run, Thinking Bar, Tool Call Row, Number Roll and Select.

## 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](/components/agent-run) on its own, inline with the message.
- Background work the person is not watching: dock a [Live Activity Pill](/components/activity-pill) instead.

## Usage

```tsx example.tsx
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. |

## 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.

## 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 `nav` of buttons with a roving tabindex and `aria-current` on 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.

## Related

- [Agent Run](/components/agent-run): the rail on its own, for a run inside a chat.
- [Tool Call Row](/components/tool-call-row): the rows under each step.
- [Thinking Bar](/components/thinking-bar): the reasoning row above the rail (`variant="row"`).
- [Live Activity Pill](/components/activity-pill): the same run, glanced at from another screen.
