Agent Timeline
Thinking, tool calls, messages, approvals and errors each get their own mark on one rail, so the shape of a run reads before its words do. Follow a run live, or open a finished one as an execution inspector: a run header with time, tokens and cost, steps nested under the step that called them, each with its input and output to copy, secrets redacted, and Retry on a failed step.
Ready for AI tools one file typed props installs by name prompt included
The decision inside it
It only stops following when you scroll up
New rows always push down. Treating any scroll as "the reader left" makes a busy run unstick itself, so only an upward move does it.
Installation
How you get it
Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.
Use Layro's Agent Timeline for this.
Install it: npx shadcn@latest add @layro/agent-timeline
Import it from @/components/ui/agent-timeline.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @layro registry with your CLI token: see the Namespaced tab.
API
“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.
Props
Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.
| Prop | Type | Notes |
|---|---|---|
eventsrequired | TimelineEvent[] | — |
live | boolean | Follow new events down, and offer "Jump to latest" once you scroll away. |
filters | boolean | Show the filter tabs. Default true. |
filter | TimelineFilter | — |
defaultFilter | TimelineFilter | — |
onFilterChange | (filter: TimelineFilter) => void | — |
empty | React.ReactNode | Shown when there is nothing to list. |
listClassName | string | Classes for the scrolling list, to give it a height. |
run | TimelineRun | A header for the run: id, name, status, time, tokens, cost. |
filterBy | "kind" | "status" | Filter tabs by kind of event (default) or by status. |
onRetryEvent | (event: TimelineEvent) => void | Promise<void> | Adds Retry to failed steps. May return a promise. |
onCopy | (event: TimelineEvent, part: "input" | "output") => void | Told after an input or output is copied. |
redact | (value: unknown, part: "input" | "output", event: TimelineEvent) => unknown | Runs over inputs and outputs before they are shown or copied: hide keys, tokens, emails. |
selectedId | string | The step being inspected: marked, and opened. |
onSelect | (event: TimelineEvent) => void | — |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLayro foundations, installed alongside it
layro-themebuttontabsLifetime access
Every component, and everything we ship next.
- All 112 components, source included
- The template, and everything released after you buy
- shadcn CLI or download — React 18/19, Tailwind v4
- One payment. No subscription.
More in AI Agent
All AI Agent componentsRun History
PaidEvery past run: how it ended, how long it took, what it cost.
Included with lifetime access
Run Summary
PaidThe receipt at the end: the outcome, what changed, what it made, the cost.
Included with lifetime access
Agent Settings
PaidSet up an agent: model, instructions, limits, and what each tool may do.
Included with lifetime access
Failure Recovery
PaidWhat failed in a run, every attempt so far, and only the safe ways out.
Included with lifetime access
Agent Execution Graph
PaidA run drawn as a graph: dependencies, parallel branches and the path it took.
Included with lifetime access
Trace Waterfall
PaidEvery call in a run on one time axis, with the slowest path marked.
Included with lifetime access