Run timeline
An agent run you can scrub. Drag the playhead and its tool calls re-render live: rows appear, stream and land going forward, fold away going back, with the step and the spend in step.
npx shadcn@latest add @uimaxxer/run-timelinePasskeysRun #482
Run #482
Read billing/invoice.ts and 3 callers
Step 0 of 10
$0.00
2:03 of 4:12
No tool calls yet
Run timeline is a Pro component
The demo and the docs are free. The source comes with Pro, through this page, the shadcn CLI and the MCP.
Usage
import { RunTimeline } from "@/components/ui/run-timeline"
<RunTimeline events={run.events} duration={run.seconds} />Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| events | RunEvent[] | { at (seconds), kind: read | think | edit | run | ask, label, cost (cumulative $), files, tool }. | |
| events[].tool | { name, args, result?, error?, running? } | The call a step made. Its arguments stream over the first half of the step; it lands when the step ends. | |
| rows | number | 3 | How many of the latest tool calls show under the bar. |
| duration | number | Run length in seconds. | |
| defaultTime | number | Where the playhead starts. Defaults to the end. | |
| onTimeChange | (t: number) => void | Every frame while scrubbing or replaying. |
Keyboard
- ← →
- One second (Shift: ten)
- [ ]
- Previous or next step
- Home / End
- Start or end
- Space
- Replay or pause
Accessibility
- role=slider with aria-valuetext that reads the time, the step and the spend.
- The readout re-renders only when a second, a cent, the step or a streamed character changes, never per pointer event.
- Each call under the bar is a Tool call button; open any landed call to read its arguments and result.
- Under reduced motion a release stops dead and key jumps are instant.