productinterview.tools
MenuClose

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
  1. The 30-second version
  2. What it's really testing
  3. How to structure your answer
  4. The interview, played out
  5. The strong answer, distilled
  6. How it's scored
  7. How the answer changes by role
  8. Common mistakes
  9. More follow-ups to practise
  10. Go deeper
  11. Sources

The 30-second version

  1. Outcome: does the change make hidden tests pass without breaking others?
  2. Quality: would a reviewer merge it? Size, style, no unrelated changes.
  3. Path: did it run tests, avoid destructive commands, stay within the repository?
  4. Consistency: run each task several times.
  5. Use your own tasks, not only public benchmarks the model may have seen.

Watch it played outSee the strong answerHow it's scored

What it's really testing

  • Agent evaluation design
  • Outcome vs path
  • Benchmark contamination

How to structure your answer

  1. Define success.
  2. Outcome checks.
  3. Path checks.
  4. Consistency and cost.
  5. Task sources.

The interview, played out

A written example interview, not a real candidate or company transcript.Strong moveMissed signal
  1. Interviewer
    Your coding agent takes an issue and opens a pull request. How do you evaluate it?
  2. Candidate
    Success 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.
  3. Strong move
    Uses hidden tests from real fixes as the outcome check.
  4. Candidate
    Tests don't catch everything, so a sample of diffs gets human review: is it minimal, readable, no unrelated changes?
  5. Candidate
    Path 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.
  6. Interviewer
    Could you use public benchmarks?
  7. Missed signal
    Should raise that public tasks may be in the model's training data.
  8. Candidate
    As 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

DimensionWeakPassableStrongThe mock candidate
Problem framingJumps 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 rigourReports 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 depthUses 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-offsTreats 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.
CommunicationHard 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

Sources

Representative question: written to match technical rounds for AI product roles, not a specific reported interview.