Launch priceOne payment

Run Replay

A finished run played back one event at a time, by button, arrow key or the strip along the top. Each event shows what went in, what came out and what the run knew, with changed state keys marked. Switch attempts, and resume from a checkpoint or run again through your backend, kept apart from playback.

Ready for AI tools one file typed props installs by name prompt included

The decision inside it

Playing back and running again are different buttons

Playback moves through the record and is always safe. Running again executes steps for real and can repeat side effects, so it asks first, waits for your backend and never reports success itself.

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 Run Replay for this.
Install it: npx shadcn@latest add @layro/run-replay
Import it from @/components/ui/run-replay.
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
eventsrequiredRunEvent[]—
runIdstring—
runNameReact.ReactNode—
attemptsRunAttempt[]—
attemptIdstring—
onAttemptChange(attemptId: string) => void—
selectedEventIdstring—
defaultSelectedEventIdstring—
onEventSelect(event: RunEvent) => void—
onReplay() => void | Promise<void>Adds "Run again". Executes the run again on your backend: may repeat side effects.
onResumeFromCheckpoint(checkpointId: string, event: RunEvent) => void | Promise<void>Adds "Resume from here" on events with a checkpoint.
isActionPendingbooleanAn action is in flight, if you track it yourself.
actionErrorReact.ReactNodeAn error from your side, shown under the controls.
playSpeednumberMilliseconds per event when playing. Default 900.

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Layro foundations, installed alongside it

layro-themebadgebuttonselectstatetabs

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