By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
At 16:40 on a Friday, an engineer types clean up the database layer and presses enter. Claude Code edits 14 files, renames a column, updates three call sites and rewrites a migration. The work may even be good. Nobody reviewed the decision to do it that way, and the migration is written.
The opposite failure is equally common. An engineer asks for a two-line version bump. The tool spends four minutes exploring the repository, then produces a plan that says bump the pin and run the tests.
Plan mode is the middle setting. Claude Code researches the task and writes a plan, and stops before editing files. You read the plan, change or reject it, and only then does execution start. This lesson is about when that round trip earns its cost.
Two things: wall-clock time and attention. It also leaves a written record of intent, which is worth more than the lost time on most changes. The decision is not about how ambitious the request sounds. It is about reversibility and blast radius.
| Signal | Points to plan mode | Points to direct execution |
|---|---|---|
| Files touched | Four or more, or unknown | One or two, named up front |
| Reversibility | Schema, migration, public API, config | A local edit, a test, a comment |
| Ambiguity | Two plausible readings of the request | The request names the file and the change |
| Blast radius | Shared code, deploy path, stored data | One module with tests around it |
| Proof | No test shows the change is safe | The suite covers it and runs in seconds |
def choose_mode(files_changed: int, reversible: bool, ambiguous: bool) -> str:
"""Pick a mode from three facts about the change."""
if ambiguous:
return "plan"
if not reversible or files_changed > 3:
return "plan"
return "direct"
requests = [
("bump a dev dependency", 1, True, False),
("fix a flaky login test", 2, True, False),
("rename a column used by 4 services", 11, False, False),
("add caching somewhere in the API", 3, True, True),
]
for label, files_changed, reversible, ambiguous in requests:
print(f"{choose_mode(files_changed, reversible, ambiguous):6} {label}")Read the last row carefully. Add caching somewhere in the API touches only three files and is easy to undo, yet it goes to plan mode because the request is ambiguous. Ambiguity alone is enough: a plan surfaces the reading the model chose before it costs you a diff.
Read the plan against the request, not against your taste in code. If it adds a step nobody asked for, delete the step before you approve. An approved plan is the cheapest place to remove work.
A plan describes what was true when it was written. If step two reveals a different problem, the plan is stale. Say so and ask for a revised plan. Letting the model improvise the remaining steps is how a reviewed change becomes an unreviewed one.
Multi-file changes, because the file list is the review. Risky changes, because an irreversible step deserves a second reader. Ambiguous changes, because the plan shows you which reading the model chose.Everything else can go straight to execution with a diff at the end.
Definition of done: you can state the mode for a new request before you run it, and you can name the signal that decided it.
Key takeaways
Plan mode produces a plan for review before any file is edited.
Decide on reversibility and blast radius, not on how hard the request sounds.
Multi-file, risky and ambiguous work belongs in plan mode.
A plan lists files, order, proof, one risk and what is out of scope.
A plan is a snapshot: re-plan when the task changes underneath it.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.