Docs / AgentPlan

AgentPlan

A self-updating plan with progress and failures.

Install

npx shadcn@latest add https://crate.onerollstudios.com/r/agent-plan.json

Playground

Plan3 of 4
  1. Read the request
  2. Search the docs
  3. Draft the answer
  4. Check the sources

Sample data for steps.

<AgentPlan steps={steps} />

Import

import { AgentPlan } from "@/components/agent-wait-states/agent-plan";

Props

PropTypeRequiredDefaultNotes
classNamestringno
accentbooleannofalse
labelsPartial<CrateLabels>noReplace any of this component's labels. Overrides CrateProvider.
stepsPlanStep[]yes

Labels

Override with the labels prop or a CrateProvider.

LabelEnglish 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.