Launch priceOne payment

Run Summary

So nobody has to read the whole thread to learn how it went. The outcome as a sentence, the changes it made in the world as a list to check, the files and links it left behind, and time, steps, tokens and cost that count up once. It also covers a failed, stopped or partly skipped run.

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

The decision inside it

"What changed" is its own list

The summary is the agent's account; the changes are the facts. Keeping them apart lets someone check the emails sent and records touched without trusting the prose.

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 Summary for this.
Install it: npx shadcn@latest add @layro/run-summary
Import it from @/components/ui/run-summary.
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
statusSummaryStatus—
titlerequiredReact.ReactNodeThe outcome in a few words.
summaryReact.ReactNodeA short account. A string is read as Markdown.
errorReact.ReactNodeWhy it failed. Shown when `status` is `failed`.
statsRunStats—
changesRunChange[]—
outputsRunOutput[]—
onOpenOutput(output: RunOutput) => voidCalled when an output without an `href` is opened.
onRerun() => void—
onFeedback(value: MessageFeedback, reason?: string) => voidAdds the thumbs.
copyTextstringWhat Copy puts on the clipboard. Defaults to the summary when it is a string.
currencystringISO 4217 code for the cost. Default "USD".

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Layro foundations, installed alongside it

layro-themebuttonmessage-actionsstreaming-responsetooltip

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