Agent Monitor
ProA live board of the agents you have running: what each one is doing right now, its tasks, a trace of its tool calls and the sub-agents it started.
Refresh the pricing page
Tasks
- DoneRead the current page
- In progressMove the plans to the new cards
- Not startedRun the checks
Activity
- Editing plan-card.tsx12s
- Reading plans.ts48s
- Searching "PlanCard"1m
Try it yourself. This one is live, and its code is right below.
Refresh the pricing page
koala-site
Tasks
0/4- In progressRead the current page
- Not startedSplit the work into two agents
- Not startedMove the plans to the new cards
- Not startedRun the checks
Last minute
Log
- Reading pricing/page.tsx
Installation#
Usage#
The monitor draws what you give it and fetches nothing, so it works with any agent runtime. Keep your runs in state, from polling, a socket or a stream, and map each one to a row and a panel.
The preview is yours to explore. Its code comes with a Pro license, paid once and used in every project.
Have a license? Unlock it here
Anatomy#
import {
AgentMonitor,
AgentMonitorSummary,
AgentMonitorCount,
AgentList,
AgentFlow,
AgentBoard,
AgentBoardColumn,
AgentGroup,
AgentGroupLabel,
AgentRow,
AgentRowHead,
AgentRowFoot,
AgentParent,
AgentName,
AgentElapsed,
AgentActivity,
AgentTrace,
AgentDetail,
AgentDetailHeader,
AgentDetailHeading,
AgentDetailTitle,
AgentDetailDescription,
AgentStatusBadge,
AgentSection,
AgentSectionTitle,
AgentProgress,
AgentTasks,
AgentTraceLegend,
AgentLog,
AgentLogItem,
AgentEmpty,
} from "@/components/ui/agent-monitor"Diagram#
AgentFlow replaces the list with a tree of who started whom. First-level agents sit side by side, deeper ones hang below their parent, and any branch folds to a count.
Board#
AgentBoard sorts the same agents into columns by state, so the work that needs you is the first thing you see.
States#
A row carries one of five states. Only a working agent pings and only one that needs you blinks, so the board stays calm and the eye goes where it is needed.
API reference#
AgentMonitor
The board and the context every part reads, built on Radix Tabs: arrow keys walk the rows and each row owns a detail panel. Takes value, defaultValue and onValueChange. Every part accepts className, merged last.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "card" | "plain" | "card" | A framed surface, or no chrome for a full page. |
| density | "comfortable" | "compact" | - | Row and panel spacing. Reads DensityProvider when unset. |
AgentMonitorCount
One figure in AgentMonitorSummary. Children replace the status label.
| Prop | Type | Default | Description |
|---|---|---|---|
| status* | "working" | "waiting" | "idle" | "done" | "failed" | - | Sets the dot and the default label. |
| count* | number | - | The figure, in tabular numerals. |
AgentRow
One agent in the list, and the tab that opens its AgentDetail. Compose AgentRowHead, AgentActivity and AgentTrace inside it.
| Prop | Type | Default | Description |
|---|---|---|---|
| value* | string | - | Matches the AgentDetail it opens. |
| status | "working" | "waiting" | "idle" | "done" | "failed" | "idle" | Drives the mark: a pinging dot, a blinking dot, a check or a warning. |
| depth | number | 0 | Indents a sub-agent under the agent that started it. |
| statusLabel | string | - | The status as read by a screen reader. Use it to translate. |
| layout | "row" | "card" | "row" | A line for AgentList, or a lifted card for AgentBoard and AgentFlow. |
AgentFlow
A diagram of who started whom, used in place of AgentList. It lays out the tree itself and draws the connectors, coloured by the state of the agent they lead to. A new connector draws itself from its parent. Each parent with sub-agents carries one fold chip on its connector, a caret and the count: the caret turns when the branch folds, and its cards tuck back into the parent from the bottom up while their connectors pull back. Forwards Radix Tabs List props.
| Prop | Type | Default | Description |
|---|---|---|---|
| nodes* | readonly AgentFlowNode[] | - | { id, parentId?, status }. A node with no parent is a root. |
| renderNode* | (node: AgentFlowPlacedNode) => ReactNode | - | Draws a node, usually a card AgentRow with h-full. Done and idle agents get a shorter slot and node.quiet, so draw only the head for them. |
| hub | ReactNode | - | A round node above the tree that every root hangs from, such as the person running the agents. |
| nodes[].compact | boolean | - | Gives a node the short slot. Use it with AgentFlowGroup to group agents under a project. |
| collapsed | readonly string[] | - | Ids of folded branches, when you control them. |
| defaultCollapsed | readonly string[] | [] | Ids folded on the first render. |
| onCollapsedChange | (collapsed: string[]) => void | - | A branch was folded or opened. |
| animated | boolean | true | Turns the fold, draw and retract animations off. They can always be interrupted: folding again reverses a card from where it is. |
| foldLabel | (node, folded, count) => string | - | Names the fold button for a screen reader. Use it to translate. |
AgentBoard
A kanban board of AgentBoardColumn, used in place of AgentList. When an agent changes state its card travels to the new column. Forwards Radix Tabs List props.
AgentBoardColumn
One column of the board. Children are card AgentRows.
| Prop | Type | Default | Description |
|---|---|---|---|
| status* | "working" | "waiting" | "idle" | "done" | "failed" | - | Sets the dot and the default title. |
| count | number | - | Shown at the end of the column head. |
| title | ReactNode | - | Replaces the status label. |
AgentActivity
The one line that says what the agent is on. When the text changes the old line leaves and the new one arrives in place.
| Prop | Type | Default | Description |
|---|---|---|---|
| children* | string | - | The current activity. |
AgentElapsed
A running timer in tabular numerals. All timers on a page share one clock.
| Prop | Type | Default | Description |
|---|---|---|---|
| since* | number | - | Start time in epoch milliseconds. |
| until | number | - | Stops the timer at this time. |
AgentProgress
Tasks finished, as pips and a count.
| Prop | Type | Default | Description |
|---|---|---|---|
| done* | number | - | Finished tasks. |
| total* | number | - | All tasks. One pip each. |
AgentTrace
A strip of the agent's tool calls over time, coloured by kind. Open calls grow until they get an end.
| Prop | Type | Default | Description |
|---|---|---|---|
| spans* | readonly AgentSpan[] | - | { id, kind, start, end?, failed? }, with times in epoch milliseconds. |
| window | number | 600000 | How far back the strip reaches, in milliseconds. |
| size | "sm" | "md" | "sm" | The thin strip for a row, or the taller one for a panel. |
AgentTraceLegend
Names the colours of AgentTrace.
| Prop | Type | Default | Description |
|---|---|---|---|
| labels | Partial<Record<AgentSpanKind, string>> | - | Replaces any label, to translate or rename. |
AgentStatusBadge
The status as a Badge. Children replace the label.
| Prop | Type | Default | Description |
|---|---|---|---|
| status* | "working" | "waiting" | "idle" | "done" | "failed" | - | Sets the colour and the default label. |
AgentTasks
The agent's to-dos, drawn with the steps of Plan.
| Prop | Type | Default | Description |
|---|---|---|---|
| tasks* | readonly AgentTask[] | - | { id, title, status }, with the status of a PlanStep. |
AgentLogItem
One line of AgentLog.
| Prop | Type | Default | Description |
|---|---|---|---|
| kind | "read" | "edit" | "run" | "search" | "agent" | "other" | "other" | The colour of its dot, the same as in the trace. |
| failed | boolean | false | Marks the call as failed. |
| time | ReactNode | - | Shown at the end of the line. |