All jobs / AI engineer / AI Coding & Agentic Development
AI engineer interview question · 1–3 years
You are handing a feature to a coding agent. What goes into the task you write for it?
The strongest answer
The goal and why, the files and patterns to follow, what it must not touch, and acceptance criteria it can run — the tests or commands that prove it is done
Why it works
Exactly — an agent with a runnable definition of done can check itself; without one it stops when the code merely looks finished.
What a good answer covers
- Brief the agent like a new hire.
- State the goal and the constraints.
- Point at files and patterns to follow.
- Give acceptance checks it can run.
Answers that fall short
- Close, but not the strongest: A clear description of the feature in a few sentences; the agent can read the code for everything else
A description says what to build, not when it is done or what is off limits. Constraints and acceptance checks are the missing half. - Weak: As little as possible — a long prompt confuses the model, so a single line works best
Irrelevant text hurts; relevant specification does not. One line leaves the agent to guess every decision you have already made. - Red flag: The ticket title; if the result is wrong I re-run it until something gets through review
Re-rolling until it passes moves your thinking onto the reviewer, and nobody ends up understanding the change.
Who gets asked this
More AI Coding & Agentic Development questions
- You asked an assistant to write unit tests for an existing module. It produced forty tests, all green, and…
- A teammate’s coding agent opens one pull request: 2,400 changed lines across 45 files, mixing a rename, a…
- Your team’s coding agent keeps producing working code that ignores the codebase: a second HTTP client, a new…
- A production incident is traced to agent-written code. The author says the agent wrote it; the reviewer says…
- You want to use coding agents to move about 300 modules off a deprecated internal API. How do you run that so…
- What is the difference between an AI coding assistant and a coding agent, and why does it matter for how you…
- Your coding assistant’s solution imports a library you have never heard of. What do you do before you install…