Asking for a plan before any edits
Ask the agent to explore and propose a plan without changing files, using a plan or read-only mode or a plain instruction. Explain why this reveals misunderstandings before they become code.
Builds on: Describing a task: goal, context, constraints, check
It started editing before you noticed
You write a careful task prompt: *add a CSV export to the sales report, don't change the page layout, I'll check by downloading a file.* The agent immediately reads two files and starts editing five. Ten minutes later you discover it exported a different report than the one you meant. How could you have caught that before a single line changed?
A plan shows how it understood you
The agent acts on its *own reading* of your prompt. A prompt can be clear to you and still mean something else to the agent. If you ask for a plan first, its reading comes back in plain sentences: which files it will change, what approach it will take, and what it assumed. Fixing a wrong sentence takes seconds. Finished code looks convincing, so the same misunderstanding is harder to spot and costs far more to untangle.
How to ask for a plan
**Option A:** switch on your tool's plan mode or read-only mode. Names vary, so check its docs. The tool itself then blocks edits.
**Option B:** use a plain instruction: *"Don't change any files yet. Explore, then propose a plan."* The tool doesn't enforce this, so watch for `⚙ Edit` lines.
Ask the plan to list: the files to change, the steps, its assumptions, its open questions, and how it will check the result.
Then correct the plan, or reply *"go ahead"*.
Asking for a plan in practice
The agent only reads files. It doesn't edit anything, and it ends by spelling out the steps it intends to take and what it assumed.
▸ You: Add CSV export to the sales report.
Don't edit files yet. Read what you
need, then give me a plan: files to
change, steps, assumptions.
⚙ Read: src/reports/sales.py
⚙ Read: src/reports/common.py
◂ Agent: Plan:
1. Add export_csv() to sales.py
2. Change load_rows() in common.py
to return every column
3. Add an "Export" button to the
report page in sales.py
Assumption: export all rows, not only
the ones filtered on screen.
Catching two mistakes in the plan
Read the plan line by line. **Step 2** changes `load_rows()`, a shared function, and other reports use it too. The **assumption** is also wrong: you wanted only the filtered rows.
▸ You: Export only the filtered rows. Don't change `load_rows()`, other reports use it. Otherwise, go ahead.
Two misunderstandings are fixed, and no code has been written yet. Only after this does the agent start editing.
Plan first, then code
For anything bigger than a one-line change, have the agent explore and propose a plan before it edits anything. Use a plan or read-only mode, or say "don't edit yet". Read the assumptions closely, because that is where misunderstandings show up while they are still cheap to fix.
On Bytewise this lesson comes in small steps with a check at the end, and the app brings it back right before you would forget it.