Plan Before You Prompt
Turning a Ticket into Acceptance Criteria ended with a written "done means..." and an agreed scope. Between that list and the first prompt sits the plan: the order in which you'll build it, in steps small enough to check. Without one, the natural move is to paste the whole list into the AI and get one huge diff back. With one, every prompt has a clear target and every diff is small enough to read, which is exactly the control the interviewer is grading.
The example is still toolshed, with the core path agreed on the previous page: members can reserve a tool that's
on loan, hold at most two reservations, and the first in line gets the tool when it comes back.
A Plan Is a List of Checkable Steps
A good plan is a short list of steps where each one ends with something you can run. "Add reservations" isn't a
step, because you can't tell when it's done. "Add a reserve_tool service with the two rules, and tests for both"
is a step: when the tests pass, it's done. The check at the end of each step is what lets you catch a bad AI edit
while it's still small.
Size each step to one prompt and one diff you can read in a minute or two. In practice that's a change under about 50 lines, touching one to three files, taking five to ten minutes including the test run. If a step needs more than that, split it. If it needs much less, merge it with the next one, since a plan with twelve tiny steps is as hard to follow as a plan with one big one. Three to six steps is right for most core paths in a 60-minute round.
At work you might keep the plan in your head and adjust as you go. In the interview the plan has to be visible, because the interviewer grades it, and you'll use it to keep track of time when you're nervous.
Order the Steps So Each One Runs
Order the steps so that each one builds on finished, tested work, and so that the riskiest one comes early. The usual order for a feature in a web backend runs from the inside out: data model, then business rules, then the API that exposes them, then any hooks into existing flows. Each layer can be tested before the next exists, so a failure always points at the step you just did.
Here's the plan for the core path, written in the notes file next to the criteria:
Plan (core path, ~30 min):
1. Model: `Reservation` (tool_id, member_id, status, created_at). Check: tests still pass.
2. Service: `reserve_tool` - tool must be on loan, max 2 active per member. Check: 3 new tests.
3. Route: `POST /tools/{id}/reservations`, LoanError -> 409. Check: 1 route test.
4. Hook: `return_loan` marks the first waiting reservation "ready". Check: 1 test.
Bonus: 48-hour expiry, then cancel.
Step 4 touches existing behaviour, which makes it the riskiest: returning a tool already works, and changing it can break tests you didn't write. If time were tighter, you might move it up to step 2, so the risk shows itself while there's still time to deal with it. Either way, run the full suite after that step, not just the new test.
Put the test inside each step, not at the end. A plan that ends with "5. Write tests" means four unverified diffs stacked on top of each other, and when the tests finally fail you won't know which step caused it.
Say the Plan Out Loud
Read the plan to the interviewer before the first prompt, in about thirty seconds. It shows you have a route, it gives them the chance to redirect you before you've spent any time, and it sets a time budget you can be held to. A plan said out loud is also harder to abandon quietly when a step goes wrong.
"Four steps for the core path: the model, the service with both rules and tests, the route, then hooking into returns. The hook is the risky one because it changes existing code, so I'll run the whole suite after it. I'm aiming to finish the core by minute 45 and then do expiry."
If the interviewer says "sounds good", start. If they say "what about cancelling?", that's a hint about priorities, so ask where they'd put it. Then, as you work, mark steps off out loud: "Step two done, three tests pass, moving to the route." Those small check-ins are what make the session easy to follow.
Let the AI Draft the Plan, Then Edit It
The AI can draft a plan quickly, but you have to own the final version. Many tools have a plan mode, or you can ask for a plan and forbid edits. A draft saves you thinking time, especially in a repo you've known for ten minutes. It also tends to share a few flaws, so give it your criteria and your limits, and read it as critically as you'd read a diff.
Weak: "How should I implement reservations?"
Better: "Here are the acceptance criteria and the scope [pasted]. Propose an implementation plan of 3-6 steps. Each step should touch at most 3 files and end with a test I can run. Follow the existing pattern in
services/loans.py. Don't write any code yet."
AI plans usually go wrong in the same few ways. Know them and you can fix a draft in a minute:
- Too big. One step creates the model, the service and the route together. You'd get a diff you can't review. Fix: split it at each layer.
- Extra scope. The plan adds email notifications or an admin page nobody asked for. Fix: delete anything not in "done means...".
- Tests last. All testing sits in a final step. Fix: move a test into each step.
- Wrong pattern. It proposes a new helper or folder when the repo already has one. Fix: name the file to copy, as in the prompt above.
Say what you changed and why: "Its plan put tests at the end and added emails; I've moved tests into each step and dropped emails." That one sentence shows the interviewer you're steering, not following.
When to Change the Plan
Change the plan when you learn something that makes it wrong, and say so when you do. A plan is a tool for keeping control, not a promise. Sticking to it after the code has shown it won't work wastes time. Changing it silently makes the interviewer think you've lost track.
Three triggers are worth a rule each. First, if a step uncovers a fact that changes later steps, such as finding that
returns go through a background job rather than return_loan, stop and re-plan the rest. Second, if a step takes
twice its budget, pause and decide out loud whether to split it, simplify it or skip it. Third, at the halfway point
of the round, check the plan against the clock. If the core path won't fit, cut a bonus item now, not at minute
fifty-five.
"Returns actually go through
close_loanin the jobs folder, notreturn_loanas I assumed. So step four moves there, and I'll need a test for the job. That probably pushes expiry out; I'll check at minute 40."
In a take-home the same rules apply, but the record of them goes in commits and the README. A commit message such as "Move reservation hand-off into close_loan (returns run there, not in the route)" shows the change of plan as clearly as saying it would. Once the plan is set, each step needs a prompt, and the next page, Writing Prompts That Work, covers how to write one.
Key Takeaways
- A plan is 3-6 steps, each ending with a check you can run, each one prompt and a diff under about 50 lines.
- Order steps from the inside out (model, rules, API, hooks), keep a test in every step and do risky steps early.
- Say the plan out loud in thirty seconds before the first prompt, with a time target for the core path.
- Let the AI draft a plan, then fix the usual flaws: steps too big, extra scope, tests last, the wrong pattern.
- Re-plan on a new fact, on a step at twice its budget, and at the halfway check, and say so when you do.
Practice it in a real repo: AI coding rounds.