Skip to content
News

How to choose an AI coding agent by testing it on your own codebase

Test the agents over one week using three real tickets. Compare which patches pass, what reviewers would merge, and how much work the team still needs to do.

An advanced angular electric spacecraft thruster sits on a supported test stand, sending a restrained lilac plume into a dark test chamber.

Two agents produce a green test run. One has changed the component the team already uses. The other adds a second component to solve the same problem. Both patches can pass CI. The reviewer who will maintain the code next month can tell them apart in five minutes.

That is the kind of difference worth paying attention to when you choose an AI coding agent. A small trial on your own repository can show whether a candidate fits the work your team does, how much review it takes, and where it tends to leave work unfinished.

Choose the decision before you choose the tickets

Suppose an engineering lead needs to decide whether to buy a second coding tool for a small SaaS team. The current tool is adequate for routine fixes. The team hopes to spend less time reviewing changes that touch unfamiliar parts of the application. The trial should be able to end with “keep the current tool”, “use the second one for a specific kind of work”, or “test more before buying”.

Public benchmarks help narrow the field. Databricks' engineering team explains how it built a coding agent benchmark using real tasks from its own codebase, with tests held back during attempts and code evaluated after each run. Your test can be much smaller. Use it to decide whether a wider trial is worth the team's time.

Monday: Pick three tickets you would file anyway

Choose work with different shapes. A three ticket trial is a useful screen for a team; it cannot establish a reliable overall win rate. For a subscription web app, a reasonable sample might be:

TicketWhat a reviewer needs to see
Fix a seat count that remains stale after a user is removed.The count refreshes after removal and other accounts' cached counts are unchanged.
Add an empty state to the invoices view.The existing empty state component is reused. Loading, error, and keyboard behavior are still covered.
Replace a legacy date formatter in two views.Both views use the shared helper and preserve the intended locale and time zone behavior.

Write down the acceptance checks before either candidate starts. Use synthetic data or a test account approved for the trial. Keep any independent acceptance tests out of the checkout given to the agents. A reviewer can run them separately afterward. Include the visible checks an engineer would normally have, so the task still resembles real work.

A player moves across a squash court beneath a pale ceramic canopy.

Tuesday and Wednesday: Start each agent from the same place

Give both systems the same issue text, base commit, available evidence, and time budget. Use clean sessions and separate Git worktrees or clones. Do not let one candidate see the other's patch or comments. Write down each model, tool version, and tool or network access. If one system needs a different setup, say so. You are evaluating two configurations the team could use, and differences in those configurations are often part of the buying decision.

Agree when a person can intervene. For the first attempt, you might allow one clarification but no hints about implementation. Count timeouts and incomplete patches as outcomes. When an environment fails before an attempt can start, record the failure separately; fix it for both candidates before repeating the case. Keep the earlier record so the setup problem does not disappear from the trial.

The briefs and acceptance criteria can live in a private Swarm Space. Give both connected tools the same permitted sources and versions. Give them read access to the shared brief if the tools need to fetch it themselves. Have a human bring the results into a record only reviewers can access after both attempts are done, or keep attempt outputs in separate Spaces with separate access. Swarm can hold the brief, links to CI, and reviewer notes. Git is still where the patches live.

An open aircraft wing edge exposes flexible ribs and a mounted actuator.

Thursday: Score the work before discussing the tools

If practical, give a reviewer two labeled diffs without the agent names. Have them read each patch, run the same acceptance checks, and record whether they would merge it. Saving the observed result before the team discusses the tools helps separate an impression from a reason.

Record for each attemptHow to use it
Acceptance checks: pass, fail, or incompleteKeep the failing check and its evidence. A green existing suite cannot replace the task's acceptance checks.
Review decision: accept, revise, or rejectGive a reason tied to the diff, such as duplicate code or a regression risk.
Active reviewer minutes and required reworkTime the reading, questions, and corrections that a person actually had to do.
Elapsed time, interventions, and reported costKeep timeouts and missing cost data visible. Do not substitute a guess for a missing measurement.

Compare review time among passing patches and show the count of failed and incomplete attempts separately. Otherwise a fast answer that did no useful work can make the tool's average look better. If both patches are sound but one took more reviewer time, ask why. It may be a weak fit for that task, or the patch may be worth a longer review because it fixed a broader issue that the brief actually called for.

Friday: Decide what the evidence is good for

Read the paired outcomes by ticket before tallying a winner. Suppose both tools fix the stale count, only one follows existing UI conventions, and both struggle with the formatter. That could justify a trial for frontend work, with no change to the process for shared utilities. It would tell you almost nothing about how the candidates behave on a large new service.

Save the scorecard with the briefs, patch and CI links, and the decision about where to use each tool. When a model or a harness changes, rerun a reserved ticket or pick a fresh one from the same category. The LLM evaluation guide covers what to do when a small trial grows into a repeated evaluation. When the team adopts both tools, our guide to using multiple coding agents on one repo covers how to divide production work.

A white sea ice edge reveals its submerged layers against dark polar water.

Start with a ticket a teammate has already solved and can assess without rereading half the repo. Run it from the commit before the fix and keep the reviewers' notes. The first surprise you find will give you a better second ticket than a leaderboard would.

Swarm | How to evaluate AI coding agents on your own codebase