Skip to content

PlanCard

Stable

Shows what the assistant plans to do before it starts, so you can approve or ask for changes.

Also known as plan, agent plan, proposed plan

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Awaiting approval

Plan the party seating

Awaiting approval
Nothing has changed yetAbout 6 minutes
  1. Look at the guest list

    See who has replied so far.

  2. Add a seat for each guest

    Group friends and family together.

  3. Check the table plan

    Make sure nobody is left out.

The starting state. Approve and Revise work, and the "nothing has changed" label shows.

When to use it

Shows the steps the assistant intends to take before anything changes, so a person can agree to the approach or ask for another. It does not take your place on the page when it appears, because a plan can wait.

Made of: Title · State label · "Nothing has changed" label · Estimate · Numbered steps (title, note, Edit, Remove) · Buttons (Approve, Revise) or a note on the result · Spoken update

Use it for

  • Before a task that edits, sends or deletes things, so the person agrees first.
  • Letting people edit or remove steps before they approve.
  • Showing a time or cost estimate next to the steps.

Not for

  • A yes or no on one single action: use ApprovalPrompt.
  • Showing progress through steps that are already running: use StepTimeline.
  • A to-do list people tick off themselves: use Checklist.

Do and avoid

Book the hotel

Awaiting approval
Nothing has changed yetAbout 3 minutes
  1. Check the hotel dates

    Match them to your flights.

  2. Book the room

    Pick the cheapest refundable one.

Do. Shows the steps first and waits for a yes before starting.
Booking your hotel now…
Avoid. Starting work with no plan leaves no chance to change it.

Do

  • Show the plan before anything changes, and say so.
  • Keep each step's note to one short sentence.
  • Give an estimate when you can, in time or cost.
  • Let people edit or remove a step while the plan can still change.

Avoid

  • Don't show a plan that has already run as if it were still waiting.
  • Don't use amber on the card. A plan is not urgent.
  • Don't pack a long list of tasks into one step.

On a phone

  • The card has 20px padding, and each step keeps its Edit button and remove icon on the same row as its text, so step text gets narrower when edit tools are on.
  • The remove icon and buttons keep their size and have a 44px tap area on a touch screen.
  • Approve and Revise wrap under each other if they do not fit on one row.

Seen in products

  • Replit Agent Plan mode lets the user brainstorm before Agent changes code, and produces task proposals with Accept tasks and Revise plan actions.
  • Claude Code plan mode is read-only, and the user approves the plan before edits.
  • Windsurf Cascade keeps a long-term plan and generates a todo list.
  • Gemini Deep Research shows a research plan with an Edit plan button before starting.
  • Perplexity asks clarifying questions up front for broad queries (secondary).
  • Vercel AI Elements ships Plan, Task and Queue components, and Shape of AI Governors list Action plan.
  • Anthropic's Building effective agents advises surfacing plans, showing ground truth at each step, and including human checkpoints and stop conditions.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started