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.
| Prop | Type | Notes |
|---|---|---|
status | SummaryStatus | — |
titlerequired | React.ReactNode | The outcome in a few words. |
summary | React.ReactNode | A short account. A string is read as Markdown. |
error | React.ReactNode | Why it failed. Shown when `status` is `failed`. |
stats | RunStats | — |
changes | RunChange[] | — |
outputs | RunOutput[] | — |
onOpenOutput | (output: RunOutput) => void | Called when an output without an `href` is opened. |
onRerun | () => void | — |
onFeedback | (value: MessageFeedback, reason?: string) => void | Adds the thumbs. |
copyText | string | What Copy puts on the clipboard. Defaults to the summary when it is a string. |
currency | string | ISO 4217 code for the cost. Default "USD". |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLayro foundations, installed alongside it
layro-themebuttonmessage-actionsstreaming-responsetooltipLifetime 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 componentsAgent 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
Run Replay
PaidStep through a recorded run: input, output and state at every event.
Included with lifetime access
Agent Permissions
PaidWhat an agent asked for, what it is allowed, and the change before you save.
Included with lifetime access