A framework for the round
A repeatable five-step workflow for 60-minute AI coding rounds so your engineering judgment stays visible under time pressure.
When the clock is running, most engineers default to how they use AI alone at their desk: paste a rough description, see what comes back, and iterate until tests pass. In an interview, that workflow hides the exact engineering judgment you are being hired for.
A simple five-step loop keeps you in control from minute one. You run Map once at the start, repeat Plan → Delegate → Verify for each phase, and finish with Own.
| Step | Name | Typical time (60-min round) | Concrete output |
|---|---|---|---|
| 1 | Map | 5–8 min | Mental model of the files, conventions, and failing behavior |
| 2 | Plan | 2–3 min per phase | Chosen approach, key assumptions, and step order stated aloud |
| 3 | Delegate | Bulk of each phase | Small, reviewable diffs built to your spec |
| 4 | Verify | After every change | Passing tests, clean diff, plus new edge-case coverage |
| 5 | Own | Final 10 min | Crisp answers on complexity, breaking inputs, and next steps |
1. Map: orient yourself before prompting
Spending the first five minutes reading feels slow when you want to start shipping, yet it prevents almost every wasted detour later in the hour.
- Run the existing tests immediately. Failing assertions tell you more about the expected contract than a paragraph of prose.
- Read the README and entry point. Look for repo conventions: how errors are typed, where validation lives, how side effects or events are dispatched.
- Trace the symptom to its source. In realistic codebase tasks, the failing output is rarely in the same module as the root cause.
- Summarize the layout out loud. Example: "The API handler checks permissions,
service.pyowns state transitions, andbusiness_hours.pycomputes SLA deadlines."
2. Plan: make the design call first
Before opening the chat panel for a phase, state three things clearly. Imagine a maze-solver round (like A01Maze solver with directional gates) where Phase 2 introduces directional gates or locked doors:
- What actually changes in the model: "Cells can no longer be visited based only on coordinates — we have to track whether we entered through a valid gate direction (or whether we hold a key)."
- Your chosen algorithm and why: "BFS over an expanded state keeps shortest-path guarantees, and the state space stays bounded."
- One explicit assumption or clarifying question: "Can two gates sit back-to-back, and does exiting a gate have the same direction rule as entering?"
This takes ninety seconds and gives the interviewer direct evidence of Framing and Ownership. If the interviewer wants a different constraint, you find out before writing code.
3. Delegate: narrow tasks, explicit contracts
Hand the assistant one bounded change at a time, specifying four things:
- Where: exact file and function.
- What: one logical change.
- Constraints: required signature, data structure, repo conventions, and what not to touch.
- Verification: which test or example should pass afterward.
The second prompt usually lands right on the first try, produces a diff you can verify in 20 seconds, and makes your design intent unmistakable to the interviewer. See Prompting and delegating for more examples.
4. Verify: tight loops after every diff
Treat every generated block as an unreviewed PR:
- Read the full diff before pasting or accepting it. Strip out unused imports, extra config, or helper abstractions nobody asked for.
- Run the test suite right away and call out the result ("phase 1 suite is 6/6 green").
- Add at least one edge-case test of your own per phase — empty input, exact boundary, or the invariant that phase introduced.
- Trace tricky loops by hand on a tiny example.
When the model introduces a bug — and in staged interviews it regularly does — state what failed, why the model got it wrong, and how you're fixing it before touching code. More on this in Verifying AI output.
5. Own: defend the final code
Reserve the last ten minutes (or be ready throughout) for unassisted follow-up questions:
- "Walk me through how this handles tie-breaking."
- "What's the worst-case time and memory complexity?"
- "Give me an input that would break or slow down what you wrote."
- "What would you harden before putting this behind real traffic?"
Steps 1 through 4 do the heavy lifting here: if you chose the structure and audited every diff, you already know the answers.
Keep a steady narration rhythm
Aim to say roughly one clear sentence every 30–60 seconds so the interviewer isn't guessing what you're thinking. Two transitions carry the most weight:
- Before prompting: "I'm asking it to scaffold the
mergeendpoint handler following the exact permission pattern inassign." - After reviewing output: "It copied the comments over, but it didn't sort them chronologically or emit the merge notification event — I'll fix those two pieces directly."