Agent Plan
NewAn agent's step list as it works: live status per step, progress, timing, details and failures.
Fix proration for mid-cycle upgrades
0 of 5Read the failing test (In progress)
Find where proration is calculated (Not started)
Fix the rounding bug (Not started)
Run the test suite (Not started)
Open a pull request (Not started)
Working on: Read the failing test
Installation
$ pnpm dlx shadcn@latest add @synccn/agent-planFirst time in this project? Connect synccn with one command.
Usage
import { AgentPlan } from "@/components/ui/agent-plan";<AgentPlan title="Fix the failing test" steps={steps} />API reference
Generated from the component's TypeScript types, so it always matches the code.
AgentPlan
An agent's to-do list as it works: steps with live status, a progress bar, timing and details. The running step is announced to screen readers as it changes.
- stepsrequired
PlanStep[]—
- title
React.ReactNodeDefault
"Plan"Heading.
- collapsible
booleanDefault
trueLets the person fold the steps away.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
- lucide-react for Check, ChevronDown, Circle, Loader2, Minus, X
Accessibility
- Each step's status is written out for screen readers, and the step being worked on is announced as it changes.
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA attributes: aria-controls, aria-expanded, aria-label, aria-live
- Includes text only screen readers hear
- Announces changes to screen readers