When to use
- An agent that should ask before it acts: a migration, a refactor, a booking, anything with steps the person may want to drop or reorder first.
- Runs where each step prints something worth reading (a log, a diff summary, a test result) and the person watches it land.
- Plans that can fail partway: a failed step holds the run until the person retries it or skips it.
When not to use
- A run that starts without review, or a team watching many runs: use Agent Run Console.
- A run inside a chat reply: use Agent Run on its own.
- A to-do list the person owns, with no agent running it: use Reorder List.
Installation
pnpm dlx shadcn add @eased-pro/plan-execute-boardnpx shadcn add @eased-pro/plan-execute-boardyarn dlx shadcn add @eased-pro/plan-execute-boardbunx --bun shadcn add @eased-pro/plan-execute-boardInstalls from the @eased-pro registry and MCP server. · Already have Pro? Sign in.
Install the dependencies
pnpm add motion @base-ui/reactnpm install motion @base-ui/reactyarn add motion @base-ui/reactbun add motion @base-ui/reactAdd the Eased pieces it builds on
Copy each item’s files the same way, or install them with the CLI:
Add the files
- components/eased/plan-execute-board/plan-execute-board.tsx
Source is included with Eased Pro. Members download the files with the CLI command above, or through the MCP server.
Keep the folder layout
The files import each other by relative path (
../lib/motion), so keep each one at the path shown, undercomponents/eased/.
Usage
import { PlanExecuteBoard, type BoardPhase, type BoardStep } from "@/components/eased/plan-execute-board/plan-execute-board";export function PlanPage({ plan }: { plan: BoardStep[] }) { const [phase, setPhase] = useState<BoardPhase>("plan"); const [steps, setSteps] = useState(plan); return ( <PlanExecuteBoard className="h-dvh" title="Move billing webhooks to Stripe v2 events" request="Move our Stripe webhooks to the v2 events API." requestedBy="Sam Lindqvist" meta={["RLY-218", "Atlas 3 Pro"]} phase={phase} steps={steps} onStepsChange={setSteps} onRun={() => { setPhase("run"); agent.run(steps.filter((s) => s.status !== "skipped")); }} onRetryStep={(id) => agent.retry(id)} /> );}// As the agent works, settle steps with updateStep from thinking-core and append to `output`.const step: BoardStep = { id: "tests", label: "Run the billing test suite", status: "active", startedAt, description: "Run the 148 webhook and invoice tests against the new handler.", tools: ["shell.run"], output: ["$ pnpm test billing"],};In the plan every step is pending, or skipped once cancelled. Switch phase to "run" with the same ids and the plan morphs into the rail; start the first step about half a second later, once the rail has landed. The status is derived: running while a step is open or pending, failed when a step failed and nothing else runs, completed when every step has settled. Pass status="stopped" after Stop.
API reference
PlanExecuteBoard
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | The task, in the header. | |
request / requestedBy | string | The person's words, quoted above the plan, and who wrote them. | |
meta | string[] | [] | The muted line under the title: an id, the model. |
phase | "plan" | "run" | The numbered plan, or the rail. | |
steps | BoardStep[] | In order, with stable ids. | |
status | BoardStatus | derived | draft, running, completed, failed or stopped. |
onStepsChange | (steps) => void | The plan after a reorder, an edit, a cancel or a restore. | |
onRun | () => void | Run plan, or ⌘ Enter / Ctrl Enter anywhere in the board. Disabled while every step is cancelled. | |
onStop / onEditPlan | () => void | Stop while running; Edit plan once the run has settled. | |
onSkipStep / onRestoreStep / onRetryStep | (id) => void | From the panel: skip a pending or failed step, bring back a skipped one the run hasn't reached, run a failed one again. | |
className | string | "" | Appended to the root. Give it a height (h-dvh, flex-1); the columns scroll inside it. |
BoardStep
| Field | Type | Description |
|---|---|---|
id / label | string | The plan morphs into the rail by id. |
status | StepStatus | pending, active, complete, error or skipped. |
detail | string | The rail's second line: a result, "Cancelled", an error. |
startedAt / endedAt | number | Epoch ms; the rail's offsets and the panel's "Done in 1.4s". |
description | string | What the step will do, in the panel before it runs. |
tools | string[] | Tool names it may call, in the panel before it runs. |
output | string[] | Its log, a line per entry, in the panel once it starts. |
boardStatus({ phase, steps, status }) returns the derived status, for a list or a tab title.
Keyboard
| Key | Action |
|---|---|
Tab | Header action, then each step's label (opens it in the panel), Edit, Cancel or Restore, and its grip. |
Space / Enter on a grip | Lifts the step; ↑ / ↓ move it, Space drops it, Escape puts it back. |
Enter / Escape while editing | Saves the new wording, or keeps the old one. |
⌘ Enter / Ctrl Enter | Runs the plan from anywhere in the board. Focus moves to the header button, which now reads Stop. |
Accessibility
- The header button is one element whose label swaps (Run plan, Stop, Edit plan), so focus survives the switch. Icon buttons are named for their step ("Cancel Draft a changelog entry for the docs") and carry tooltips.
- One live region speaks for the board: "Cancelled Draft a changelog entry for the docs. 6 steps to run." in the plan, then the step the run is on, then "Completed: 5 steps, 1 cancelled", "Failed: Run the billing test suite. 2 of 148 tests failed" or "Stopped after 3 steps". The rail stays quiet so nothing is said twice; reordering is announced by Reorder List.
- A cancelled step says so after its label, and its status is a struck line and a dimmed number as well as a colour. The list on its way out is inert. Row actions show on hover and focus with a mouse, and always on touch.
- Retry moves focus to the panel's heading, since the button it was on goes away while the step runs.
Motion
On mount the header, the plan and the panel rise 4px in turn (stagger.line, once). Cancelling a step draws a line through it with a clip-path wipe, left to right in 300ms on the in-out curve, as its number dims and the count of steps to run rolls down; restoring wipes the line out to the right. Run morphs the plan into the rail: each number shrinks into its rail node and each label glides to its row on the smooth spring with its result line, matched by id, while the plan's grips and hint fade out (150ms) and the rail's track fades in (200ms). The plan's heading row goes on the first frame, so it never crosses the rail's header. Edit plan plays it backwards. A second click within 500ms of Edit plan is ignored, so a double-click never runs the plan. On the rail the active node breathes, settled steps draw their checks and fill the track, labels swap with y and blur, and the panel's status line swaps as the step moves; log lines land without motion. Reduced motion: no morph, no wipe, fades only.
Notes for AI
Pick this when an agent's plan needs a yes before it runs, and the person should be able to drop or reorder steps first. Keep steps in state, pass the setter as onStepsChange, and switch phase on onRun; drive the run by updating each step's status, startedAt, endedAt, detail and output (updateStep from thinking-core stamps the times). Skip cancelled steps in your agent: they arrive as skipped.
Do not wrap it in a card or add your own timer, spinner or step count: the rail counts and the header shows the status. Don't remount the steps with new ids when the run starts, or the plan can't morph into the rail.
Layout
Two columns from 52rem: the request, the plan or rail, and a 20rem panel beside it, each scrolling on its own. Narrower than that the panel moves under the plan and the board scrolls as one. Plan labels wrap; nothing scrolls sideways at 390px.
Related components
- AI Agent Run Console: many runs, watched as they happen, no plan to review.
- AI Agent Steps Timeline: the rail on its own, and the
Strikethis board uses for cancelled steps. - Reorder List: the plan's drag and keyboard reordering.