AI Coding Interview: How to Prepare When AI Is Allowed
Table of contents
Technical interviews are changing faster than most of us noticed. In July, IEEE Spectrum described an "arms race" between candidates using hidden AI helpers and companies trying to detect them, and also a very different approach: interviews where using AI coding agents is allowed, sometimes expected. One company in that article, Factory, gives candidates about an hour to build a production-quality system or migrate a real codebase with AI agents, and grades how they plan, direct the AI, debug and explain the result, explicitly not whether the tests pass.
I have sat on both sides of the table, hiring for agency teams and being interviewed for freelance missions on PHP and Magento projects. The AI coding interview is a real shift, and it rewards a different kind of preparation. Here is how I see it, and what I would practise if I had an interview next month.
What is changing in technical interviews
For years, the coding test measured whether you could produce working code alone, under time pressure. Agents now produce plausible code in seconds, so that signal is weaker. A CNN report from May quoted Hello Interview cofounder Stefan Mai calling AI's effect on engineering interviews an "unsolved problem", and described developers who were asked to share their whole desktop to prove they were not using AI.
So companies are splitting into two camps:
- No AI, with more supervision: screen sharing, live coding, sometimes in-person rounds again. The skill tested is the classic one.
- AI allowed: you get your usual tools, and the interviewer watches how you use them. A February IEEE Spectrum piece by Brian Jenney, who runs a coding bootcamp, said Meta, Rippling and Google had begun allowing AI assistants in some technical sessions.
The first thing to do before any interview is simply to ask which camp it is. It is a normal question now, and the answer changes how you prepare.
What an AI-allowed interview really evaluates
When AI is allowed, the code is no longer the scarce thing. Judgment is. From the formats described in these articles and from my own experience reviewing candidates' work, the interviewer is looking at:
- How you frame the problem before you type a prompt: constraints, edge cases, what "done" means.
- How you split the work into steps an agent can do well, instead of one giant prompt.
- How you review the output: do you read the diff, or accept it because it compiles?
- How you debug when the agent goes in the wrong direction, which it will.
- Whether you can explain the result, line by line if asked.
That last point is where candidates fail. In the February piece, Jenney wrote that at one AI startup interviewers asked candidates to explain their first line of code, and that in his own experience around 20 percent of his candidates could not explain their working solution. That is one person's observation, not a study, but it matches what I have seen in code reviews: a working solution you cannot explain is a liability, in an interview and in production.
How I would prepare for an AI coding interview
Practising LeetCode alone does not cover this format. What I would do instead:
- Practise on a real codebase, not a blank file. Take an open-source Laravel or Magento module, give yourself a realistic task (add a feature, upgrade a dependency, fix a bug from the issue tracker) and do it with your agent, timed to an hour.
- Narrate as you work. Say out loud why you prompt what you prompt, and why you reject a suggestion. It feels strange at first; it is exactly what the interviewer wants to hear.
- Write the plan first. Five lines in a comment or a scratch file: the steps, the risks, how you will check it works. Then use the agent step by step.
- Review every diff as if a junior wrote it. Look for invented methods, missing validation, N+1 queries, swallowed exceptions. Fix one on purpose during the interview and say why.
- Know your tools well enough to be fast. Shortcuts, how to give the agent context, how to undo. Fumbling with the tool wastes the hour.
- Keep the fundamentals. You still need to read a stack trace, write a query and reason about complexity without help. Some rounds will still be AI-free.
Mistakes I see candidates make
- Prompting before thinking: pasting the whole exercise into the agent in the first minute. It signals that you would do the same with a client's production code.
- Silent acceptance: accepting a 200-line diff without reading it. Interviewers notice.
- Over-correcting: refusing to use the AI when it is allowed, to "prove" yourself. At some companies that now counts against you, because it is not how the team works.
- No tests, no checks: not running the code, not writing even one test. The agent can write the test too; the point is that you thought of it.
- Using hidden tools when AI is forbidden. Beyond the ethics, the same IEEE article describes companies building detection into their screens. Getting caught ends the process, and you would not want the job on those terms anyway.
If you are the one hiring
On the other side of the table, my advice for small teams and agencies: design the interview around the job you actually have. If your developers use agents every day, an AI-free whiteboard round tests a skill you do not need, and lets you miss the one you do. A paid, short, realistic task on a sanitised copy of a real project tells you more than three puzzle rounds. Then spend most of the debrief on questions: why this approach, what you would check before deploying, what the agent got wrong.
Whichever format you choose, tell candidates in advance. Clear rules remove most of the cheating problem, and they show respect for people's time in a market where, as the CNN piece notes, competition for open roles is tough.
Conclusion
The AI coding interview does not make technical skill irrelevant. It moves the test from "can you write this?" to "can you be trusted with an agent on our codebase?". That is a better question, honestly, and closer to what senior work has always been: understanding the problem, choosing the approach, and owning the result. Practise on real code, think out loud, read every diff, and be ready to explain the first line. If you do that, the AI is on your side of the table.