suiss/ui · AI
Plan
The steps the agent plans to take, and how far it has got, under one line with a progress count.
Plan is the list of steps the agent decides on before it starts, such as the steps of a migration. Each step is done, running or pending, and the title counts how many are done.
It is built with Trace: a TraceCollapsible for the plan and a nested Trace for its steps. When the steps are not known up front, use Task instead.
Installation
Plan is built with Trace.
Or use the suiss/ui CLI:
Usage
Use defaultExpanded instead of defaultOpen on TraceCollapsible.
Mark finished steps with no status, the current step with running and the steps still to come with pending. Keep the progress count in a TraceDescription so the title itself stays the goal.
Examples
Details
A description above the steps, inside TraceCollapsibleContent.
AI SDK
Stream the plan as a data part with a fixed id. The AI SDK replaces a data part with the same id, so the plan updates in place as steps finish.
API Reference
See Trace.
Accessibility
- The plan line is a button with
aria-expanded, and its accessible name includes the progress count. - Pending steps are muted and the running step shimmers, so the step icons also differ by state.