Skip to content
Rate AI Agent
Open menu

How to run a fair AI coding agent trial on your own codebase

6 Nov 2026 · Rate AI Agent

Published results help you build a shortlist. The deciding test is your own code. A small, fair trial takes about a week and avoids the most common mistake: picking the agent that happened to impress in one demo. This guide borrows the same principles we use for our own evaluations, scaled down for a team.

1. Pick 10 to 15 real tasks

  • Take them from recently closed tickets, so you know what a correct fix looks like.
  • Mix types: bug fixes, small features, tests, a refactor.
  • Mix difficulty, and include at least a couple your team found hard.
  • Make sure each one has a clear way to check it: tests that fail before and pass after, or a precise review checklist.

Freeze the list before you start. Adding tasks halfway through, after you have seen results, biases the trial.

2. Fix the conditions

  • Start every attempt from the same commit, in a clean checkout or branch.
  • Give every agent the same written task description. Copy the ticket; don't coach one agent more than another.
  • Decide on a time limit per attempt, and whether a human may answer questions mid-task.
  • Record the agent version and model for each one. Results with different models aren't a fair comparison of agents.

3. Run each task more than once

Agents are not deterministic. Two or three attempts per task show whether a success was reliable or lucky. Our post on pass@k vs success rate explains how to combine them.

4. Grade strictly, and the same way for everyone

  • Run the checks yourself rather than trusting the agent's summary.
  • Restore any tests the agent changed before you grade. Editing a test to pass doesn't count.
  • Count an attempt as passed only if it fully meets the bar. Note partial progress separately.
  • If possible, have someone grade without knowing which agent produced the change.

5. Record more than pass or fail

  • Cost: tokens or credits used per attempt, and per successful task.
  • Time: wall-clock time to finish.
  • Review effort: how long a developer needed to check and merge the change. A cheap agent that produces hard-to-review diffs isn't cheap.
  • Notes: anything surprising, good or bad.

6. Decide with the whole picture

Look at success rate, consistency, cost per successful task and review effort together, and by type of task. You may find one agent is best for bug fixes and another for tests. With 10 to 15 tasks, small differences are noise, so look for clear gaps.

If you need a shortlist first, start with our checklist for choosing an agent. If you build an agent and want an independent version of this done on our private tasks, see Get evaluated.