Agentic Coding Workflows

Lesson 2 of 6

Plan Mode: Scoping and Approving Work Before It Starts

The cheapest place to catch a bad approach is before any code has been written. That's what plan mode is for.

What a plan mode does

Instead of immediately editing files, a planning step asks the agent to first explain: what it thinks the task is, which files it expects to touch, and the approach it intends to take, all in plain language, before making a single change. You read that plan and either approve it, or redirect it.

❌ Skipping straight to execution:
"Add search to the FAQ page." → agent immediately starts editing
five files, three of which you didn't expect it to touch.

✅ Plan first:
"Add search to the FAQ page." → agent proposes: add a search input
to FaqOutline.tsx, filter the existing question list client-side,
no new dependencies, no changes to the API. You confirm, then it builds.

What a good plan includes

  • Understanding of the goal, restated in its own words, so you can catch a misread requirement immediately.
  • Files it expects to touch, so scope creep is visible before it happens, not after.
  • The approach, not full code, but enough that you'd know if it picked a bad pattern (e.g. adding a new dependency when the codebase already solves this elsewhere).
  • Open questions, a good plan flags ambiguity ("should search be case-sensitive?") instead of silently guessing.

Redirecting a plan is cheap

Correcting a plan takes one sentence. Correcting a 12-file diff that took the wrong approach takes much longer, and by then you've already spent the time reviewing code you're about to throw away. If something in the plan looks off, whether it's touching a file it shouldn't, or picking an approach you don't want, say so before approving it.

TIP

Treat an agent's plan the way you'd treat a design doc from a teammate: quick to read, cheap to push back on, and much cheaper than reviewing the implementation of the wrong idea.

When to skip planning

For genuinely tiny, unambiguous changes ("rename this variable," "fix this typo"), a planning step is overhead. Plan mode earns its keep on anything multi-file, anything touching code you didn't write yourself, or anything where you're not 100% sure what "done" looks like yet.

📝 Plan Mode Quiz

Passing score: 70%
  1. 1.What is the main benefit of reviewing a plan before an agent starts editing code?

  2. 2.Which of these belongs in a good plan?

  3. 3.A good plan should flag ____ ("should search be case-sensitive?") instead of silently guessing.

  4. 4.Redirecting a plan before execution is generally cheaper than reviewing and undoing a large diff built on the wrong approach.

  5. 5.Plan mode is equally valuable for a one-line typo fix and a multi-file feature.