Skip to main content

How to run an AI-assisted coding interview

Run a live coding interview with a human interviewer, an approved AI assistant, and a small, job-relevant task in starter code. Tell candidates what AI help they can use and what you'll score, then ask them to explain their plan, review any AI suggestions they use, run a targeted test, and answer a standard follow-up. Score what the candidate shows, not just whether the code passes.

In short:

  • Set round-specific rules. Tell candidates which AI features they can use and whether AI use itself is assessed.
  • Score observable work. Rate the candidate's reasoning, patch review, and verification against defined behaviors.
  • Follow up on gaps. Rerun the affected segment if a setup failure blocks a required skill and you can't restore comparable conditions.

How to run an AI-assisted coding interview

Treat the round as a work sample: the candidate uses an approved assistant, and a human interviewer asks the questions and rates the work. That's different from an AI-led pre-screen, where the AI asks the questions. If you need to assess unaided problem-solving, disclose a separate no-assistance segment and tell candidates what you'll score there.

What to tell candidates before the interview

1. Decide whether AI use is optional or assessed.

If it's optional, score the same engineering behaviors whether or not the candidate uses it. If AI use itself is assessed, name the behavior you need to see, such as checking a suggested change against the task requirement before accepting it. Give candidates the same approved tool options and use synthetic code and data so they don't need to share sensitive material with the assistant.

2. Pilot the exact workspace with an engineer.

Use the same workspace version, question type, and access each person will have on interview day. Check chat, AI autocomplete, and automatic edits separately, then check what the interviewer can see live, what gets saved, and who can open any saved chat. Run a test with a known result to confirm the test runner works, then rehearse a disconnect and check the code, test output, chat, and remaining time separately.

3. Send the rules and a contact route.

This sample invitation assumes optional chat, no saved chat transcript, and an interviewer who can see the candidate's shared editor. Use it only if it matches the setup you confirmed.

> In this live coding round, you'll make a small change in starter code. The chat assistant in the interview workspace is optional. You may use official language and library documentation, but please don't use outside AI tools, AI autocomplete, or automatic edits. Share only the starter code and synthetic data needed for your question.

>

> We'll score how you frame the problem, explain your changes, and check your work. The interviewer can see your shared editor and any prompts or replies you show. We'll keep the code changes and test output for scoring, but the workspace won't save a chat transcript. Reply to this invitation or contact your recruiter if you have setup trouble or need an accommodation. If something breaks during the round, tell the interviewer so we can pause.

For US hiring, route accommodation requests promptly and don't require a written form. The Equal Employment Opportunity Commission's accommodation guidance says requests don't need to be in writing and the accommodation chosen must be effective. Discuss an alternative that removes the barrier without changing the skill you're assessing, such as an accessible editor.

How to choose the coding task

Pick one small change that resembles the job. Give candidates starter code, an explicit requirement, and a repeatable baseline test that shows what's wrong. Use the same core task and follow-up so interviewers can compare the work against the same expectations.

For an illustrative backend exercise, give candidates a small synthetic repository with a subtotal function that incorrectly counts canceled order lines. The subtotal should include only noncanceled lines, so a test with one active line and one canceled line should expect only the active line's amount. Ask every candidate: “What should happen if all lines are canceled, and how would you check that an order with no canceled lines still works?”

What to do during the live interview

1. Confirm permissions and run the baseline. Restate which AI features are allowed and ask the candidate to run the starting test. In the subtotal exercise, look for the expected subtotal mismatch, not an error from a broken test runner.

2. Ask for a plan before edits. Have the candidate explain what the function should do, where they'll look first, and what result would tell them they fixed the problem.

3. Review the change with the candidate. Let them work under the stated rules. Ask them to point to what they kept, changed, or rejected in any AI suggestion and explain why. If they didn't use AI, ask them to explain the equivalent decision in their own change.

4. Ask for a targeted test and the standard follow-up. Have the candidate show the test output, explain what it proves, and name what remains untested. Use the same follow-up even if the starter tests now pass.

5. Check the evidence before ending. Point to one candidate decision, one specific test result or documented blocker, and one explanation tied to the code. If a blocker prevented you from seeing a required skill, leave that skill open for follow-up.

How to score what the candidate did

Use behavioral anchors: descriptions of what the candidate does at each rating level. The U.S. Office of Personnel Management's structured interview guide recommends defining example behaviors for each proficiency level in behavioral interviews. Before launch, have engineering interviewers independently rate the same sample response, then compare which evidence each person used to apply the anchors.

This filled scorecard uses the illustrative subtotal exercise, with verification designated in advance as must-pass and 2 set as the example minimum.

Skill assessedBehavior anchorsObserved evidenceAssigned rating
Problem framing1: Starts editing without stating the requirement
2: States the requirement and expected result for the failing case
3: Also identifies behavior that should stay the same
Explains that the mixed order should total only the active line2
Patch ownership1: Cannot explain the change after a fair opportunity
2: Explains a specific change and why it meets the requirement
3: Also compares it with an alternative or explains a tradeoff
Points to the status filter in the diff and explains why it runs before the sum2
Verification1: Accepts a patch without a relevant check after a fair opportunity
2: Shows the original failure and checks the fix on a relevant edge case
3: Also checks unaffected behavior and explains what remains untested
Shows the mixed-status test fail before the fix and pass after it, then checks an all-canceled order without checking an order with no canceled lines2, meets minimum

Have interviewers submit ratings before seeing anyone else's. Each rating should cite a code change, test result, or candidate explanation that a second interviewer can use to trace the score. An observed miss on a must-pass skill can't be offset by stronger ratings elsewhere. Use Not observed when a disruption prevents a fair opportunity to show the skill, and schedule a targeted follow-up instead of treating the gap as a failure.

What to do when the interview goes off track

Use the symptom to decide what to check before scoring, changing tools, or rerunning part of the round.

What happenedPossible causeNext action
Editor disconnectsCode or test state interruptedPause scoring and check what work survived
Assistant stallsApproved AI access interruptedPause AI-dependent work and restore the approved setup instead of switching to an unapproved tool
Tests pass but miss the requirementTest cases don't exercise the changed behaviorAsk for a case that would have failed before the fix
Tests pass but the candidate can't explain the patchPatch ownership is unclearUse the standard follow-up and ask the candidate to explain a specific changed line
Candidate finishes unusually fast or a flag firesSpeed or an alert without a confirmed rule breachCheck the underlying record against the stated policy instead of treating the signal as proof

A restored chat is not enough to restart scoring. Check that the code is at the expected checkpoint, the relevant test output is available or can be reproduced, and the approved AI setup works for the skill being assessed. Then check the working time separately: the candidate should have a comparable opportunity to finish, without losing time to the outage.

Resume when the required work and approved conditions are back with comparable working time. If AI use itself is assessed, recheck it with the approved assistant. If you can't restore a fair opportunity and the evidence you already have can't support a rating, rerun only the affected segment and leave that skill Not observed in the meantime.

Before debrief, check that every required skill has either a rating tied to observable work or a follow-up that names the skill, the approved setup, and where to restart. The next interviewer should be able to pick up the missing check without asking the candidate to repeat work that already counts.

Where Litespace fits. Litespace runs role-specific AI pre-screens and gives recruiters transcripts, skill scores, and key highlights to review before human interviews. If you'd like to see how that pre-screen step could fit your workflow, book a demo.

Related articles

Ready to get started?

Use AI to help improve your recruiting!