How Would You Evaluate a Coding Agent?
The interviewer asksYour coding agent takes a GitHub issue and opens a pull request. How do you evaluate it?
AI Product EngineerModel PMAI Platform PM (secondary)AdvancedTechnical roundRepresentative10 min
On this page
The 30-second version
- Outcome: does the change make hidden tests pass without breaking others?
- Quality: would a reviewer merge it? Size, style, no unrelated changes.
- Path: did it run tests, avoid destructive commands, stay within the repository?
- Consistency: run each task several times.
- Use your own tasks, not only public benchmarks the model may have seen.
What it's really testing
- Agent evaluation design
- Outcome vs path
- Benchmark contamination
How to structure your answer
- Define success.
- Outcome checks.
- Path checks.
- Consistency and cost.
- Task sources.
The interview, played out
- InterviewerYour coding agent takes an issue and opens a pull request. How do you evaluate it?
- CandidateSuccess is "a reviewer would merge it". Closest automated check: take resolved past issues with the tests that were added by the real fix. Hide those tests, run the agent, then run them. Plus the existing test suite must still pass.
- Strong moveUses hidden tests from real fixes as the outcome check.
- CandidateTests don't catch everything, so a sample of diffs gets human review: is it minimal, readable, no unrelated changes?
- CandidatePath checks from the trace: did it run tests before finishing, avoid destructive commands, stay inside the repository? And run each task three times; a fix that works once in three isn't reliable.
- InterviewerCould you use public benchmarks?
- Missed signalShould raise that public tasks may be in the model's training data.
- CandidateAs a reference, but the model may have seen them in training. Our own recent issues are a fairer test.
The strong answer, distilled
- Outcome: hidden tests from real fixes pass; existing suite still passes.
- Quality: sampled human review of diffs.
- Path: ran tests, no destructive commands, stayed in scope.
- Consistency: several runs per task; cost and steps tracked.
- Tasks: own recent issues; public benchmarks only as reference.
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Outcome | Compiles | Tests pass | Hidden tests from real fixes |
| Quality | None | Code review | Sampled review for minimal, clean diffs |
| Agent behaviour | Ignored | Some path checks | Path, consistency and cost |
| Validity | Public benchmark | Own tasks | Own recent tasks; contamination noted |
Round scorecard: Model PM: technical round, filled in for the mock candidate
| Dimension | Weak | Passable | Strong | The mock candidate |
|---|---|---|---|---|
| Problem framing | Jumps to a method before saying what decision the eval supports. | States the goal, but not who acts on the result or what threshold matters. | Names the decision, the owner and the cost of each kind of error before choosing a method. | Strong. Defined success as "a reviewer would merge it". |
| Measurement rigour | Reports one accuracy number, or trusts the metric without checking it. | Uses the right metrics but misses how the labels or splits could mislead. | Separates error types, uses held-out labels, and says how they'd catch fooling themselves. | Strong. Hidden tests plus review of the diff. |
| Technical depth | Uses terms loosely; can't say how the method works. | Explains the method correctly when asked. | Explains the mechanism unprompted and knows where it breaks. | Strong. Outcome, path and consistency. |
| Judgment and trade-offs | Treats every option as equally good, or picks one without reasons. | Names trade-offs but doesn't commit. | Commits to a choice, states the trade-off accepted, and what would change their mind. | Strong. Tracked cost and steps alongside success. |
| Communication | Hard to follow; no structure. | Structured, but long or missing a summary. | Signposts the plan, checks in, and lands a clear recommendation. | Passable. Mentioned contamination of public tasks only when asked. |
How the answer changes by role
| Role | What to emphasise |
|---|---|
| AI Product Engineer | The harness and traces |
| Model PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation | Capability measurement for coding |
| AI Platform PM | Evals for developers building agents on the platform |
Common mistakes
- Only checking it compiles
- Single runs per task
- Relying on public benchmarks
More follow-ups to practise
- "Some issues have no tests." Hint: write acceptance tests, or human review.
- "The agent passes tests by deleting them." Hint: protect test files; path checks.
Go deeper
- Module: Agent and RAG evals
- Framework: Eval Plan Framework
- Framework: Explain a Concept Framework
- Framework: Opening Any Interview Answer
- Lesson: Evaluating agents: outcome, path and consistency
- Lesson: Where agents fail
- Also tests: Building with AI tools
- Also tests: Eval plans and release gates
Sources
Representative question: written to match technical rounds for AI product roles, not a specific reported interview.