Blog

How to Interview an Engineer Who Codes With AI

How to Interview an Engineer Who Codes With AI

How to Interview an Engineer Who Codes With AI

Engineering interviews are changing because candidates no longer write every line of code completely on their own. Many developers now use AI to generate boilerplate, suggest functions, explain unfamiliar libraries, find bugs, write tests, and review pull requests. That does not automatically make someone a weaker engineer. The real question is how well they understand the code AI produces and what they do when that code is incomplete, insecure, or simply wrong.

That changes what an AI coding interview should test. Asking a candidate to solve a programming problem without any assistance can still reveal useful technical knowledge, but it may say very little regarding how that engineer actually works day to day. A stronger interview looks at judgment, debugging, code review, testing, and the candidate’s ability to explain why a particular solution deserves to ship.

Do Not Turn the Interview into a Test of Who Can Avoid AI

If an engineer uses AI every day at work, banning it for the entire interview can create an artificial situation. You may end up measuring how quickly someone remembers syntax rather than how they approach an engineering problem in a real development environment.

A good AI coding interview should still include moments where the candidate needs to think independently, but AI use can become part of the assessment rather than something that automatically disqualifies them. Give the candidate a task, allow AI where appropriate, and watch how they interact with it. The interesting part is often not the prompt they type, but what happens after the model returns an answer.

An engineer with strong AI-assisted coding habits should be able to explain what the generated code does, identify questionable assumptions, change the output when requirements change, and reject a suggestion that does not fit the system. If the candidate accepts everything immediately and cannot explain the result, that tells you far more than seeing them type every line manually.

Ask Candidates to Explain the Code They Accept

One of the simplest ways to test an engineer who uses AI is to ask them to explain the output in their own words. Give them enough time to generate or edit a solution, then ask why they made specific decisions and what would happen under different conditions.

You might ask why a particular data structure was used, what happens when an API call fails, where validation belongs, or which part of the implementation would become expensive at scale. Someone who understands the solution should be able to follow those questions even if AI wrote part of the original code.

This also makes AI-generated code useful during the interview rather than something you need to police. The candidate can use it, but ownership of the final answer still belongs to them. If they cannot defend the code they chose to keep, that is a much clearer signal than simply knowing that AI was involved.

Give Them Imperfect AI-Generated Code

Instead of starting every candidate with an empty editor, give them a piece of code with a few realistic problems and ask them to review it. The code can include a subtle logic error, unnecessary complexity, weak error handling, a security concern, or a test that passes without actually checking the right behavior.

This is especially useful because current coding systems can produce convincing output that still requires human review. GitHub’s guidance for its own coding agents recommends reviewing and testing generated code before merging it, and it warns against relying on AI review as a replacement for human review.

During the software engineering interview, pay attention to the order in which the candidate approaches the problem. Strong engineers rarely start rewriting everything immediately. They usually try to understand intent, reproduce the issue, inspect assumptions, and decide which parts actually need changing before touching the implementation.

Test Their Debugging Process, Not Their Prompt Writing

Someone can write an impressive prompt and still struggle when the first answer fails. Debugging reveals far more because it forces the candidate to deal with uncertainty rather than a clean problem with one expected solution.

Give the candidate a failing test, unexpected output, or bug report and allow them to use AI during the investigation. Then watch what they verify themselves. Do they inspect logs? Reproduce the problem? Check the surrounding code? Challenge the explanation AI provides? Try a second approach when the first fix does not work?

A strong AI-assisted coding process still contains engineering judgment at every stage. AI can suggest a cause, but the engineer should confirm it before changing production code. It can propose a fix, but the engineer should understand what else that fix could affect.

Ask Questions That Reveal Ownership

An engineer who works effectively with AI should still take responsibility for the final implementation. The interview should therefore include questions that move past code generation and into decision-making. Useful questions include:

  • What part of this output would you verify first, and why?
  • Which assumptions did the AI make that you would want to check?
  • What would make you reject this implementation completely?
  • How would you test this before approving the change?
  • If this passed every existing test, what could still be wrong?
  • Which part would you rewrite yourself rather than ask AI to change?
  • What information would you give the model before requesting another version?

These questions work because they do not reward memorized answers. They force the candidate to show how they think while working with AI-generated code, especially when the first answer looks plausible but still needs scrutiny.

Add a Requirement Halfway Through

Real engineering work rarely stays exactly as described in the first ticket. Requirements change, edge cases appear, and an implementation that looked fine five minutes earlier may need to be reconsidered.

During the AI coding interview, change one condition after the candidate has already started. For example, tell them the function now needs to support much larger inputs, the service must work without a particular dependency, or sensitive data can no longer be sent to an external service.

Watch how they respond. A weaker candidate may simply paste the new requirement into AI and accept another complete rewrite. A stronger engineer will first consider which parts of the existing solution are affected, what can remain, what new risks have appeared, and how the change should be tested.

This is where AI-assisted coding becomes much easier to assess because you are no longer testing output speed. You are testing how well the candidate can keep control of the problem while AI continues generating suggestions.

Look at Testing More Closely

AI can generate tests very quickly, which makes the presence of a test suite less informative than it once was. The better question is if those tests actually prove anything useful. Ask candidates to review tests alongside the implementation and point out what is missing. They should be able to identify untested edge cases, weak assertions, failure paths, and cases where a generated test simply mirrors the implementation rather than checking the intended behavior.

GitHub currently recommends running automated tests and static analysis as part of reviewing AI-generated code, but human review still remains necessary because passing tests do not automatically mean the implementation meets the actual requirement.

Keep System Design Human-Led

AI can help engineers generate diagrams, list architectural options, and identify common patterns, but system design interviews should still reveal the candidate’s reasoning. Give them a realistic engineering problem and ask them to make decisions with incomplete information rather than producing the most polished diagram possible.

During a software engineering interview, listen for trade-offs. Strong candidates should be able to explain why they would choose one approach over another, which constraints matter most, where failure could happen, and what they would change if usage increased. AI can contribute ideas, but the engineer should remain capable of deciding which ideas fit the system.

What Should You Actually Be Hiring For?

The best engineer in an AI-heavy development environment is not necessarily the person who writes code fastest without assistance, nor the person who can generate the most code with AI. You want someone who can use automation without handing over responsibility for what gets shipped.

A strong AI coding interview should therefore test understanding, verification, debugging, testing, technical judgment, and ownership. Let candidates use AI where it reflects the way your engineering team works, then make them demonstrate that they can question its output, correct it, and explain the final implementation clearly.

If your hiring process needs engineers who can use AI without losing control of the code, Arthur Lawrence can help you connect with technical talent that fits the way your teams actually work. Explore Arthur Lawrence Talent to find engineers who bring strong technical judgment, practical AI experience, and the ability to take ownership of what they build.

We Are Social


Recent posts


Categories