Plan vs Actual
An agent's plan and its real run as two lanes on one clock, with a pace dial and a finish time that rolls over.
PROGet Plan vs Actual and 168 other Pro components with pro lifetime — Get Pro
- Category
- AI Agent
- Access
- ProPro · unlocked
- Source
- 503 lines · one file
- States
- 6 drawn
- Added
- 3 Nov 2026
The decision inside it
The forecast uses real pace, not the plan
If the first three steps took 40% longer than planned, the rest probably will too. The finish time scales the remaining plan by the pace so far, and says how many steps it's based on, instead of repeating an estimate that is already wrong.
When to use it
Use Plan vs Actual to show how an agent's run is going against its own plan, with a finish time based on real pace. For the plan alone use Task Plan; for one run's live status use Agent Run Status.
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 Liro's Plan vs Actual for this.
Install it: npx shadcn@latest add @liro/plan-vs-actual
(the @liro registry is set up in components.json, with LIRO_KEY in .env.local)
Import it from @/components/ui/plan-vs-actual.
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 @liro registry with your CLI token: see the Namespaced tab.
Usage
import { PlanVsActual, type PlanStep } from "@/components/ui/plan-vs-actual";
export function RunProgress({ steps }: { steps: PlanStep[] }) {
return <PlanVsActual title="Migrate billing to v2" icon={<img src="/logos/claude.svg" alt="" />} steps={steps} lateAfter={0.25} />;
}API reference
“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.
| Type | Notes | ||
|---|---|---|---|
steps | PlanStep[] | Yes | – |
title | string | No | – |
icon | React.ReactNode | No | The agent's logo, supplied by you. |
lateAfter | number | No | How far past plan a step must run before it is marked late. Default 0.25. |
now | Date | number | No | Fix the clock, for screenshots and tests. |
look | Look | No | – |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLiro foundations, installed alongside it
liro-themeStates
All of them are drawn by the component. None is left for you to design.
- On pace
- Running late
- Over budget
- Finished
- Stopped
- Not started
Accessibility
- Keyboard reachable throughout, in visual order
- Focus trapped in overlays, Escape closes them
- Focus returns to whatever opened it
- Live regions announce what changed, not that something did
- Honours prefers-reduced-motion
Responsive behavior
- Sizes to its container, not the viewport
- Usable from 320px up
- Pointer-based interaction, so trackpad and touch both work
- No hover-only affordances