All jobs / AI engineer / AI Coding & Agentic Development
AI engineer interview question · 3–5 years
A teammate’s coding agent opens one pull request: 2,400 changed lines across 45 files, mixing a rename, a dependency bump and a new feature. CI is green.
You are the reviewer. What do you do?
The strongest answer
Ask for it to be split: the mechanical rename, the dependency bump and the feature as separate small branches, each green alone — a diff nobody can read has not been reviewed, whoever wrote it
Why it works
Exactly — agents make big diffs cheap to produce, not cheap to verify. Small single-purpose branches keep review real and rollback possible.
What a good answer covers
- Generating is cheap; reviewing is the bottleneck.
- One purpose per branch.
- Mechanical changes separate from behaviour.
- Approve only what you read.
Answers that fall short
- Close, but not the strongest: Review the feature files carefully and skim the rest, since renames and version bumps are low risk
Skimming is where a behaviour change hides inside a “rename”. If the parts were separate you would not have to guess which lines are safe. - Weak: Ask the agent to write a summary of the change and review the summary instead of the diff
The summary is the agent’s claim about the diff, not the diff. You would be reviewing a description of the code. - Red flag: Approve it; CI is green and the agent is usually right about this kind of change
Green CI proves only what the tests cover, and your approval says a human understood the change. This one says nobody did.
Who gets asked this
More AI Coding & Agentic Development questions
- 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…
- You are handing a feature to a coding agent. What goes into the task you write for it?
- You asked an assistant to write unit tests for an existing module. It produced forty tests, all green, and…