Agent runs monitor
A React block (a whole screen) in Beamline's AI workspace app.
Every run of your agents in one place: success rate, run time, tokens and spend; the last runs as a strip of status blocks; a live table where running rows count up their time and cost; and a run's detail with its trace (thinking, each tool call with input and output, the answer or the error) and Retry or Cancel.
Use it for
- Operating AI agents in production: which runs failed and why, what they cost, and retrying them.
- Any background job system whose runs have steps, durations and costs.
Not for
- Talking to one agent (agent-workspace).
- A few background tasks inside a product (task-rows).
- Service uptime (tracker on its own).
Anatomy
- header: title, the period (1h · 24h · 7d), feed state
- figures: runs, success rate, p95 run time and spend for the period, each with its trend
- recent runs: a strip of the last runs as status blocks (succeeded, failed, running), each naming its run on hover
- filters: status chips with counts and the agent filter in the table
- runs: status in word and glyph, agent, trigger, started, run time (counting while running), steps, tokens, cost (rising while running)
- run sheet: status, agent, model, trigger, timings and cost; the trace in order (thinking, tool calls that open to their exact input and output, the answer); an error with its step and message; Retry, or Cancel while running
Variants
- 0: room: figures two by two under 48rem; the sheet takes the full width on a phone
States
- loading (figures, strip and table in their shapes)
- no runs in the period (what shows here once an agent runs)
- running (time and cost count up; new steps join the trace)
- succeeded, failed (step and message), cancelled, queued
- retrying (a new run is queued from the old one)
- cost or tokens unknown (—)
Keyboard
- Tab: period, status chips, the table
- Table: arrows between cells, Enter opens the run
- Sheet: tool calls are disclosure buttons; Retry and Cancel are buttons; Esc closes and focus returns to the row
Motion
Running rows count their time once a second and their cost rolls; a run that ends swaps its spinner for a check or a cross; new trace steps rise into place; figures roll when the period changes. A screen with nothing running is still.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
runs (required) | AgentRunRecord[] | — | Agent execution records shown in the monitor. Required. |
period / defaultPeriod / onPeriodChange | "1h" | "24h" | "7d" | — | period: Controlled reporting period; omit to use defaultPeriod. defaultPeriod: Initial reporting period when uncontrolled. Defaults to "24h". onPeriodChange: Reports reporting period after a change; no callback by default. |
previous | { runs, successRate, p95, spend } | — | The period before, for the figures' change. |
loading | boolean | — | Shows the loading state while data or an operation is pending. Defaults to false. |
onRetry | (() => void | Promise<unknown>) | ((runId: string) => void | Promise<unknown>) | — | Runs the retry action for the failed operation; no handler by default. |
onCancel | (runId: string) => void | Promise<unknown> | — | Runs the cancellation action; no handler by default. |
currency | string | "USD" | ISO currency code used to format monetary values. Defaults to "USD". |
className / classNames / style / ref | string / AgentRunsClassNames / CSSProperties / Ref<HTMLElement> | — | className: Classes on the documented visual root; no override by default. classNames: Classes for the named visual parts; no part overrides by default. style: Inline styles on the documented visual root; no inline overrides by default. ref: Receives the documented root element; no ref by default. |
period | AgentRunsPeriod | — | Controlled reporting period; omit to use defaultPeriod. |
defaultPeriod | AgentRunsPeriod | — | Initial reporting period when uncontrolled. Defaults to "24h". |
onPeriodChange | ((period: AgentRunsPeriod) => void) | — | Reports reporting period after a change; no callback by default. |
title | string | — | Heading shown above the content. Defaults to "Agent runs". |
className | string | — | Classes on the documented visual root; no override by default. |
classNames | Partial<Record<"root" | "header" | "table" | "strip" | "trace" | "sheet" | "figures" | … | — | Classes for the named visual parts; no part overrides by default. |
style | CSSProperties | — | Inline styles on the documented visual root; no inline overrides by default. |
ref | Ref<HTMLElement> | — | Receives the documented root element; no ref by default. |
onRetryRun | ((runId: string) => void | Promise<unknown>) | — | Retry execution of one run. The legacy one-argument onRetry is still supported. |
sort | ListSort | — | |
manual | boolean | — | Server owns ordering, filters, search and page slicing. Default false. |
total | number | null | — | Deprecated: Use rowCount. Canonical rowCount wins, including null. |
error | ReactNode | Error | — | Errors retain the last completed rows. Error objects are rendered by their message. |
onQueryChange | ((query: string) => void) | — | |
page | number | — | One-based requested page. Default 1. |
filters | ListFilters | — | |
query | string | — | |
defaultSort | ListSort | — | |
onSortChange | ((sort: ListSort) => void) | — | |
defaultFilters | ListFilters | — | |
onFiltersChange | ((filters: ListFilters) => void) | — | |
defaultQuery | string | — | |
selected | string[] | — | Stable row IDs, retained across server pages. |
defaultSelected | string[] | — | |
onSelectedChange | ((ids: string[]) => void) | — | |
selectable | boolean | — | |
emptyLabel | string | — | |
allowSelectAllMatching | boolean | — | |
onSelectAllMatching | ((scope: { rowCount: number; query: string; filters: ListFilters; }) => void) | — | |
pagination | boolean | — | Enable page controls explicitly. Page-related props also enable them, unless onEndReached is supplied. |
defaultPage | number | — | |
onPageChange | ((page: number) => void) | — | |
pageSize | number | — | Positive rows per page. Default 25. |
defaultPageSize | number | — | |
onPageSizeChange | ((pageSize: number) => void) | — | |
rowCount | number | null | — | Total matching rows on the server. null means unknown. Local grids calculate it before slicing. |
onEndReached | (() => void | Promise<unknown>) | — | Append mode: fetch another batch. The app appends it to the supplied rows. |
hasMore | boolean | — | Whether another batch exists; defaults to true with onEndReached. False stops requests. |
loadingMore | boolean | — | An append request is pending; retain every loaded row. |
Built from
- metric-card
- tracker
- segmented-control
- chip-group
- data-grid
- sheet
- badge
- tool-call
- reasoning
- response
- code-block
- button
- empty-state
- slot-text
- spinner
Dependencies
lucide-react, @tanstack/react-virtual
Import
import { AgentRuns } from "@beamline/agent-runs";
Get it
Agent runs monitor is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Get Beamline · Connect your agent
More in AI workspace
- AI agent workspace: Threads, a conversation that opens on the thread's earlier turns (each with its trace, the tools the agent called, a cited answer and any table it…
- Agent monitor: Agents in production and on test. Monitor shows every agent or one over 24 hours, 7 or 14 days: runs, tokens, estimated cost and average run time counted…
- Conversation history: Past conversations with an assistant, ready to pick up again: the list by day with bookmarks and unsent drafts, a search through every message that…
- Knowledge base manager: What your assistant knows and whether it is fresh: sources with live sync status (syncing with progress, out of date, failed with the reason and Retry)…
- Reading library: A read-it-later library: saved views that are live filters (a query with every unreadable part named, the number that matches now, saved with a name; a…
- Artifact workbench: Where the things an assistant makes are checked before they leave: every document, piece of code, small app and data result from a conversation, each…
- AI image studio: Write a prompt, pick a shape, a style and how many, and watch the variations generate side by side; each one opens full screen and can be upscaled or…
- Voice agent: A voice agent in three layouts on one session: a workspace with the agent's orb large on a stage (the line being said shows under it, questions to ask…
- Model playground: Try one prompt on up to three models side by side: pick each model with its price and speed in view, set the system prompt, temperature and length once…
- Model inspector: A design model's objects without needing the 3D view: the model tree, where objects with the same name are told apart by id and path; the selected…
- Model issues: Issues pinned to the objects of a design model. The queue says the scope beside every count (open in the project, on the loaded models, on this version)…
- Agent builder: An agent's configuration beside an assistant that proposes tools. Ask for what the agent should do and the assistant's proposal lists each tool with why…
- Workflow composer: A workflow drafted from a sentence and finished by hand. The prompt drafts steps that arrive one by one on the graph (a draft cut short keeps what came…
- Data binding: Bind an object's properties to a view model. Each property says whether it is bound, incomplete or mismatched. A binding takes its source from the…