AgentPlan
A self-updating plan with progress and failures.
Install
npx shadcn@latest add https://crate.onerollstudios.com/r/agent-plan.jsonPlayground
Plan3 of 4
- Read the request
- Search the docs
- Draft the answer
- Check the sources
Sample data for steps.
<AgentPlan steps={steps} />Import
import { AgentPlan } from "@/components/agent-wait-states/agent-plan";Props
| Prop | Type | Required | Default | Notes |
|---|---|---|---|---|
className | string | no | ||
accent | boolean | no | false | |
labels | Partial<CrateLabels> | no | Replace any of this component's labels. Overrides CrateProvider. | |
steps | PlanStep[] | yes |
Labels
Override with the labels prop or a CrateProvider.
| Label | English default |
|---|---|
plan | "Plan" |
planProgress | (current, total, f) => `${f.number(current)} of ${f.number(total)}` |
Types
export type PlanStep = { id?: string; label: string; state: "pending" | "active" | "complete" | "failed" };Example
<AgentPlan steps={planSteps} accent />For coding agents: /llms/agent-plan.md, generated from the same source.