For hiring managers

How to assess AI-assisted coding in interviews: exercise design, interviewer prompts and a rubric

On this page
  1. What should an AI-assisted coding interview measure?
  2. How should you design the exercise?
  3. What should the interviewer say during the exercise?
  4. What does a rubric with anchors look like?
  5. What separates a strong candidate from a weak one?
  6. How do you keep it fair?
  7. What should the interviewer's notes capture?
  8. What mistakes make these interviews uninformative?
  9. Questions people ask

In a coding interview that allows AI tools, do not score whether the code works at the end; the assistant can often get there. Score how the candidate gets there: how they clarify and break down the problem, what they tell the tool, whether they read and question what it generates, how they test and debug, and whether they can explain and change every line. Tell candidates beforehand which tools are allowed, use a problem too large and ambiguous for one prompt, and change a requirement partway through so judgment shows.

This page assumes you have decided to allow AI in at least one technical round. If you are still choosing between allowing it and banning it, start with candidates using AI in interviews: a fair policy and how to prevent cheating in technical interviews.

What should an AI-assisted coding interview measure?

The skills that decide whether AI-generated code is safe to ship, plus the fundamentals needed to judge it. Canva, which wrote on June 11, 2025 that it expects backend, machine learning and frontend candidates to use AI tools such as Cursor and Claude in its technical interviews, lists questions such as whether candidates understand when and how to use AI effectively, how well they break down complex, ambiguous requirements, and whether they can identify and fix issues in AI-generated code. Turned into scoreable criteria:

CriterionWhat you are looking for
Problem framingAsks clarifying questions, states assumptions, splits the problem into pieces before prompting.
Directing the toolGives the assistant the context and constraints it needs (existing code, conventions, edge cases) and asks for small, checkable pieces.
ReviewReads generated code before accepting it; spots wrong logic, invented functions, needless complexity, security problems.
VerificationRuns the code, writes or asks for meaningful tests, checks edge cases, does not take "looks right" as done.
DebuggingForms a hypothesis when something fails and tests it, rather than re-prompting until it passes.
Judgment about the toolKnows when to write a piece by hand, when to reject a suggestion, and why.
OwnershipCan explain any line and change it without the tool when asked.

Pick four or five for a 60-minute round. Communication runs through all of them: the candidate has to think aloud for you to score most of this.

How should you design the exercise?

The problem has to leave room for judgment. A short algorithm puzzle gives the assistant the whole answer and gives you nothing to watch. Four design rules:

  1. Start from a small existing codebase, not a blank file: a few files with their own conventions, a data model and one or two tests. The tool does not know the conventions unless the candidate tells it, which is exactly what you want to see.
  2. Leave a requirement unstated that a good engineer would ask about: what happens with duplicates, how big the input can get, who calls this. Have the answer ready.
  3. Make it multi-step, so the candidate has to plan and accept code in pieces.
  4. Prepare one requirement change for the second half: a new constraint on scale, concurrency, an extra field, or a failure case. Give every candidate the same change at the same point.
MinutesStageWhat the interviewer does
0-5Rules and setupConfirms the tool works, repeats what is allowed, asks the candidate to think aloud.
5-15Understand and planAnswers clarifying questions. Notes which ones were asked.
15-40Build with the assistantWatches and asks short prompts (below). Does not help.
40-50Change requestIntroduces the prepared change. Watches how the candidate adapts the design and the tests.
50-55WalkthroughPicks a function and asks the candidate to explain it and change one thing without the tool.
55-60Candidate questionsAnswers questions about the team and how it uses AI tools.

A shorter alternative: review an AI-generated change

For a 30-minute round or a more senior candidate, give them a pull request that an assistant generated for a described task, with problems you planted: an off-by-one at a boundary, missing error handling on a network call, an injectable query, a test that asserts nothing, a new dependency that is not needed. Ask them to review it as they would a colleague's change, with the assistant available. Score what they find, how they rank it, and what they would ask the author. Keep a list of the planted issues so every interviewer scores against the same key.

What should the interviewer say during the exercise?

Open with the rules, the same words for everyone:

"You can use the assistant in this editor however you normally would, and the documentation. Please don't use another person. I'm not scoring how fast you finish or how you phrase prompts; I'm interested in how you decide what to build, how you check it, and how you'd know it's ready. Please think out loud, and ask me anything about the requirements."

Then use short, neutral prompts. They reveal judgment without steering:

  • "Before you accept that, what does it do?"
  • "How would you know this works?"
  • "What would you check before this went to production?"
  • "You wrote that part yourself. Why not the assistant?"
  • "The assistant suggested X and you didn't take it. What was wrong with it?"
  • "Without the assistant, walk me through what this function does with an empty list."

Avoid hints ("are you sure about that loop?"), comments on prompting style, and rescuing a candidate who is stuck in a loop of re-prompting. If they are stuck for several minutes, a neutral nudge is fair, as long as you give the same nudge to everyone and note it: "What's your hypothesis for why it fails?"

What does a rubric with anchors look like?

Written anchors keep interviewers scoring the same behavior the same way. A 1-4 scale for five criteria; see behaviorally anchored rating scales for how to write more.

Criterion1234
Problem framingPastes the task into the assistant without questions.Asks one question, starts before the plan is clear.Asks the key clarifying questions, states assumptions, outlines steps.Also spots the unstated requirement and plans for it before writing code.
ReviewAccepts generated code without reading it.Skims; misses a clear error that later breaks something.Reads each piece, catches most errors, rejects at least one bad suggestion with a reason.Catches subtle issues (edge cases, security, needless complexity) and explains the risk.
VerificationConsiders it done when it runs once.Runs a happy-path check only.Tests edge cases and failure paths; tests assert real behavior.Tests drive the work; checks behavior after the change request without being asked.
DebuggingRe-prompts repeatedly with "fix it."Finds the bug by trial and error.States a hypothesis, checks it, fixes the cause.Also explains why the bug happened and how to prevent it.
OwnershipCannot explain parts of the code.Explains with prompting; struggles to change it without the tool.Explains any part; makes a small change by hand.Explains trade-offs and alternatives; changes the design confidently.

Before using the rubric on candidates, have two or three of your own engineers do the exercise and score each other. Anchors that nobody agrees on need rewriting; how to train engineers to interview covers the practice sessions.

What separates a strong candidate from a weak one?

The difference is rarely the final code. It is what the candidate does between prompts.

Stronger signalsWeaker signals
Asks about input size and failure cases before promptingPastes the whole problem and accepts the first answer
Gives the tool the existing code and conventionsGets code in a different style from the codebase and does not notice
Accepts code in small pieces and reads each diffAccepts large blocks unread
Notices a call to a function that does not existLets the error surface at run time, then re-prompts
Writes a test that would have failed before the fixWrites tests the assistant generated without checking what they assert
Rejects a working but over-complex suggestion and says whyKeeps whatever passes
Adapts design and tests to the requirement changePatches the symptom of the change in one place

Canva reported that, in its pilot, the most successful candidates did not simply accept what the AI generated: they asked clarifying questions, used AI for well-defined subtasks, reviewed and improved its code and debugged well. Candidates with minimal AI experience often struggled, not because they could not code, but because they lacked judgment in guiding the tool. That second point matters for fairness.

How do you keep it fair?

  • Say it in the invitation. Which tool is available, whether using it is required or optional, and what is not allowed. Canva tells candidates in advance and recommends they practice with the tools.
  • Provide the tool, or let candidates use their own if your environment allows it. Do not make a candidate set up a paid account to interview.
  • Offer a practice environment with a sample task, so unfamiliarity with your editor is not what you end up scoring.
  • Decide whether use is required. If it is optional, score the same criteria either way: a candidate who writes most of it by hand and verifies it well should not lose points.
  • Same problem, same change, same nudges for every candidate at the same level.
  • Offer adjustments. Thinking aloud while coding is harder for some candidates; extra time or a written explanation at the end can be reasonable.

The opposite policy is also legitimate. Anthropic's guidance for candidates (last updated July 10, 2025) says live interviews are done without AI assistance unless the company indicates otherwise. Both companies' rules are written down and given to candidates in advance, which is the part to copy.

What should the interviewer's notes capture?

Decisions and the candidate's reasons, in their words, because that is what the rubric scores: "Rejected the suggested regex: 'it won't handle the empty string, and nobody will be able to read it.'" Also note which clarifying questions they asked, which bugs they found and which you had to point at, what tests they ran, any nudge you gave, and how they handled the change request.

The candidate's narration is the evidence here, so it helps to capture it rather than paraphrase it from memory. Interview Signal (interviewersignal.com) transcribes the call on the interviewer's computer and fills the scorecard with the candidate's own words as quotes. It hears what is said, not what is on the screen, so you still note what the code did. See Interview Signal for technical interviews.

What mistakes make these interviews uninformative?

  • Scoring the output. A working solution says more about the assistant than the candidate.
  • A puzzle that fits in one prompt. Leaves nothing to observe.
  • Unwritten rules. Candidates guess, and you score their guess.
  • An interviewer who helps. Hints given to some candidates and not others make the scores incomparable.
  • Skipping the walkthrough. Ownership is the criterion most likely to separate candidates, and it only shows when the tool is set aside.
  • Dropping fundamentals. A candidate cannot review code they do not understand. Canva notes it still assesses computer science fundamentals through the new format; the change request and walkthrough are where you see them.

Questions people ask

Should candidates be allowed to use AI tools in coding interviews?

Either choice is defensible if it matches how the job is done and is stated in the invitation. If your engineers use AI coding assistants every day, an interview that allows them and scores how the candidate directs, reviews and verifies the output is closer to the job. What does not work is an unwritten rule, because then nobody knows what is being scored.

How do you score a coding interview where the candidate uses an AI assistant?

Score the process rather than whether the final code runs: how the candidate clarified the requirements and broke the problem down, what context they gave the tool, whether they read and questioned what it produced, how they tested and debugged it, and whether they can explain and change every line. Use a rubric with written anchors for each level so interviewers score the same behavior the same way.

What coding problems work for AI-assisted interviews?

Problems that cannot be solved with one prompt: some ambiguity the candidate has to resolve by asking, several steps, a small existing codebase with its own conventions, and a requirement change partway through. Short algorithm puzzles do not work, because an assistant can often solve them outright and there is little left to observe.

Is an AI-assisted coding interview unfair to candidates who do not use AI tools?

It can be if the rules are a surprise or the tool is unfamiliar. Tell candidates in advance which tool is available, offer a practice environment, and decide beforehand whether using the tool is required or optional. If it is optional, score the same criteria either way, so a candidate who writes the code by hand and verifies it well is not marked down.