Run History
Leads with the three numbers that say whether an agent can be trusted with the next task — how often it finishes, how long it takes, what it spends — and a strip of recent runs where a failure shows before you read a word. Below is a searchable, sortable table built on Layro's Data Table.
Ready for AI tools one file typed props installs by name prompt included
The decision inside it
The strip is one bar per run
The strip is drawn in shades of grey with a failed run as the darkest bar, so it stands out without adding colour. The bar's height is how long the run took, so a slow day and a failing day look different.
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 History for this.
Install it: npx shadcn@latest add @layro/run-history
Import it from @/components/ui/run-history.
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 |
|---|---|---|
runsrequired | AgentRun[] | — |
onOpen | (run: AgentRun) => void | — |
onRerun | (run: AgentRun) => void | — |
onCancel | (run: AgentRun) => void | Offered on runs that are still live. |
title | React.ReactNode | false | The heading. Pass `false` to hide it. |
summary | boolean | Show the three numbers and the strip of recent runs. Default true. |
pageSize | number | Rows per page. Default 8. |
currency | string | ISO 4217 code for the cost column. Default "USD". |
now | Date | number | "Now", for the relative times. Defaults to the moment it renders. |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLayro foundations, installed alongside it
layro-themeagent-run-statusbuttondata-tabledropdown-menustatetabsLifetime 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 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
Run Replay
PaidStep through a recorded run: input, output and state at every event.
Included with lifetime access