Plan review
The go / no-go before an agent runs: edit its steps, see what will change, then approve, send back or reject.
What a block is
A block is a kit component for a whole area of a screen, built only from other kit components and tokens. You import it like any component; nothing is copied into your app. Put it inside your page’s <main>: it brings no header or nav of its own.
When to use
- an agent proposes a multi-step plan and a person must approve it before anything runs
- set the agent's autonomy for this run at the moment of approval
- send the plan back with a note instead of editing it yourself
- let the reviewer reorder steps by keyboard before approving (reorderable)
- the plan is long or the page is narrow and Approve plan must stay in reach (stickyDecision)
When not to use
- one action that needs an OK — ApprovalCard
- the plan while it runs — AgentPlan or RunDetail
- review what the agent already changed — ChangeReview
- autonomy in settings, with no plan — AutonomyDial
Usage
Its steps, which you can edit, sit beside what the plan expects to change and how far the agent may go without asking. Approve hands back the steps and the autonomy you chose; or send the plan back with a note, or reject it. ⌘/Ctrl+Enter approves and Escape rejects while focus is in the block.
Layout
- the plan beside a stack of ChangeSummary over AutonomyDial in layout-split--primary; the decision row under both
- the block is its own inline-size container; below --grid-breakpoint-md (64rem) of block width it is one column, and below 40rem the decision buttons take the full row
Props
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| planTitle | string | Yes | — | AgentPlan card title, e.g. "Add rate limiting to the public API". |
| steps | array | Yes | — | AgentPlan steps: { id, label, tool?, target?, note?, needsApproval? }[]. |
| onStepsChange | function | No | — | (steps) => void. AgentPlan's Save step, Remove and Add step while pending. Without it the steps are read-only. |
| reorderable | boolean | No | false | AgentPlan reorderable while pending: Move up / Move down on each step. Needs onStepsChange, which gets the new order. |
| agent | string | No | — | Who proposed it, e.g. "Backend agent". Lead line and AutonomyDial appliesTo. |
| target | string | No | — | What it acts on, e.g. "acme/api". |
| changes | array | No | — | ChangeSummary items: { id, label, before, after, delta, direction, sentiment? }[]. |
| changesTitle | string | No | What the plan changes | — |
| changesPeriod | string | No | — | ChangeSummary period line, e.g. "Expected after the run". |
| autonomy | string | No | — | Controlled AutonomyDial stop id. |
| defaultAutonomy | string | No | risk | — |
| onAutonomyChange | function | No | — | (autonomy) => void |
| autonomyOptions | array | No | — | AutonomyDial stops; default AUTONOMY_STOPS (ask · risk · tell · run). |
| stickyDecision | boolean | No | false | Pins the decision row ("Your decision", the hint and the buttons) to the bottom of the scroll area on the card surface (the kit canvas background), so Approve plan stays in reach while a long plan scrolls. For a full page or a phone; leave it off when the block sits in a card or a short panel. |
| decision | enum | No | pending | Anything but pending locks the plan and the dial and shows the outcome as a kit Alert. pending | approved | changes-requested | rejected |
| decisionNote | string | No | — | Line in the outcome Alert, e.g. "by you · 14:02". |
| onApprove | function | No | — | ({ autonomy, steps }) => void. Approve plan, the view's one solid primary. ⌘/Ctrl+Enter while focus is in the block and not in a text field. |
| onRequestChanges | function | No | — | (note) => void. Request changes opens a note field; Send request (or ⌘/Ctrl+Enter) sends it, Escape cancels. |
| onReject | function | No | — | () => void. Reject (outline neutral). Escape while focus is in the block, not on another control. |
| title | string | No | Plan review | Block heading, best as the question, e.g. "Run this plan to close INV-1842?". |
Built from
Related
- Component
ApprovalCard
The agent asks before it acts: risk, what will happen in words, an exact preview of the command or diff, and Approve (⌘/Ctrl+Enter) / Deny (Escape) with an optional auto-deny countdown.
- Component
AgentPlan
What an agent intends to do, before or during a run.
- Block
Run detail
One agent run on one screen: clock, cost, pending approval and every step, all following the step you pick.
- Block
Change review
Review an agent's change file by file, then accept or reject each file, or the rest at once.