Skip to content

Agent Plan

Premium

An agent's step plan you can edit and start, then watch run one step at a time with live activity and a segmented progress bar.

AI Agent UIAI coding agentsWorkflow automationOnboarding flows

Fix date parsing across time zones

5 steps

done looks like

All date tests pass in UTC, New York and Tokyo.

Examples

Live plan execution

Fix the timezone bug in the billing date helpers

5 steps
  1. Agent added

    Found while reading the callers

done looks like

All 58 tests pass twice in a row

Paused plan

Fix the timezone bug

Paused3 of 5
  1. Reproduce the failing timezone test with the clock pinned to UTC+13
    , Done in 8 seconds
    8.2s
  2. Read every caller of parseDate
    , Done in 5 seconds
    5.1s
  3. Keep the offset when parsing ISO stringsAgent added

    Found while reading the callers

    , Paused
Completed with a skipped step

Fix the timezone bug

Done in 22s
  1. Reproduce the failing timezone test with the clock pinned to UTC+13
    , Done in 8 seconds
    8.2s
  2. Read every caller of parseDate
    , Done in 5 seconds
    5.1s
  3. Keep the offset when parsing ISO stringsAgent added

    Found while reading the callers

    , Done in 3 seconds
    3.0s
  4. Rename aVeryLongIdentifierWithoutAnySpacesThatMustWrapOrTruncateCleanlyInsideTheCard_0123456789
    , Skipped
    Skipped
  5. Run the whole suite twice
    , Done in 3 seconds
    3.0s

Fixed in 4 steps, one skipped. Offsets are kept and empty input returns null.

No steps yet

Nothing planned yet

0 steps

    Add to your projectPremium component

    One command adds this component to your project.

    1

    Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

    npx shadcn@latest add @aicanvas/••••••••••••
    2

    For dark mode, add the dark class to your <html> element:

    Optional
    <html class="dark">

    Install with AI Canvas MCP

    With AI Canvas MCP, your AI knows every component we ship. Ask for one inside Claude Code, Codex, or Cursor and it installs the component you pick. Works with any AI Canvas account, free or premium.

    Props

    Every prop this component accepts. Any other prop is forwarded to the underlying element.

    StepActivity

    PropTypeDefaultDescription
    labelreqstring-Activity action shown in the step trail.
    targetstring-File, command or other activity target; left out, no target is shown.
    outcomestring-Activity result shown at the row end; left out, no result is shown.
    tone'neutral'|'success'|'red'-Colors the activity result; left out, the neutral treatment is used.

    Step

    PropTypeDefaultDescription
    idreqstring-Stable step identifier that must be unique within the steps list.
    textreqstring-Plan instruction shown in the step row.
    statusStepStatus-Supplies the step state in host-controlled runs; left out, the step starts upcoming.
    durationMsnumber-Supplies the completed duration and demo playback length; left out, the configured step playback length is used.
    addedReasonstring-Marks an agent-added step and explains why it was added; left out, no added-step marker or reason is shown.
    activityStepActivity[]-Supplies activity rows revealed beneath the step; left out, the step has no activity trail.

    PlanRunner

    PropTypeDefaultDescription
    goalstring-Sets the plan heading; left out, the demo uses its sample goal and host mode shows an empty heading, while passing it turns the demo off.
    labelstring-Adds muted text before the goal; left out, no prefix is shown, while passing it turns the demo off.
    stepsStep[]-Supplies the editable or running plan; left out, the demo uses sample steps and host mode uses none, while passing it turns the demo off.
    doneLooksLikestring-Shows the completion criterion during review; left out, the demo uses sample criteria and host mode hides the section, while passing it turns the demo off.
    summarystring-Shows the completion summary when the plan finishes; left out, the demo uses a sample summary and host mode shows none, while passing it turns the demo off.
    phasePlanPhase-Controls the plan phase; left out, phase transitions are managed internally, while passing it turns the demo off.
    currentIndexnumber-Marks earlier steps done and the first non-skipped step at or after this zero-based index current; left out, the statuses supplied on steps are used, while passing it turns the demo off.
    autoStartSecondsnumber-Starts the review countdown when positive and onStart is available; left out, the demo uses its tuned delay and host mode does not auto-start, while passing it turns the demo off.
    onStart(steps: Step[]) => void-Receives the final nonblank steps and makes the Start control available outside the demo; left out, host reviews have no Start control.
    onRevise(note: string) => void-Receives a requested revision and makes the Revise control available outside the demo; left out, host reviews have no Revise control.
    onPause() => void-Handles pausing and makes the Pause control available while running; left out, host runs have no Pause control.
    onResume() => void-Handles resuming and makes the Resume control available while paused; left out, host pauses have no Resume control.
    onStop() => void-Handles stopping and makes the Stop control available while running; left out, host runs have no Stop control.
    onSkip(id: string) => void-Receives the current step id and makes its Skip control available outside the demo; left out, host runs have no Skip control.
    onStepsChange(steps: Step[]) => void-Receives edits, additions, removals and reordering; left out, plan edits remain local.
    classNamestring-Adds classes to the outermost root; left out, only the built-in classes are used.
    tuningPartial<Tuning>-Overrides plan measurements, timing and motion values; left out, every value in TUNING is used.

    About Agent Plan

    Plan Runner shows a plan the agent proposed and runs it step by step. Before it starts, steps can be edited, reordered, removed or added, and the plan handed to your code is the one the user shaped. While running, the current step carries a live progress bar and the latest status line, finished steps fold their outcome into one line with a duration, and a failed step offers Retry or Skip. The header keeps an honest elapsed time and only estimates what is left once real steps have finished. Pause freezes everything, Resume continues, and the keyboard drives it all.

    Built with

    MotionTailwind CSS

    Frequently asked questions

    Is Agent Plan free to use?
    Agent Plan is a Premium AI Canvas component. Premium unlocks the full source code, the full remix prompt, and one-command installs for every Premium component, block, and template.
    How do I install Agent Plan?
    Premium unlocks one-command installs: run the shadcn CLI with your AI Canvas token, or connect the AI Canvas MCP server and ask your AI editor to install it for you. Premium also unlocks the full remix prompt in the Remix panel.
    What is Agent Plan built with?
    Agent Plan is built with React and TypeScript, using Motion and Tailwind CSS. It ships with both light and dark styling.
    Where would I use Agent Plan?
    Common uses include AI coding agents, Workflow automation, and Onboarding flows. Like every AI Canvas component, it is self-contained and drops into any React project.
    Can I remix Agent Plan with AI?
    Yes. Open "Remix with AI" on this page to read the setup and the constants Agent Plan is built from. The engine, the markup and the notes on how it works are part of Premium. For the exact component, install it with the one-command CLI.

    Featured in collections

    More like this