The plan is approved. Now what?
You want CSV export on your app's reports page. You asked the agent for a plan and fixed two wrong assumptions in it. It now has five steps: build the export rows, format dates, add the download, add a button, and test the whole export end to end.
The tempting next message is `▸ You: Looks good, go ahead.` The agent would then do all five steps in one go. What could go wrong?
One step, one checkable state
If the agent does all five steps at once, you get one big diff you can't really review. A mistake in step 2 gets built on by steps 3 to 5.
If you go one step at a time, each step ends in a small change you can check and commit. A bad step costs you that one step, nothing more.
Saving the plan to a file turns it into a lasting checklist. You and the agent can both reread it, and it shows which steps are done.
The plan-first loop
1. Ask the agent to save the approved plan to a file such as `PLAN.md`. It should number the steps and give each step a check. Commit the file.
2. Say: do **only** step N, run its check, then stop.
3. Apply your acceptance routine: compare the summary with the diff, run it yourself, and look for shortcuts.
4. Tick off the step in `PLAN.md`, commit, then go to the next step.
**Re-plan rule:** if a step uncovers something the plan didn't expect, stop. Update `PLAN.md`, review the change, and commit it before you go on.
Step 1, start to finish
The plan is saved and committed first. The agent then does exactly one step and stops. You review the diff, run all the tests yourself, tick the step off, and only then commit.
▸ You: Save the approved plan to PLAN.md.
Number the steps; give each a check.
⚙ Edit: PLAN.md
$ git add PLAN.md
$ git commit -m "Add plan for CSV export"
▸ You: Do only step 1 of PLAN.md. Run
its check, then stop and summarize.
⚙ Edit: src/reports.py
⚙ Edit: tests/test_reports.py
⚙ Run: pytest tests/test_reports.py
◂ Agent: Step 1 done: added export_rows()
and 2 tests. 14 passed.
$ git diff
$ pytest
▸ You: Tick off step 1 in PLAN.md.
⚙ Edit: PLAN.md
$ git commit -am "Step 1: export rows"
When reality differs from the plan
At step 2 the agent writes: `◂ Agent: Some dates use another format, so I skip rows that don't parse.`
That was not in the plan, and it silently drops data. Don't commit it. Throw the attempt away so your files go back to the step 1 commit, your last checkpoint. Then type: `▸ You: Update PLAN.md: handle both date formats, with a test for each. Show me the revised plan.`
Review the new plan, commit it, then redo step 2.
Remember
Save the plan to a file, then run it one step at a time. Verify and commit after each step. When reality surprises you, fix the plan first and only then the code.
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.