Task Plan
An ordered list the agent keeps honest as it works: the circle turns on the step in progress, the tick draws itself when it is done, the line between steps fills, and a failed or skipped step says so in words. Steps can nest one level, and the plan folds down to the current step.
Ready for AI tools one file typed props installs by name prompt included
The decision inside it
It flags a step before it runs
A `note` such as "Needs approval" sits on a pending step, so the person knows the risky part is still ahead instead of meeting it as a surprise.
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 Task Plan for this.
Install it: npx shadcn@latest add @layro/task-plan
Import it from @/components/ui/task-plan.
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 |
|---|---|---|
stepsrequired | PlanStep[] | — |
title | React.ReactNode | false | The heading. Pass `false` to hide the header row. Default "Plan". |
collapsible | boolean | Let the header fold the plan down to the step in progress. |
defaultOpen | boolean | — |
open | boolean | — |
onOpenChange | (open: boolean) => void | — |
onStepClick | (step: PlanStep) => void | Makes each step a button — to scroll a thread to it, say. |
dense | boolean | Tighter rows, for a narrow side panel. |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLayro foundations, installed alongside it
layro-themeLifetime 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 componentsTool Call
FreeOne tool the agent used: what it sent, what came back, how long it took.
Approval Request
PaidThe agent stops and asks first, showing the exact thing it wants to do.
Included with lifetime access
Agent Timeline
PaidEverything a run did, in order: follow it live, or inspect it step by step.
Included with lifetime access
Run History
PaidEvery past run: how it ended, how long it took, what it cost.
Included with lifetime access
Run 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