AI Coding Interviews: What to Expect
An AI coding interview gives you someone else's code, an AI assistant and a job to do, and watches how you get it done. Interviewers aren't checking whether you can write a function from memory. They're checking whether you can steer a tool that writes code faster than you can read it, and still ship something correct. This page covers what the round is, why companies run it, what an hour looks like and the usual ways candidates lose it.
The Round Is Repo Work, Not a Puzzle
The task is a piece of real engineering work in an existing codebase, and the AI is your hands. Instead of "return the k most frequent elements", you get a bug report, a feature ticket, a slow endpoint or a set of pull requests to review. The repo is small but realistic: a web API with a database, a React front end, a test suite, a README, and usually a few rough edges. Sometimes there's no repo and you build from a spec instead, which is closer to a take-home.
Companies run this round because their engineers already work this way. An interview that bans AI tools measures a job that no longer exists, so they're testing the parts that still need a person: finding your way around unfamiliar code, turning a vague request into a precise one, and owning the result when the AI wrote most of it. Some are replacing old rounds outright. Canva replaced a CS-fundamentals screen with an AI-assisted one, and Google has piloted a code-comprehension round built around an existing codebase.
Often the task holds more work than fits in the time, with bonus items for whoever gets there. That's on purpose. It makes you choose what to do first, and the interviewer watches how you choose.
What Changes from a Classic Coding Round
The hard part moves from finding the answer to knowing whether the answer is right. In a classic round, a wrong solution usually fails loudly: a test case breaks and you see it. Here the AI produces fifty plausible lines in ten seconds, and the bug is on line thirty-seven. Candidates who read those lines, run the tests and try the edge case pass. Candidates who accept a diff because it looks about right fail, however good their prompt was.
| Classic round | AI coding round | |
|---|---|---|
| You start from | An empty file | Someone else's repo, or a spec |
| Who types | You | Mostly the AI, with you editing |
| What's hard | Finding the algorithm | Understanding, scoping, verifying |
| Main risk | Not finding a solution | Shipping something wrong that looks right |
Some work habits don't carry over. At work you might paste a ticket into your assistant, let it run for a few minutes and check back later. In the interview that leaves the interviewer watching a spinner with nothing to grade. At work you might also skip the tests on a one-line change. In the interview, a change you haven't run doesn't count as done. A good rule: run the tests after every AI edit, and say what you saw.
Typing speed stops mattering, and the speed of your judgment starts to matter. You'll decide dozens of times an hour whether to accept a diff, read a file yourself or park a side issue, and the interviewer is grading those decisions. How You're Scored breaks the grading into four parts: problem solving, control of the AI, verification and communication. Volume of code isn't one of them.
Formats Differ in Tool and Time
The two things that change your approach most are whose tool you use and whether the round is live. The skills underneath stay the same, but the setup decides what you can prepare in advance and how much of your thinking the interviewer sees.
Company environment with built-in models. You work in their editor with an AI panel. Meta's AI-enabled round runs in CoderPad with a choice of models and takes about 60 minutes. Headway's AI-assisted debugging round uses a Python FastAPI and React app in a CodeSignal web IDE, takes about 45-50 minutes, and allows agents such as Codex CLI. Sierra uses a TypeScript project with a built-in AI in a VS Code-like interface. You can't bring your shortcuts or rules files here, so spend your first minute learning how the panel attaches files and applies edits.
Your own tool. You set up Cursor, Claude Code or similar and share your screen. Ramp sends a repo and a prompt
written as a Slack message from a PM, allows any language and gives a $50 stipend to set up AI tools. The interviewer
plays the PM and won't answer technical questions, and the repo's CLAUDE.md asked candidates to record their
prompts. Your own setup is faster, but the interviewer also sees your rules and habits, so keep them clean.
Review and ticket formats. Anthropic has used an online VS Code next to a GitHub-like site with several PRs to review and improve, with Claude Code allowed. Nuro gives a codebase and a ticket report to fix one by one with AI.
Take-homes. Anthropic has also run a 2-hour take-home with AI focused on performance. With no audience, nobody hears your reasoning, so it has to show up in the work itself: small commits, tests, and a README that says what you measured and why you chose each change.
Interview Formats goes through each type in depth, and AI Coding at Each Company collects what candidates have reported.
An Hour Inside the Round
A live round has a predictable shape, and knowing it keeps you from spending forty minutes on the first step. Here's a typical 60-minute session on an existing repo; shift the numbers to fit a 45-minute slot.
| Minutes | What you do | What the interviewer looks for |
|---|---|---|
| 0-5 | Read the whole prompt, bonus items included. Say how many tasks it holds. | You know how big the job is |
| 5-12 | README, run the tests, find the code the task touches | You start from facts, not guesses |
| 12-17 | Ask clarifying questions, write "done means...", say a 3-step plan | You'll build the right thing |
| 17-45 | Loop: one scoped prompt, read the diff, run tests, narrate | Control and verification |
| 45-55 | Full suite, edge cases by hand, then a bonus item | You don't stop at the happy path |
| 55-60 | Summary: what changed, how you know, what's next | You can hand the work off |
The first prompt usually comes while you're getting your bearings, and its job is to build a map, not to write code. A broad question gets a broad answer that you can't check. A scoped one names the target and forbids edits:
Weak: "Explain this codebase."
Better: "List the files involved in computing a bill split, from the API route to the function that does the math. One line per file on what it does. Don't change anything."
Then open two of the files it named and check the map. The First Five Minutes covers this step in detail.
The work loop is where most of the hour goes, and narration is what makes it gradable. You don't need a lecture, just a sentence at each decision point:
"It's added the test first, good. It also touched the receipt formatter, which I didn't ask for, so I'm reverting that file. Running the split tests now."
Stop coding about five minutes before the end, whatever state you're in. A clear summary of a partly finished task scores better than a silent scramble to finish it.
How Candidates Lose the Round
Most failed rounds fail on process, not on difficulty. The same few patterns come up again and again, and each one has a simple fix.
- Prompting before reading. The ticket goes into the chat in minute one and the diff comes back in minute two. The interviewer sees someone who can't review what they didn't understand. Fix: spend the first 10 minutes on the README, the tests and the relevant files before asking for any change.
- Accepting diffs unread. The AI edits a test so it passes, calls a helper that doesn't exist, or swallows an exception, and it goes in unchecked. That's the exact failure the round exists to catch. Fix: read every line of every diff; Reviewing the AI's Diff lists what to look for.
- Re-rolling instead of steering. The same request is sent again in the hope of a better answer. It looks like you don't know what's wrong with the output. Fix: say what was wrong and what you want; rephrase once, then write it yourself.
- Going silent. Two minutes of watching code stream with no comment. The interviewer can't grade thinking they can't see. Fix: one sentence at every accept, reject or change of plan, and if you're stuck for 3 minutes, say so.
- Never touching the keyboard. Every one-line change goes through the AI, which can look like you couldn't make the change yourself. Fix: if you know the edit and it's under 5 lines, type it.
None of these needs more raw skill to fix, only habits you rehearse before the day. How to Prepare has a two-week plan for building them. The next page, Interview Formats, shows how each format changes the details.
Key Takeaways
- The round is real work in a real repo (bugs, features, performance, PR review) with an AI doing most of the typing. It isn't an algorithm puzzle.
- The hard part is knowing the output is right: read every diff and run the tests after every AI edit.
- Whose tool you use and whether you're live or take-home change the setup, not the skills.
- Budget the hour: about 15 minutes to read, clarify and plan, 30 to work in small loops, and 10 to verify and sum up.
- Most rounds are lost on process: prompting before reading, accepting unread diffs, re-rolling, going silent.
Practice it in a real repo: AI coding rounds.