Blog · Interview guide
Coding Interviews That Allow AI Tools: What's Judged, and How AI-Written Code Goes Wrong

Picture two coding interviews in the same week. In the first, the instructions say no AI unless the company says otherwise [1]. In the second, you're expected to use an AI assistant inside a multi-file codebase [2]. Both formats are real and published. The first tests the skills you'd use without any tool. The second tests something that's easy to underrate: catching the assistant's mistakes before they become yours.
This guide covers both. It's based on employer and platform guidance from 2025 and 2026, which we rechecked on November 24, 2026, and on studies, reports and surveys from 2025 and 2026. Every benchmark figure is for models released in 2025 or 2026.
The short version
- Check the rules for every stage. Published guidance ranges from no AI by default to AI expected [1][2]. An AI button in the interview tool isn't permission on its own.
- When AI is allowed, the work around the code gets judged. The published formats describe clarifying the problem, directing the assistant, understanding what you accept, checking it, debugging and explaining your choices, alongside the quality of the code.
- Code from the newest models still goes wrong in known ways. It passes weak tests and fails stronger ones, gets the existing code wrong, names packages that don't exist, works without being secure, and in data work runs fine while giving the wrong answer. In a large 2025 developer survey, the top complaint was AI answers that are almost right [3].
- Your edge is checking you can explain. Work out the expected answer from the requirement, test for the known failures, and say clearly why you kept or changed what the assistant wrote.
- Practice both ways. Without AI for the stages that restrict it, and with AI, out loud, for the ones that allow it.
Check the rules for each stage
Published guidance doesn't split neatly into "allowed" and "banned." These are the kinds of rules we found, and what each one asks of you.
| What the rules say | Examples from published guidance | What it means for you |
|---|---|---|
| No AI unless the company says so | Take-homes and live interviews without AI unless the company says otherwise, with a published exception for one specialist take-home [1][4]; live interviews without AI unless you're invited to use it [5] | Solve, test and explain the problem yourself, and confirm which tools and resources are allowed |
| AI expected | A live format with a built-in assistant in a multi-file project, where you're expected to use it [2]; employers that insist on AI in some engineering rounds [6][7] | Use the assistant well, and let the interviewer see your judgment while you do |
| The interviewer turns it on | Platform documentation where the interviewer switches the assistant on and candidates still check what use is acceptable [8]; "guarded" modes that limit help and "unguarded" modes that allow more [9][10] | Ask what the mode allows before you rely on it |
| Agent tools | An environment where approved AI tools can look through, plan and change code in a repository, with a plan mode that doesn't edit code and an agent mode that does [11] | Review every change the agent makes as if a colleague had made it |
| An AI interviewer, but no AI for you | An AI interviewer that assesses "how you solve a programming problem without AI assistance" [12] | An AI interviewer isn't permission to use AI |
How many employers allow AI? Nobody has a reliable count. One assessment vendor's 2026 survey of about 650 developers and hiring staff found 34% don't allow AI in interviews and assessments, 29% allow it with limits, 17% allow it freely and 20% decide case by case [13]. The report doesn't say when the survey ran, how many people answered that question or what the response rate was, so read it as a rough picture, not a market figure.
That leads to our first suggestion: get the rules for each stage in writing. Ask which assistants are allowed, whether autocomplete counts, whether an agent may edit files, and whether you should say when you used AI.
AI is part of the job too. In the 254 data scientist job posts we read in November 2026, 73 mentioned using AI tools in the work itself, in the duties or the qualifications (our data scientist analysis). That's about the jobs, not about interview rules.
What gets judged when AI is allowed
We grouped what the published AI-allowed formats look for into six areas. The grouping is ours. Each source describes its own format, not a shared rubric, and how much each area counts depends on the interview [6][14][2][15][7].

| Area | What a published format says | What that looks like (our suggestion) |
|---|---|---|
| Framing | "Asked thoughtful clarifying questions about product requirements" [6] | Ask what one row of the output means, whether the values are current or historical, and where the edges are. Say the agreed requirement back before any code |
| Directing the AI | "Used AI strategically for well-defined subtasks while maintaining control of the overall solution" [6] | Hand over one clear, bounded change, with the schema and the requirement in your request. Keep the plan yourself |
| Reading the output | "Do they understand what they're accepting when they accept an AI-generated change?" [14] | Trace what the code does to your data: which rows a join matches, which rows a window includes, which library version it assumes |
| Verifying | Candidates "create a minimal repro, read the logs, and write targeted checks to prove a fix works" [7] | Work out the expected result by hand from the requirement, then test against it, along with the edge cases the requirement implies |
| Debugging | "What happened when the AI's suggestion was wrong" [15] | Find the actual cause, fix it, and rerun every earlier check |
| Explaining | "Interviewers evaluate your approach, logic, and ability to demonstrate understanding; narrating your reasoning matters" [2] | Say why the result follows from the requirement, what you rejected from the assistant and why, and what you'd test next |
The formats also say what weak looks like. One company's policy for its own hiring lists "accepting every answer out of AI as correct" and "being unable to explain your answers with depth and critical thinking" [16]. Code quality, clear structure, security and the fundamentals still count. As we read these formats, they haven't stopped judging the code. They've made the work around it part of what's judged.
How AI-written code goes wrong: the published evidence
This is the part to know well, because every failure below is something you can check for out loud.
A quick word on the numbers. The benchmarks tested models released in 2025 or 2026, and the surveys asked developers in 2025 and 2026 about the tools they were using. Some benchmarks reuse older tasks, but the model outputs are new. Most of these are benchmarks rather than interviews, and models keep changing. So the figures show what kinds of mistakes current models make, not how often yours will.
It passes the tests and still isn't right
A 2026 study took coding agents from a popular benchmark of 500 real GitHub issues and reran their "solved" patches against stronger tests. An agent built on Doubao-Seed-Code dropped from 78.80% of the issues solved to 62.20%. One built on Gemini 3 Pro Preview dropped from 77.40% to 65.40%, so between the two, the order flipped [17]. Stronger tests can be wrong too, and the authors checked for that. Still, a pass tells you as much about the tests as about the code.
Another benchmark gave models 328 Python tasks that each need a specific library version. Some of the tests were visible to the model and some were hidden. Judged by the tests it could see, Gemini 2.5 Pro's first answers solved 61.0% of the tasks. Judged by the hidden tests, they solved 50.0%. When it was allowed to fix its code against the visible tests, both numbers went up, to 73.8% and 61.3%, and the gap got wider [18].
In the interview, work out what the answer should be before you ask the assistant for tests. A test it writes can share the same wrong idea as its code, and then the two agree with each other. Getting your visible tests to pass doesn't make the code right.
It gets the existing code wrong
A 2026 study read the step-by-step reasoning of four open-weight models from 2025 and 2026 while they worked on 100 tasks from a benchmark of real repository issues. Two-thirds of the failed fixes (127 of 188) went back to at least one specific false belief in the model's reasoning. The study's automated check flagged 5.5% of the models' claims about the requirement as false, compared with 13.5% of their claims about how the existing code worked and 14.7% of their claims about how their own fix worked. In a sample checked by hand, the most common kind of false claim (53.3%) described a real piece of code wrongly. Pointing at the wrong code, or at code that doesn't exist, was less common [19].
That's four open models on one benchmark. But in this study, the models were wrong about the code more often than about the request.
In the interview, when the assistant tells you what a function, a table or a column does, check it. Open the code, print a few rows, or run the function on an input where you already know the answer.
It's often almost right
In a large developer survey run in May and June 2025, the most common complaint about AI tools was "AI solutions that are almost right, but not quite." 66% of the 31,476 people who answered that question picked it, and 45% said debugging AI-written code takes more time [3]. In the 2026 round of the same survey, run from June to August, 48% of 14,304 people said they trust AI output "when I can easily verify the output," and 7% trust it with important decisions [20].
These are people describing their own experience, not measured error rates. They show how much near misses frustrate developers, and that trust depends on being able to check.
In the interview, don't repeat the assistant's explanation back. Run the code on a case where you already know the answer.
It names packages that don't exist
A 2026 study collected 199,840 Python and JavaScript answers from five current models in April 2026, including Claude Sonnet 4.6 and GPT-5.4-mini. In November it checked the packages they named against the live package registries. Depending on the model, 3.63% to 5.02% of the package names it pulled out didn't exist, and 2.15% to 3.39% of all answers named at least one [21]. A made-up name isn't malware. But anyone can register a name a model invents, so installing whatever the assistant suggests without checking is a real risk.
Library versions trip models up too. In the version-specific benchmark above, Gemini 2.5 Pro's first answers called every function the reference solution used in 47.7% of tasks, although a different set of calls can also be correct [18].
In the interview, before you install a package the assistant names, make sure it's the one you meant, from the publisher you expect. If the code calls a function you don't recognize, check it against the version you actually have installed.
It works, but it isn't secure
One 2026 benchmark gave coding agents 186 feature requests in real open-source projects. In each project, a human had once built that feature with a security hole, and together the tasks cover 79 kinds of weakness. The setup with the best functional results, an agent built on Claude 4 Sonnet, got 57.0% of the tasks working but only 11.8% both working and secure. Put another way, 79.3% of its working solutions had a vulnerability [22]. The tasks were picked because they're risky, so that isn't a rate for everyday code.
Another 2026 benchmark, with 318 C and C++ tasks in 27 real repositories, found the same pattern. An agent using GPT-5 got working code 79.6% of the time, and code that both worked and held up against a known exploit 51.3% of the time. For an agent using Claude Sonnet 4.5, the numbers were 74.5% and 50.3% [23].
The newest numbers come from a code-security vendor's Fall 2026 report. It tested 17 recent models on 80 tasks where a common security mistake is easy to make: SQL injection, cross-site scripting, log injection and weak cryptography. The two best, Claude Opus 5.5 and GPT-6-Sol, passed the security checks on 73% of tasks. In the report's own words, "The best model available still fails on roughly one in four security tasks." The vendor used its own scanner and didn't check whether the code worked [24].
In the interview, when code touches user input, database queries, files, secrets or logins, say what you're checking for and then check it. A parameterized query instead of a string pasted into SQL is the classic example. Code that works isn't proof that it's safe.
In data work, it runs and gives the wrong answer
With data code, "it ran" doesn't mean the analysis is right. In a September 2026 experiment, Claude Sonnet 5 wrote Python for 30 official-statistics tasks on seven public datasets, three times each. Given the task, the dataset's name and the output format, but no documentation, 71 of the 90 programs ran, and 46 of those 71 gave a wrong answer with no error.
Adding the datasets' documentation raised the share of exactly right answers from 27.8% to 51.1%. With the documentation and up to three tries with error feedback, all 90 programs ran, but 21 of them (23.3%) were still quietly wrong: the wrong filter, values, units or shape of output [25]. As the author put it, "even in the best condition, one executable answer in five was silently wrong."
It's one model on 30 tasks, in a preprint by a single author. The lessons still carry over. A program that ran is a claim you still have to check, and the data's documentation belongs in your request.
In the interview, check what the result means, not just that it ran. How many rows went in and came out? Did a join change the row count? Does a time window use only data that was available at that moment? Were missing values dropped without anyone deciding to?
Why understanding still gets checked
The published formats ask two different questions: is the code finished, and do you understand it? One asks directly whether candidates "understand what they're accepting when they accept an AI-generated change" [14]. Another evaluates "your approach, logic, and ability to demonstrate understanding" [2]. The failures above show why. A finished-looking answer still needs checking, and understanding the code is what lets you pick the right checks and explain the result.
The formats also keep changing as models get better. One employer described redesigning an AI-allowed specialist take-home more than once as new models caught up with it [4]. So prepare to show both: code that works, and that you understand it.
How to prepare for either policy
These are our suggestions, not instructions from any employer.
- Get the rules for each stage in writing. Which assistants, whether autocomplete counts, whether an agent may edit files, whether looking up documentation is fine, and whether to say when you used AI. A button in the interview tool, or what an earlier round allowed, doesn't set the rules for this one.
- Practice without AI. Turn off completions and chat, pick a fresh problem, explain your approach, then test and debug it. That gets you ready for the stages that restrict AI, and for the moment the assistant is wrong.
- Practice with AI, out loud, in six steps. Frame the problem, hand over one bounded change, read what comes back, check it, debug it and explain it. Record yourself once and listen for the moments you accepted something without saying why.
- Work out the expected answer before you see the code. A tiny dataset you can compute by hand is a quick, independent check. Include one edge case and one case that should return nothing.
- Keep a checklist of the known failures. A wrong claim about what the existing code or data does, a missed edge case, a package or function that doesn't exist in your version, code that works but isn't secure (inputs, queries, secrets) and, for data work, the row count through each join, time windows, missing values and rows that disappear without a word.
- Watch the clock, not the feeling. If the assistant has rewritten the same function twice and it's still wrong, write it yourself.
- Close the assistant and explain. After each practice session, walk through the data flow, the assumptions and one alternative, with no help.
- Be open about using AI. Follow whatever disclosure the interview asks for, and say plainly when a suggestion didn't help and what you did instead.
What this evidence can't tell you
- How often your assistant will make each mistake in an interview. The benchmarks cover particular models on particular tasks, and the surveys describe the people who answered them. None of them gives a mistake rate for interviews.
- How common AI-allowed interviews are. The surveys we found don't support a market-wide number.
- Whether working with an assistant reduces what you learn or understand. The studies cited here don't test it.
- Whether developers using today's assistants write less secure code. The security studies above test the code, not the people.
- Whether these formats predict job performance better than interviews without AI. None of the sources here tests it.
- That every interview weighs our six areas the same way. The grouping is ours.
Questions readers ask
Can I use AI in a coding interview?
Follow the instructions for that stage. Published guidance ranges from no AI unless the company says otherwise to AI expected [1][2][5]. If it isn't clear, ask, and get the answer in writing.
What do interviewers look for when AI is allowed?
The published formats describe clarifying the problem, using the assistant for clear, bounded pieces while you stay in control, understanding what you accept, checking it with targeted tests, debugging when the AI is wrong, and explaining your reasoning [6][14][2][7]. Code quality and the fundamentals still count, and how much each part weighs depends on the interview.
What mistakes does AI-generated code make?
Studies of 2025 and 2026 models document code that passes a benchmark's tests but fails stronger ones, wrong beliefs about how existing code works, made-up package names, code that works but isn't secure, and data code that runs but gives the wrong answer [17][19][21][22][25]. How often it happens depends on the model, the task and the date.
How do I practice for an AI-assisted coding interview?
Take a small task and work out the expected result by hand. Hand one bounded piece to an assistant, then read it, test it, fix it and explain it out loud. Then do a round without AI, so you're ready either way.
Sources
Primary employer statements, platform documentation and research. Employer and platform sources were opened on November 24, 2026, and research sources on November 29, 2026; publication and update dates are shown, and undated pages are marked. Research figures come from 2025 and 2026 studies and surveys, and benchmark figures are for models released in those years; each figure belongs to the models, tasks and date of its study. These examples don't show how common a format is or whether it predicts job performance. Policies change: follow the instructions for your own interview. Naming a source isn't an endorsement.
[1] Candidate guidance on AI use in one AI company's hiring process, updated July 10, 2025 (restricted unless stated otherwise, with explicit exceptions). Link
[2] An interview platform's candidate prep guide for one AI-assisted live format, updated May 27, 2026 (that format only). Link
[3] "2025 Developer Survey: AI", a developer Q&A site's annual survey, fielded May 29 to June 23, 2025 (49,009 responses from 177 countries, recruited mainly through the site's own channels; frustrations item answered by 31,476). Link
[4] Tristan Hume, "Designing AI-resistant technical evaluations", an employer's engineering article, January 21, 2026 (a specialist performance-engineering take-home). Link
[5] Raj Prashad, "Our stance on AI and Interviewing", an employer's careers blog, October 9, 2025. Link
[6] Simon Newton, "Yes, You Can Use AI in Our Interviews. In fact, we insist", an employer's engineering blog, June 11, 2025 (named engineering roles; the screening pilot covers backend and frontend). Link
[7] Ivan Rudovol and Alex Danilychev, an employer's careers blog post on rebuilding its engineering interviews around AI, March 19, 2026. Link
[8] "Interview preparation guide" for candidates, an interview platform's documentation, updated October 16, 2026 (interviewer-enabled AI access). Link
[9] "AI-Assisted Interviews", a second interview platform's knowledge base (legacy interview experience), updated November 2026. Link
[10] "AI Assistant in Interviews", the second platform's knowledge base (new interview experience), updated October 2026. Link
[11] The second platform's guide to its agent environment in interviews, updated November 24, 2026. Link
[12] The second platform's candidate guide to coding questions with its AI interviewer, updated November 2026. Link
[13] "State of Tech Hiring 2026", an assessment vendor's survey report, 2026 (about 650 respondents; field dates and response rate not given). Link
[14] "Interviewing Engineers in the AI Era: Lessons from a Year of Rebuilding", an employer's blog, July 13, 2026. Link
[15] Alwyn Johnson, "How to Evaluate Engineers in the AI Era: Lessons from Six Months of AI-Enabled Technical Interviews", an interview vendor's blog, April 28, 2026 (a vendor's practice account). Link
[16] An assessment vendor's published policy on AI in its own hiring interviews, undated, accessed November 24, 2026. Link
[17] Boxi Yu and others, "SWE-ABS: Adversarial Benchmark Strengthening Exposes Inflated Success Rates on Test-based Benchmark", ICML 2026; arXiv preprint version 1, February 28, 2026 (Table 1: agents built on Doubao-Seed-Code and Gemini 3 Pro Preview, submitted in 2025). arXiv
[18] Diganta Misra and others, "GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilities", arXiv preprint version 2, July 21, 2025 (Gemini 2.5 Pro figures, Table 1). arXiv
[19] You Wang and others, "From Faulty Claims to Incorrect Patches: An Empirical Study of Task-Grounded Reasoning in Coding Agents", arXiv preprint, October 23, 2026 (four open-weight models from 2025 and 2026). arXiv
[20] "2026 Developer Survey: AI data", a developer Q&A site's annual survey, fielded June 23 to August 5, 2026 (30,903 valid responses from 169 countries; trust item answered by 14,304). Link
[21] Aleksandr Churilov, "The Range Shrinks, the Threat Remains: Re-evaluating LLM Package Hallucinations on the 2026 Frontier-Model Cohort", arXiv preprint version 4, November 9, 2026 (code generated April 22 to 28, 2026). arXiv
[22] Songwen Zhao and others, "Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks", ICML 2026; arXiv preprint version 4, September 21, 2026 (the revised 186-task results). arXiv
[23] Chihao Shen and others, "SecRepoBench: Benchmarking Code Agents for Secure Code Completion in Real-World Repositories", LLM4Code 2026; arXiv preprint version 3, February 14, 2026 (Table 2). arXiv
[24] "GenAI Code Security Report, Fall 2026", a code-security vendor's report, October 2026 (17 models, 80 tasks; security checked with the vendor's own scanner; functional correctness not tested). Link
[25] Sabina-Cristiana Necula, "Can Coding Agents Reproduce Official Statistics? Metadata, Retry Budget and the Limits of Execution Feedback in a Controlled Eurostat Benchmark", arXiv preprint, September 2, 2026 (runs on September 2, 2026). arXiv
Sagar Dhakal, PhD, is an AI consultant and the founder of Role Factor.