Code review

How to run a code review interview

Tarunpreet Singh — Co-founder, DeftBench

A code review interview gives the candidate an existing change — a pull request with a description, a diff, and tests — and asks them to review it the way they would at work: find what's wrong, decide what blocks a merge, and explain why. Now that AI agents write much of the first draft, this round tests the skill that matters most: reading code critically. Run it with a realistic change, deliberately planted flaws, and scoring based on judgment rather than comment count.

What is a code review interview?

Most technical interviews ask a candidate to produce code. A code review interview asks them to evaluate it. The interviewer prepares a change, the candidate reads it, leaves comments, and then talks through what they found. The good versions look like a real pull request: a ticket or description explaining intent, a diff that touches a few files, some tests, and enough surrounding code to judge whether the change fits.

The round isn't new. It's more relevant now because the work has shifted. When an agent drafts the implementation, the engineer's job moves toward deciding whether that implementation is right — and reviewing is how that decision gets made.

Why code review interviews matter more when AI writes the code

Canva's engineering team, explaining why it now expects candidates to use AI in interviews, said almost half of its frontend and backend engineers were daily users of an AI coding tool. One of the questions its new format asks is: "Can they identify and fix issues in AI-generated code?" LeadDev's Interviewing tactics for a post-LLM world suggests the same move from the other direction: hand the candidate a large change request partly generated by an LLM and see whether they can give useful feedback that the model, without the codebase's context, wouldn't.

Both point to the same thing. An engineer who can't tell good agent output from bad will merge bad code, however fast they type the prompts. That's a more direct signal than another algorithm question, and it's harder to fake. We cover the wider shift in what technical interviews should measure in 2026.

How to run a code review interview

  1. Start from a real kind of change. A small feature, a bug fix, or a refactor of the sort your team actually ships. A toy function with a typo tests attention, not judgment.
  2. Write the context first.A short ticket, the constraint that matters (latency, a data-retention rule, a public API that can't change), and the relevant conventions. Many of the best flaws are only flaws in context.
  3. Generate a draft, then edit it by hand. Let an agent write the change, then shape it so every problem in it is deliberate. You need to know the answer key before a candidate sees it.
  4. Send it in a format they know. A pull request in a real repository or a browser IDE where they can run the tests. Reviewing a pasted snippet in a document is a different, weaker skill.
  5. Review, then discuss.Give the candidate quiet time to read and comment, then walk through their comments together. The discussion is where you learn how they prioritise and how they'd say it to a teammate.
  6. End with a decision. Ask: approve, request changes, or block? What would make you approve? A review that never reaches a verdict is unfinished.

Code review interview exercises: what to plant in the change

Plant a mix of issues at different levels, so you can tell a candidate who spots style problems from one who catches the bug that would page someone at 2 a.m. A useful spread for a change written with an agent:

  • A correctness bug that looks right. An off-by-one on a boundary, a missing null or empty case, a timezone assumption.
  • A test that asserts the bug. Agents often write tests that confirm whatever the code does. A green test suite that encodes the wrong behaviour is a strong discriminator.
  • A context violation.The code works, but breaks the constraint in the ticket — logs a field it shouldn't, changes a public response shape, adds a query inside a loop on a hot path.
  • A plausible invention.A call to a library option or internal helper that doesn't exist or doesn't behave as the comment claims.
  • A misleading description. The PR text or a code comment describes what the change was meant to do, not what it does.
  • Some honest noise.A couple of style nits and one genuinely good decision. Strong reviewers say what's good too, and don't treat a naming nit like a data leak.

What do interviewers look for in a code review interview?

Google's public guide to what a reviewer looks for is a sensible baseline: design, functionality, complexity, tests, naming, comments, style, consistency, and documentation, plus context and calling out good things. In an interview, the useful signals sit on top of that list:

  • Prioritisation. Do they find the blocking issue first, or bury it under ten style comments?
  • Reading against intent. Do they check the change against the ticket and the constraints, or only against itself?
  • Verification. Do they run the code or the tests, or reason about an edge case concretely, instead of trusting that green means correct?
  • Clear, kind comments.Would a teammate know what to change and why? Do they separate "must fix" from "consider"?
  • A defensible verdict. Can they say what it would take to approve, and hold that position when you push back?

How to score a code review interview

Score against the answer key you built, but don't turn it into a bug count. Finding four nits and missing the data leak is worse than finding only the data leak. A simple structure is to score three things separately — what they found (weighted by severity), how they communicated it, and the quality of their final decision — and to write down the specific comment or moment behind each score. Our coding interview rubric covers how to anchor and calibrate those levels across interviewers.

Two cautions. First, allow for good finds you didn't plant; if a candidate spots a real issue you missed, that's a strong signal, not a deviation. Second, don't penalise a candidate for asking about context — asking what the ticket meant is what good reviewers do.

Code review interview vs. live coding interview

They test different things, and most loops benefit from both.

  • Choose a code review interviewwhen you want to see judgment, reading speed, and communication; when the role involves reviewing a lot of agent or teammate output; or when you want a round that's cheap to standardise across candidates.
  • Choose a building round — live coding, a take-home, or an AI pair programming interview — when you need to see how someone frames an ambiguous problem, directs an agent, and gets something working end to end.

The limit of a review round is that the problem has already been framed for the candidate. It tells you whether they can judge a solution, not whether they can decide what to build.

Where DeftBench fits

DeftBenchcovers the building side, with review built in: the candidate works in a browser IDE with a real coding agent on an ambiguous problem, and the session is captured as telemetry that attributes each action to the human or the agent — so you can see which agent output they accepted, checked, or rewrote. The evaluation links each score to the moment that produced it, and a human makes the final call. It's pre-GA. For how that compares to a live-coding platform, see DeftBench vs CoderPad. If you're adding a review round to your loop and want to see how candidates judge agent output, get in touch.

Frequently asked

Related questions

A technical interview round in which the candidate reviews an existing change — usually a pull request with a description, a diff, and tests — instead of writing code from scratch. They leave comments, explain what they would block on, and discuss trade-offs. It tests reading, judgment, and communication: the parts of engineering that matter more once an AI agent writes the first draft.
It's a good idea. Reviewing agent output is now a daily task, and AI-generated code fails in characteristic ways: plausible but wrong edge cases, invented APIs, tests that assert the bug, and comments that describe what the code was meant to do. Generate a draft, then hand-edit it so every planted flaw is deliberate and you know exactly what a strong reviewer should find.
Around 45 to 60 minutes works for most roles: a few minutes to set context, 25 to 35 minutes of review, and the rest for discussing the comments. Keep the change small enough to read properly in that time — a few hundred lines at most. A change too big to read rewards skimming, which is the opposite of what you want to see.
They can if your engineers do on the job, but then the round has to be designed for it. Give the reviewer context the AI doesn't have — a ticket, a product constraint, a convention in the codebase — so the important flaws are only visible to someone who reads the change against that context. Then score what the candidate concluded and why, not who typed the comment.

Give your next candidate a problem worth solving.

We're onboarding teams in small batches. Book a 20-minute call and we'll walk you through a pilot.