DEV Community

Cover image for How to Practice AI-Assisted Coding Interviews on an Unfamiliar Codebase
ExtraBrain App
ExtraBrain App

Posted on Fully Autonomous

How to Practice AI-Assisted Coding Interviews on an Unfamiliar Codebase

Short answer: AI-assisted coding rounds test whether you can understand code you didn't write, use an assistant without trusting it blindly, and explain your reasoning out loud. Practice exactly that. Take a mid-sized open-source repo you've never opened, check out the commit just before a real bug fix, and give yourself 45 minutes to find and fix it with an AI assistant while you narrate. Then review the recording against a scorecard.

Disclosure: we build ExtraBrain, which we mention in one section below as an optional practice partner. The drill works with any editor, AI assistant and screen recorder.

What changed in coding interviews

A small but growing set of companies now run rounds where AI is part of the setup rather than banned. Canva replaced a fundamentals screen with an AI-assisted coding round for backend and frontend roles in 2025, and Datadog runs AI-assisted coding interviews for some roles, announced in advance. Google is piloting interviews where candidates can use Gemini, according to internal documents reported by Business Insider in October 2026. Jane Street said on November 2, 2026 that it is trialing onsite rounds that include using LLMs to produce code. Interview platforms are moving too: HackerRank's AI interviewer, Chakra, puts an AI assistant in its interview canvas.

Formats differ. Some give you a product-style problem, some hand you an existing codebase to read and change. Some provide the assistant (Google's reported pilot uses Gemini), others let you bring your own (Canva names Copilot, Cursor and Claude). What they share is that the interviewer watches how you use it. We keep a dated, sourced list in our companion post on which companies allow AI in coding interviews.

The skills being tested shift with the format:

Old LeetCode round AI-assisted codebase round
Write an algorithm from scratch Find your way around code you didn't write
Recall patterns from memory Judge whether a suggested change is correct
Optimize one function Change one part without breaking the rest
Talk through your own code Explain what you accepted, rejected and verified

Candidates who did well on LeetCode-style rounds can still struggle here. One candidate report from a Bloomberg AI-assisted round describes a large Django codebase and only part of the round left for coding after behavioral questions; the candidate was rejected. Time spent getting oriented is the cost to drill down, and so is the habit of accepting a plausible suggestion without checking it.

The 45-minute drill

The 45-minute drill: orient for 10 minutes, fix with the assistant for 20, explain for 5, review for 10

You need a laptop, an editor, an AI assistant like the one you expect in the round, a timer, and a way to record your screen and voice. A friend who picks the bug for you makes it more realistic, but you can do it alone.

Step 1: pick a repo and a real bug (before the timer)

Use a mid-sized open-source project with tests, in the language you'll interview in. A few thousand to a few tens of thousands of lines is the right size: big enough that you can't read all of it, small enough to run locally.

The trick that makes this realistic: use a bug that was actually fixed.

  1. In the project's issue tracker, filter for closed issues labeled bug that link to a fix.
  2. Note the fix commit, then check out its parent: git checkout <fix-commit>^.
  3. Copy only the issue description. Don't read the fix.
  4. Run the test suite once so setup problems don't eat your 45 minutes.

If a friend picks the issue, you get a bug you truly haven't seen. Alone, pick one from a part of the code you don't know and avoid reading the diff.

Step 2: orient for 10 minutes, before asking the AI anything

Start the timer and the recording. Read the README, find the entry point, and skim the tests near the area the issue mentions. Then say, or write in three lines:

  • where a request or input enters the code;
  • which module the bug most likely lives in;
  • what test would prove the fix.

This map is what interviewers want to hear early. It also gives you something to check the AI's answers against.

Step 3: fix it with the assistant for 20 minutes

Use the assistant the way these rounds reward:

  • Ask it to explain unfamiliar code before asking it to change anything.
  • Ask for the smallest change that fixes the issue, not a rewrite.
  • Run the tests after every suggestion you accept, and say what you checked.
  • When you reject a suggestion, say why out loud. That is the part interviewers can't see unless you narrate it.
  • Write or update one test that fails before your fix and passes after.

Step 4: explain for 5 minutes

Stop coding and explain, as if to the interviewer: the root cause, the fix, what else it could affect, and one thing the AI got wrong or that you had to correct. If you can't name one, you probably didn't check its work closely enough.

Step 5: review the recording for 10 minutes

Watch the recording at 2x speed, or skim a transcript of it, and score yourself:

Skill What good looks like What to count in the recording
Orientation A clear map within 10 minutes Minutes until you named the likely module
Judgment Every accepted change was verified Suggestions accepted without running tests
Communication No long silent stretches Silences longer than about 60 seconds
Scope A small, targeted diff Files changed versus files needed
Testing A failing test that now passes Whether you wrote one at all
Explanation Root cause in two sentences Whether you named an AI mistake

Run the drill two or three times a week with different repos. Track the counts. Start with accepted-without-checking and long silences; they are the easiest to spot in a recording.

Where an AI copilot fits in practice

During the drill, the assistant inside your editor plays the role of the employer's assistant. A desktop copilot can sit next to it as a practice partner. ExtraBrain, for example, can transcribe your practice session on your computer and read a screenshot of the code you're looking at, so during a practice run you can ask why a function behaves the way it does, then review the transcript afterwards. It works with your own AI provider or a local model, and session history is stored on your computer.

ExtraBrain explaining a token bucket rate limiter from a code screenshot during a practice session, from the product demo

In a real interview, use only the tools the employer allows, as stated in your interview instructions. Datadog and Jane Street, for example, keep AI out of their other rounds. Our responsible use guide explains how we think about this.

FAQ

What is an AI-assisted coding interview?

It is a coding round where you may or must use an AI assistant, either the employer's or your own, often in a prepared codebase, and the interviewer evaluates how you use it: understanding unfamiliar code, judging suggestions, testing changes and explaining your reasoning. Rules vary by company, so read the instructions you receive.

Can I use my own AI tool in an AI-assisted round?

Only if the company says so. Canva asks candidates to use their preferred AI tools, while Google's reported pilot provides Gemini. Amazon, Anthropic and Microsoft ban AI in interviews unless it is explicitly permitted. If your instructions don't say, ask your recruiter before the round.

How do I practice reading an unfamiliar codebase quickly?

Use real bugs from closed issues in open-source projects. Check out the commit before the fix, give yourself 10 minutes to map the code before touching anything, then fix and test it within 20 minutes. Review a recording afterwards and count unverified AI suggestions and long silences.

Do LeetCode skills still matter?

Yes. Many companies still run algorithm rounds alongside or instead of AI-assisted ones. The new rounds add skills on top: navigation, judgment and explanation in code you didn't write. We argued the same in the coding interview is not dead, the memory test is.

Sources (checked November 25, 2026)

Images: product demo screens from extrabrain.app.

Top comments (0)