How to Prepare
AI Coding at Each Company showed how much the setup varies from one company to the next. This page turns that into preparation. The round rewards habits more than knowledge: reading before prompting, reading every diff, running the tests, saying what you decided. Habits come from repetition under realistic conditions, so most of the two weeks below goes into timed practice on code you've never seen.
A Two-Week Plan
Two weeks of about an hour a day is enough to build the habits, if the hours are spent on real repos with a timer running. Reading about the round helps for a day or two. After that, only practice moves your score. The plan below assumes you already use an AI tool at work; if you don't, add two days at the start just to get comfortable with one.
| Days | Focus | What you do |
|---|---|---|
| 1-2 | Setup | Install and configure your tool; write a short rules file; learn the shortcuts for accept, reject and undo |
| 3-4 | Reading | Open three unfamiliar repos; for each, run the tests and trace one request in under 10 minutes |
| 5-7 | Bug fixes | Replay closed bug issues from open-source repos, 45 minutes each, with a failing test first |
| 8-10 | Features | Replay small merged feature PRs; write "done means..." before any prompt |
| 11-12 | Review | Review three open PRs per session, then fix one; practice saying why you'd block a change |
| 13 | Mock | A full 60-minute mock with someone watching, in the format you expect |
| 14 | Rest | Check your setup, re-read your notes, stop early |
Keep a short log after each session: what took longer than you expected, one diff you should have rejected sooner, one thing you forgot to say. By day 10 the log tells you which habit still needs work. That's usually reading the diff or narrating, not prompting.
Set Up Your Tool Before the Day
If you'll use your own tool, set it up two weeks out and practice with exactly that setup. Changing tools or models the night before means learning new shortcuts while someone is watching. Pick one tool you know well, such as Cursor, Claude Code or Codex, and use the strongest model your plan offers. Learn the shortcuts for the actions you take dozens of times an hour: accept a diff, reject it, undo the last edit, open the file the AI named.
Write a rules file (CLAUDE.md, AGENTS.md, .cursor/rules or the equivalent) that's short and neutral. Its job
is to make the AI behave the way you'd want any teammate to behave, not to hide a solution template. The
interviewer may read it, so keep it to things you'd defend:
# Working rules
- Make the smallest change that does the task. Don't touch unrelated files.
- Never edit an existing test to make it pass. Say so if a test looks wrong.
- Follow the patterns already in the repo (naming, error handling, folder layout).
- After an edit, list the files you changed and why, in one line each.
- Don't add dependencies without asking.
Check the agent's permissions too. Let it read files and run tests freely, but make it ask before editing more than a couple of files or running anything that installs packages. A repo the company sends may come with its own rules file, so read that one first, and merge your rules in only if they don't conflict.
If the round runs on the company's platform, your setup won't come with you. Practice a few sessions in a plain chat panel with no rules file, pasting code in by hand. You'll notice how much context you normally get for free, and you'll learn to put the file, the error and the constraint into every prompt yourself.
Practice on Real Open-Source Repos
The best practice material is a closed issue in a mid-sized open-source repo, replayed against the clock. You get an unfamiliar codebase, a real problem written by a real user, and an answer key: the PR that fixed it. Toy projects you wrote yourself teach almost nothing here, because you already know where everything is.
Pick repos in the language you'll interview in, with a test suite that runs in under a minute, and a size you can skim: a web API, a CLI tool, a small library. Then replay an issue like this:
- Find a closed issue with a linked PR that changed under 100 lines.
- Check out the commit just before the fix (
git checkout <fix-commit>~1). - Read only the issue, start a 45-minute timer and do the task with your AI tool, narrating out loud.
- When time's up, compare your change with the real PR. Note what they did that you missed, and why.
The comparison is where the learning happens. Often the real fix is smaller than yours, or it lives one layer upstream from where you patched. Sometimes it handles an edge case your tests never tried. Do bug fixes first, then small features, then reviews of open PRs. For review practice, read the PR yourself first, write down what you'd flag, and only then ask the AI to review it, to see what each of you missed.
Rehearse Talking While You Work
Narrating while you work feels unnatural at first, and the only fix is to practice it out loud. Most engineers go quiet when they concentrate, and an interviewer can't grade a decision they didn't hear. Start by recording your screen and voice for one practice session, then watch five minutes of it. You'll find long silences at the moments that mattered most: reading a diff, deciding to reject it, changing the plan.
Practice three kinds of sentence until they come without thinking. Before an action: "I'm going to ask it to trace how a loan gets created, without editing anything." After a result: "It touched the email helper too, which I didn't ask for, so I'm reverting that file." At a change of plan: "This is taking longer than I budgeted, so I'll park the reminder emails." One sentence each is enough.
Then do at least one mock with a person watching. Ask a friend to play the interviewer, or a PM who answers only product questions, and give them the issue text ahead of time. Ask them afterwards for the moment they felt most lost about what you were doing. That moment is the habit to work on in your remaining sessions. Talking Through It and Managing Time covers narration in more depth.
The Day Before and the First Minute
The last day is for checking the setup and resting, not for learning anything new. Problems on the day are usually mechanical: a tool that needs re-authenticating, a missing language runtime, a screen share that hides the terminal. A short checklist removes most of them:
- Log in to your AI tool and run one prompt; check you're on the plan and model you practiced with.
- Install the language runtime and test tools you expect, and run a test suite in a sample repo.
- Test screen sharing: font size readable, notifications off, unrelated windows closed.
- Keep a blank notes file open for "done means...", your plan and open questions.
- Re-read your practice log, especially the habits you kept forgetting.
In the first minute of the round, read the whole prompt before touching anything, bonus items included, and say how big you think the job is. Then start where every round starts, which the next page covers: The First Five Minutes: Reading the Repo.
Key Takeaways
- Two weeks of about an hour a day is enough, if nearly all of it is timed practice on unfamiliar repos.
- Set up one tool two weeks out, with a short, neutral rules file, and practice without it if the company hosts the editor.
- Replay closed issues from open-source repos for 45 minutes each, then compare your change with the real fix.
- Record yourself, find the silences, and do at least one mock with a person watching.
- Spend the last day checking logins, runtimes and screen sharing, not learning something new.
Practice it in a real repo: AI coding rounds.