Hiring process
A practical take-home task for AI engineers that takes 2 hours, not 2 days
By Himanshu Ramchandani · Updated
Short answer
The take-home that tells you the most about an AI engineer is the job in miniature: a small AI system with something broken in it, which they have to find, fix, test and explain in 2 hours. Building something from scratch over a weekend mostly tests how much free time a candidate has, and experienced engineers with jobs often skip those tasks. Give every candidate the same task, allow the tools they use at work, and review it with them in a 30-minute call, because how they explain the fix tells you as much as the code.
Why 2 hours#
In a survey interviewing.io ran with about 700 engineers on its platform, more than 80% said a take-home should take 4 hours or less, and the most common answer was 2 hours.
Only 4% said they had ever been paid for one, and 58% thought they should be.
That's a survey of what candidates prefer, not data on who drops out, but it matches what you'd expect: the more time a task takes, the more your best candidates, the ones with jobs and other offers, will decline it.
If you need more than 2 to 3 hours of someone's time, pay for it.
Why a debugging task#
Most of an AI engineer's real work is not writing a new system, it's finding out why an existing one gives a wrong answer, a slow answer or an expensive one, and fixing it without breaking something else.
A task with a planted failure tests exactly that, and it's hard to fake, because the candidate has to explain the cause.
Research on hiring methods points the same way.
A 2022 review of decades of selection studies by Sackett and colleagues found that structured interviews predicted job performance best of the methods it compared, with an estimated validity of .42, job knowledge tests .40 and work sample tests .33, while unstructured interviews came in at .19.
So a work sample on its own isn't enough, and it works best inside a structured loop where every candidate gets the same task and the same scorecard, and the review call is a structured interview about their own work.
Example tasks#
| Task | Planted failure | What it shows |
|---|---|---|
| A RAG pipeline over 50 documents that gets some questions wrong | Tables are split across chunks | Can they trace a wrong answer back to retrieval instead of blaming the model? |
| An agent with 3 tools that sometimes loops forever | No step limit, and a tool error isn't handled | Do they add limits and handle failures? |
| An extraction script that returns invalid JSON on some inputs | No schema validation or retry | Do they validate outputs and test edge cases? |
| An API around a model that gets slow under load | Sequential calls that could run in parallel, no caching | Do they measure before they change things? |
Pick the one closest to your own system, and keep your real data out of it.
Instructions to send#
You have 2 hours. Use any tools you normally use, including AI coding assistants.
The repository contains [system]. Users report [symptom].
1. Find the cause.
2. Fix it.
3. Add a test that would have caught it.
4. Write a half-page note: what was wrong, how you found it,
how you checked the fix, and what you'd do next with more time.
We'll review it together in a 30-minute call.
Preparing the repository#
- A README that gets it running in under 5 minutes.
- 10 test cases with expected outputs, some of them failing because of the planted problem.
- One planted failure, not five, because you want to see their process, not their stamina.
- A run by someone on your team first, to check it fits in 2 hours.
AI coding assistants#
Engineers use them at work, so allowing them makes the task closer to the real job.
What you're testing then is whether they understand the failure and can check what the assistant changed, and the review call shows that within minutes.
Review call#
Ask them to walk you through the note.
Then change one condition, for example "what if half the documents were scanned PDFs?", and listen to how they reason about it.
Someone who copied a fix without understanding it struggles here, and someone who understood it usually starts asking questions about the new case.
Scoring#
Score debugging, testing, code quality and explanation from 1 to 5, with one line of evidence each, before you discuss the candidate with anyone.
The interview kit has a scorecard you can use as it is.
From the floor#
In AI Engineer HQ, one of the builds is DevFix, an agent that runs code, validates it, reflects on what went wrong and repeats until the code works.
In another session, while fixing errors in an agent Claude Code had written, I said: "We understand the code, we understand the parts of the code, and we need to fix that, that's the right approach."
A good take-home checks for the same thing.
FAQ#
Should we pay for take-home tasks?
If it takes more than 2 to 3 hours, yes.
For a 2-hour task, paying is still a good signal to candidates, and few companies do it.
What if a candidate uses an AI assistant to solve the whole thing?
That's fine, if they can explain the cause, the fix and the test in the review call.
If they can't, you've learned what you needed to.
Can we reuse the same task for every candidate?
Yes, and you should, because comparing candidates only works if they did the same task.
Change it every few months in case it gets shared.
Next step#
We send our code review notes with every builder profile, so you can see how they debug before you send a task.