Sub topic 9
Approve explicitly before any edits
This chapter assumes you can read a diff, run your project's tests, and have already written a planning request and reviewed the plan that came back. Here you will learn how to move from a reviewed plan to implementation without losing control of what gets edited.
Why approval needs to be explicit
A plan is a proposal. Until you say otherwise, the agent should treat it as one. If approval is implied, the agent may start editing the moment it finishes writing the plan. It may also read a casual "ok" or "sounds good" as permission for the whole plan. Either way, you lose the chance to check each change against what you agreed to.
An approval gate is a point in the workflow where the agent must stop and wait for a specific signal from you. You set it up in two places:
- In the planning request, with a line such as "Do not edit any files yet."
- In your review reply, with a line that names the exact word that unlocks editing.
The gate costs you one short message. It protects you from a half-finished change that touches files you never discussed.
Keep the gate closed while you revise
While you are still correcting the plan, repeat the no-edit rule each time. Here is a review reply that does this:
The plan looks good with two changes:
- Use the shared Redis client instead of an in-memory counter, since we run several processes.
- Add the limit values to the existing config file instead of hard-coding them.
Please update the plan. Do not edit any files until I reply "approved".This message does three things. It corrects a wrong assumption (in-memory counters are not shared across processes). It asks for a revised plan, not for code. It also names the unlock word, so the agent has no room to guess.
Give the approval itself
When the revised plan is right, reply with a message that does two jobs: it approves, and it limits the scope of the first action.
Approved. Implement step 1 only, then stop and show me the diff and the test results before moving to step 2.Compare this with weaker replies:
| Reply | Problem |
|---|---|
| "Looks fine." | Unclear whether this is approval or a comment. |
| "Go ahead." | Approves the whole plan at once, with no review points. |
| "Approved. Implement step 1 only, then stop." | Clear signal, clear scope, clear stopping point. |
Asking for the diff and test results in the same message saves a round trip. You get the evidence you need for your next decision without asking for it.
What approval does and does not cover
Approval covers the files and steps in the plan. It does not cover anything new. If the agent finds during step 2 that it also needs to edit a file the plan never mentioned, it should stop and tell you. You can allow the change or send the agent back to revise the plan.
You can state this rule once, when you approve:
Approved. Implement step 1 only. If you need to change a file that is not in the plan, stop and ask first.This rule keeps the plan and the diff in agreement, which makes the later check against the plan much easier.
Common errors
- Approving in the same message as new requirements. If you add a requirement and approve together, the agent has no revised plan to follow. Ask for a revision first.
- Forgetting the no-edit rule in later messages. Some agents treat each message separately. Repeat the rule while you are still revising.
- Approving every step at once. This removes your review points. Approve one step, check it, then approve the next.
Exercise
The agent returns a revised plan. You read it and it is correct. You want it to implement only the first step and report back. Write the approval message, and name one thing it should ask the agent to show you.
Show answer
For example: "Approved. Implement step 1 only, then stop and show me the diff and the test results before moving to step 2." The message names the unlock word, limits the scope to one step, and asks for the diff and the test results as evidence.
Exercise
You told the agent "Do not edit any files until I reply approved." It replies with a revised plan, and you notice it now lists a file you did not expect. Should you reply "approved"? What should you do instead?
Show answer
No. Approving would accept a change you have not agreed to. Ask the agent why the file is needed. Then either accept the reason and approve, or ask for a revised plan without that file. Keep the no-edit rule in your reply.