Interview guide · updated December 2026

AI-assisted coding interviews: how to prepare

Some coding interviews now hand you an AI assistant. The task gets bigger, the bar moves from typing code to judging it, and the classic advice of grinding puzzles only covers part of it. This guide covers what the round looks like, what interviewers score, the mistakes assistants make, and how to practise the format before you sit it.

Video transcript

More companies now hand you an AI assistant in the coding interview. Canva says it expects candidates to use one, and candidates report that Meta has added an AI-enabled coding round to its onsite. The task changes too. Instead of one puzzle on a blank page, you get a small working codebase, with a few files and some tests, and an assistant that can read all of it.

Typing speed isn't the point. Interviewers watch how you break the work down, what you ask the assistant for, and whether you check what it gives back. That last part matters most, because assistants make plausible mistakes. An off by one, a function that doesn't exist, or a fix that passes the visible tests and fails the hidden ones.

So review every change like a teammate's. Read the diff, run the tests, add one test for the edge case, and ask why before you accept it. Expect the round to move in stages. Read the repo, fix a bug, extend a feature, handle a twist that changes the requirements, then answer questions about your own code.

So practise exactly that. Codemia's AI-assisted coding round gives you a repo, an assistant that is sometimes wrong, and an interviewer, then scores you out of 100. Pair it with the 24 lesson course. Start on codemia.io/ai-assisted-coding-interview.

60 min

a typical round

5

stages to plan for

4

checks before you accept

24

lessons in the course

What an AI-assisted coding round is

In a classic coding round you solve one or two algorithm problems from a blank editor. In an AI-assisted round you usually get a small working codebase instead: a few files, some tests, and a README. An assistant sits in the editor and can read all of it. The interviewer gives you a series of tasks on that code and watches how you work.

The assistant makes typing cheap, so the round measures something else. Can you find your way around unfamiliar code quickly? Can you break a change into steps and ask for each one precisely? And, most of all, do you notice when the assistant is wrong? The course lesson on what AI-assisted rounds measure goes through each skill.

Which companies allow AI, and how

Policies are new and change quickly, so this list only states what each company has said in public, or what candidates report where the company has not. Always confirm the rules for your own loop with your recruiter.

  1. Canva: AI expected

    Canva's engineering blog post Yes, you can use AI in our interviews says it expects candidates to use AI tools, and describes an AI-assisted coding interview for backend and frontend roles. A follow-up post gives an interviewer's view of what success looks like.

  2. Meta: an AI-enabled round, per candidates

    Candidates and interview-prep sites report a 60 minute AI-enabled coding round in Meta's onsite, piloted from late 2025, replacing one of the coding rounds. Meta's own hiring process page says candidates receive prep material, including practice in the same tool. Reports differ on how AI use is scored, so read the material you are sent.

  3. Anthropic and OpenAI: depends on the interview

    Anthropic's guidance for candidates says live interviews are done without AI unless you are told otherwise. OpenAI's interview guide says the rules vary by interview and are explained in each one's prep material.

The pattern: where AI is allowed, it is a stated part of the format, with its own prep material. Where it is not stated, assume it is not allowed. The company sheets lesson covers how to read a company's format from its prep material.

What interviewers score

Rubrics differ by company, but the same few things come up again and again. Codemia's practice round scores them out of 100 with these weights, which is a reasonable picture of where the points are:

  1. Tests passed (35)

    Visible and hidden tests at each stage. Working code still matters most.

  2. Verification (20)

    Running the tests in every stage, writing at least one test of your own, running the tests after applying a change, and catching the assistant’s mistake when it comes up.

  3. Understanding (20)

    Explaining the code, your design and the assistant’s changes when the interviewer asks.

  4. Decomposition and prompting (15)

    Breaking the work into steps and asking for one scoped change at a time, with the context it needs.

  5. Code quality (10)

    Readable, consistent code that fits the codebase it lands in.

Notice what is missing: speed of typing, and how much code the assistant wrote. Candidates who let the assistant do everything and candidates who refuse to use it both tend to lose points. See how candidates fail for the common patterns.

The mistakes assistants make

Assistants rarely produce code that looks broken. They produce code that looks right. Try it: the change below passes all seven visible tests. Select the line you would push back on.

orders/feed.py · change proposed by the assistant

Visible tests 7/7Hidden tests ?

The visible tests pass. Select the line you would push back on before accepting this change.

The assistant's change passes all 7 visible tests and fails a hidden one. The off by one is caught before the change is accepted.

The kinds of mistake worth looking for on every diff, each with a lesson:

  1. Off by one and edge cases

    Slices, loop bounds, empty inputs and the last page. Lesson.

  2. APIs that do not exist

    A confident call to a helper or library method that is not in the codebase. Lesson.

  3. Silent behaviour changes

    A refactor that also changes a default, an order or an error path. Lesson.

  4. Passing visible tests, failing hidden ones

    A fix shaped to the tests you can see. Lesson.

  5. Missing the performance requirement

    Correct, but quadratic where the twist asked for fast. Lesson.

  6. Mutating shared state

    Sorting or editing an input the caller still uses. Lesson.

A review routine for AI-written code

Treat every change from the assistant like a pull request from a teammate you have not worked with before. Four checks, every time, before you accept it. Out loud, so the interviewer hears them.

Read the diff, run the tests, add an edge-case test, ask why. Only then accept the change.
  • Read the diff

    Every line, not the summary. Check that it touches only what you asked for.
  • Run the tests

    All of them, after the change is applied, not before.
  • Add one edge-case test

    The empty input, the boundary, the duplicate. Writing a failing test first is the fastest way to prove a fix.
  • Ask why

    Ask the assistant to justify any line you would not have written. If the answer is vague, that is your signal. The full routine is in a review routine for AI diffs.

How the hour usually goes

Formats differ, but most rounds reported so far move through stages on the same codebase. This split of 60 minutes is the one Codemia's practice round uses. The biggest risk is time: candidates who spend twenty minutes reading never reach the stages worth the most.

One round in five stages: read the repo, fix a bug, extend a feature, handle a twist, then a debrief.
  1. Read the repo

    about 5 min of 60

    Open the README, the entry point and the tests. Ask the assistant to summarise how the pieces fit, then say it back in your own words.

    Watched for: whether you build a model of the code before changing it.

  2. Fix a bug

    about 15 min of 60

    Reproduce the failure with a test first, then fix it, with or without the assistant.

    Watched for: a failing test before the fix, and a fix you can explain.

  3. Extend

    about 20 min of 60

    Add a feature across a few files. Plan the steps, then ask for one scoped change at a time.

    Watched for: decomposition and precise prompts, and that every diff is read before it is applied.

  4. Twist

    about 12 min of 60

    A requirement changes, such as a new limit or a performance target. Re-plan out loud before touching code.

    Watched for: how you adapt, and whether the assistant pushes you into a rewrite you did not need.

  5. Debrief

    about 8 min of 60

    Questions about your own code: why this design, what you would test next, what the assistant got wrong.

    Watched for: that you understand everything you shipped, including the parts the assistant wrote.

For pacing advice by stage, see pacing the sixty minutes and replanning when requirements change.

A two week prep plan

An hour a day is enough. The aim is to practise the format until the review routine is a habit.

  1. Days 1 to 2: learn the format

    Read your target company's prep material. Then do the first lessons of the AI-Assisted Coding Interviews course: what the round measures, and orientation in ten minutes.
  2. Days 3 to 4: one practice round, cold

    Take an AI-assisted coding round before you study more. The report shows where your hour went and which checks you skipped.
  3. Days 5 to 8: the review routine and the mistakes

    Work through the lessons on prompting and review, from scoped asks to the six mistake types above. Use an assistant on your own code and catch at least one mistake a day.
  4. Days 9 to 11: talk while you work

    Practise narrating: what you are about to ask for and why, and what you checked. The lesson on what to narrate and the good and bad transcripts show the difference.
  5. Days 12 to 14: full rounds on a timer

    Two or three full rounds in different languages, then compare reports. Walk through a worked round between attempts. Keep a few classic algorithm problems going too, since most loops still have them.

Questions people ask

Frequently asked

What is an AI-assisted coding interview?

A coding round where you are allowed, or expected, to use an AI assistant while you work. Instead of one algorithm puzzle on a blank page, you usually get a small codebase with tests and a series of tasks: fix a bug, add a feature, adapt to a change. The interviewer watches how you direct the assistant and how you check what it produces.

Which companies use AI-assisted coding interviews?

Canva has said publicly that it expects candidates to use AI tools in its coding interviews. Candidates and interview-prep sites report that Meta added a 60 minute AI-enabled coding round to its onsite from late 2025. Policies change quickly and differ by team, so always confirm with your recruiter. Some companies, such as Anthropic, state that live interviews are done without AI unless you are told otherwise.

Can I use AI in my coding interview?

Only when the company says so. Using an assistant in a round that does not allow it is usually treated as cheating. Read the prep material, ask your recruiter if it is unclear, and practise both ways if you have both kinds of rounds coming up.

Do I still need to practise LeetCode-style problems?

Yes, for most loops. AI-assisted rounds usually replace one coding round, not all of them, and you still need to recognise an algorithm and its cost to judge what the assistant writes. Keep a smaller set of classic problems in rotation alongside AI-assisted practice.

What is the most common way to fail an AI-assisted round?

Accepting the assistant's code without checking it. Assistants produce plausible code with off by one errors, calls to functions that do not exist, or fixes that pass the visible tests and fail hidden ones. The second most common is losing the hour to reading, never getting to the later stages.

How do I practise an AI-assisted coding round?

Practise the whole format, not just prompting. Codemia's AI-assisted coding round gives you a repository, an assistant that sometimes makes a planted mistake, and an interviewer who asks about your code, then scores the round out of 100. The first round is free once you sign in.

Practise the round before you sit it

A repo, an assistant that is sometimes wrong, and an interviewer, scored out of 100. Python, TypeScript or Java. Your first round is free.

Start an AI-assisted coding round