Skip to lesson
Exit
Use plan mode for a slightly larger task1 / 1

2 min lesson

Plan a recent-searches change and approve its boundary

Practice Plan Mode on one real case. Check the result before moving on.

Check your understanding

Complete the walkthrough "Plan a recent-searches change and approve its boundary".

Outcome: The build changes three files inside components/search. searchFilter.ts stays untouched, and the finished diff matches the plan you approved.

Plan a recent-searches change and approve its boundary

Plan Mode in Agent

4 steps · ~2 min

Plan Mode → Send → Answer the scope question → Watch the build

Read this walkthrough as text
Plan a recent-searches change and approve its boundary
Plan Mode in Agent
SayAdd a recent-searches list under the search box. It needs a component, a hook and the wiring. That crosses several files, so plan it first.
DoPick Plan in the composer's mode dropdown so the agent researches the repo and plans before touching any code.
DoSend the task and let the agent research.
SeeThe agent pauses with a scope question. It asks whether it should also refactor searchFilter.ts to rank results by recency. That is outside the requested boundary.
SayNo, keep to components/search as scoped.
DoAnswer the question, then read the generated plan. Confirm that it names the component, hook, wiring, tests and the untouched filter logic.
DoClick Build only after the plan matches the boundary.
SeeThe build changes three files inside components/search. searchFilter.ts stays untouched, and the finished diff matches the plan you approved.

Simulated Cursor 3.12 (macOS, light) — beta educational reconstruction, not the real product.

Learn more

Optional practice

Test yourself on Plan a recent-searches change and approve its boundary

QWhat should be true when you finish the Plan Mode practice?

Finish the check to continue.