Sub topic 13
When to skip the plan
This chapter assumes you have used a coding agent on a repository, read diffs, and can run a project's tests. It covers one decision: when a written plan costs more than it saves.
The cost side of planning
A plan is not free. You write the request, read the plan, correct it, and approve it. For a change you could review in seconds, that overhead can exceed the work itself. A plan earns its cost when it catches a wrong direction before code exists. If a wrong direction would be obvious from the diff alone, the plan adds little.
Signs a plan is not worth it
Skip the plan when most of these hold:
- The change touches one file, or a few lines.
- You can state the whole change in one sentence.
- There is only one reasonable way to do it.
- The diff will be small enough to review completely.
- A wrong result is cheap to undo, for example with
git checkoutor a revert. - A test or a command will show right away whether it worked.
Typical examples are renaming a local variable, fixing a typo in an error message, adding a missing import, or updating a version number in a config file.
Rename the variable `tmp` to `retry_count` in `auth/routes.py`, in the `login` function only. Do not change anything else.This request has no plan step, but it keeps the scope narrow. Skipping the plan does not mean skipping the constraints.
Signs you should plan
Plan when the opposite holds:
- The change spans several files or modules.
- There are real design choices, such as where state lives or which library to use.
- The change touches security, data, migrations, or public interfaces.
- You are unsure how the existing code works.
- A mistake would be costly or slow to find.
The rate limiting example from earlier chapters meets several of these. It crosses files, depends on whether the app runs several processes, and affects login behavior.
A quick decision aid
A middle path
Some tasks fall between the two. You can ask for a short plan in one or two sentences, or ask the agent to state its approach before editing.
Fix the failing test in `tests/test_parse.py`. Before editing, tell me in two sentences what you think the cause is and what you will change.This gives you a checkpoint at a low cost. If the stated cause looks wrong, you correct it before any edit happens.
Exploration is a different case
If you do not yet know what the task is, a plan is premature. Ask the agent to read and explain the code first. Once you understand the area, decide whether the actual change needs a plan.
Reassess as you go
The decision is not permanent. If a small task grows, stop and switch. Signs include the agent wanting to edit files you did not expect, or a "quick fix" revealing a design question. Ask it to pause and produce a plan for the larger piece.
Common mistakes
- Planning everything out of habit. This slows you down on trivial work and trains you to skim plans.
- Skipping the plan because you are in a hurry. Hurry is a reason to avoid rework, not a sign the task is simple.
- Judging size by the request, not the code. A one-line request such as "make login faster" can imply a large change.
Exercise
You need to change a timeout value from 30 to 60 in one config file, and a test confirms the behavior. Another task is to move session storage from memory to a database across several modules. Which task gets a plan first, and why?
Show answer
The session storage move gets a plan. It spans several modules, involves design choices, and is costly to get wrong. The timeout change is one line, easy to review and undo, and a test verifies it, so ask for it directly with a narrow scope.