Skip to content
Preview
Prepare the Q3 board update
  1. Read the Q2 numbers read_file
    finance/q2.csv
  2. Draft the board memo write_file
  3. Send it for review send_email
Enter renames the step. Alt with the arrow keys moves it. Delete removes it.

AgentPlan

frame
"card"
The card.
status
"draft" | "running" | "done"
Draft is editable, running is locked and live, done shows what each step took.
onChange
(steps: PlanStep[]) => void
Every edit in a draft: rename, remove, reorder, add.
onRun
(steps: PlanStep[]) => void
Run plan or Run again pressed, with the steps in their final order. The plan starts only here.
onCancel
() => void
Cancel beside the run action, in a draft and while it runs.
onRetry
(stepId: string) => void
Retry from here under a failed step, with that step id.
title
string
The plan goal: its head, and the list label.
estimate
string
The run estimated time, beside the head while the plan is a draft.
rootStyle
AgentPlanStyle
Typed StyleX override: where the plan sits and its knobs.
steps
readonly PlanStep[]
The steps, controlled: every edit leaves through onChange.
defaultSteps
readonly PlanStep[]
The steps a draft starts with when uncontrolled: edits stay inside the component, and onChange still hears them.

Rest props go to HTMLAttributes<HTMLDivElement>.

framerequired
"fold"
title
string
Default: To-dos
The head's name: the plan, or what it is.
open
boolean
Open state, controlled.
defaultOpen
boolean
Default: false
Whether it starts open.
onOpenChange
(open: boolean, details: OpenChangeDetails) => void
Called when the head folds or unfolds the steps.
size
"xs" | "sm" | "md"
The head's text style: sm (Body, a card) by default; md (Headline) in a conversation.
rootStyle
RootStyle<CollapsibleKnobs>
Typed StyleX override: where the plan sits and the fold's knobs, which the head and the rows inherit.
steps
readonly PlanStep[]
The steps, controlled: every edit leaves through onChange.
defaultSteps
readonly PlanStep[]
The steps a draft starts with when uncontrolled: edits stay inside the component, and onChange still hears them.

Rest props go to HTMLAttributes<HTMLDivElement>.

State machine

PreviewThe plan is ready to edit and run.
Review the release
  1. Read the release notes
  2. Check the deploy
Enter renames the step. Alt with the arrow keys moves it. Delete removes it.