Skip to content
synccn

Agent Plan

New

An agent's step list as it works: live status per step, progress, timing, details and failures.

Fix proration for mid-cycle upgrades

0 of 5
  1. Read the failing test (In progress)

  2. Find where proration is calculated (Not started)

  3. Fix the rounding bug (Not started)

  4. Run the test suite (Not started)

  5. Open a pull request (Not started)

Working on: Read the failing test

Installation

$ pnpm dlx shadcn@latest add @synccn/agent-plan

First 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.ReactNode

    Default "Plan"

    Heading.

  • collapsible
    boolean

    Default true

    Lets the person fold the steps away.

  • className
    string

    Extra 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

npm packages

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