Launch priceOne payment

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.

PropTypeNotes
eventsrequiredTimelineEvent[]—
livebooleanFollow new events down, and offer "Jump to latest" once you scroll away.
filtersbooleanShow the filter tabs. Default true.
filterTimelineFilter—
defaultFilterTimelineFilter—
onFilterChange(filter: TimelineFilter) => void—
emptyReact.ReactNodeShown when there is nothing to list.
listClassNamestringClasses for the scrolling list, to give it a height.
runTimelineRunA 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") => voidTold after an input or output is copied.
redact(value: unknown, part: "input" | "output", event: TimelineEvent) => unknownRuns over inputs and outputs before they are shown or copied: hide keys, tokens, emails.
selectedIdstringThe step being inspected: marked, and opened.
onSelect(event: TimelineEvent) => void—

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Layro foundations, installed alongside it

layro-themebuttontabs

Lifetime 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 components