- AI coding agents are useful but it can be hard to measure how useful.
- The way that agentic coding performance is typically benchmarked measures performance after a single agent pass, whereas most real-world workflows involve a human in the loop providing feedback.
- We introduce a new mechanism that is more realistic and informative than the one-shot approach, without introducing the complexity of human simulation – iterative trials.
Coding agents are transforming software engineering, and evidence is emerging that they act as a large multiplier on productivity. For example, the rate of merged PRs per contributor on the research team at Databricks has grown by ~5x since the beginning of the year, which coincides with widespread adoption of agentic coding tools.

As coding agents become an increasingly important part of how we build software, we need better ways to measure and improve their performance. This is especially important at Databricks, where our research team is consistently iterating on new methods for products like Genie Code and Smart Routing for Unity Gateway to deliver the best possible performance at the lowest cost for our customers.
To effectively iterate on these systems, we need reliable ways to measure how agents perform on representative tasks. Unfortunately, current coding benchmarks don’t reliably capture the iterative way that humans interact with coding agents in practice. Standard benchmarks will supply a codebase, environment, tests, and a task prompt. The agent runs once with these inputs and is evaluated on its first attempt at a solution. In practice, however, coding workflows rarely end after a single attempt. When an agent produces a solution that isn't quite right, users typically ask it to revise its work rather than starting over. This makes an agent's ability to incorporate feedback and iterate an important part of its overall performance.
One way to make benchmarks more representative of these interactions is through user simulation: introducing another AI system that plays the role of a human to provide realistic follow-up feedback to the agent. While this is a promising approach, it also introduces significant complexity. Feedback needs to be tailored to each task and the agent's particular mistakes, while avoiding the accidental leakage of ground-truth solutions or evaluation criteria. In practice, this means building and validating an entirely separate AI system just to run the benchmark, introducing another source of variability and potential bias.
We wanted to see if we could capture the benefit of iterative evaluation without that additional complexity.
Introducing the “Try Again” Evaluation Protocol
It turns out that one simple tweak makes standard coding benchmarks substantially more informative: just ask the agent to try again when it fails.

The “Try Again” evaluation protocol, compared with the standard coding benchmark approach, and a real human workflow. Just like a real human workflow, the try again framework automatically provides high level feedback “Not quite right, try again…” when the agent’s original solution doesn’t meet the desired bar.
Humans rarely give up the first time the outcome isn’t what they want; sometimes they can’t even articulate exactly what the problem is, but they know there is a problem. So that’s why we are introducing what we call the “try again” extension to coding benchmarks. We find that with this extension the model rankings, strengths, and solve rates more closely match our experience of using the models.
Coding benchmarks are run normally, but if a model’s solution fails to pass all the tests, it is simply told to “Try Again” through the following feedback:
We don't provide specific failing test cases, just the number of checks that passed. This mirrors how users often interact with coding agents in practice: they can tell when something isn't working, even if they can't pinpoint exactly what's wrong.
That’s it, but it’s enough to improve pass rates by 50% or more.
Experiments & Results
We tested out this approach on two coding benchmarks, SWE-bench Live and Databricks Bench V2, using Codex and Claude Code agents powered by frontier models from OpenAI and Anthropic, respectivelyWe identified some cases of contamination on SWE Bench Live in some of the latest frontier models, so defaulted to using the last model versions where no contamination was detected. Because Databricks Bench V2 is an internal benchmark, we used all the latest frontier models in this evaluation. . In these experiments, the agent is given up to five total attempts, continuing from its previous solution in the same workspace. Evaluation ends once the agent succeeds or exhausts its attempts. We report cumulative solve rate: the percentage of tasks successfully completed within the first N attempts.
We first evaluated on SWE-bench Live, a continuously updated benchmark where agents solve GitHub issues and are graded against tests from the ground-truth PR. For fast, reliable iteration, we curated 97 tasks whose ground-truth patches passed in three independent runs, filtering out flaky or ungradeable tasks.

We also evaluated on an internal benchmark, Databricks Bench V2, which consists of 100 tasks that we built at Databricks from internal coding agent usage. Each sample consists of an input prompt describing the user’s task, an environment including the repository commit and other relevant workspace files, and a rubric which is used to evaluate the agent’s performance on the task.

Running agents configured to “try again” on these benchmarks leads to a few key findings.
One-shot benchmarks can lead to different conclusions about which agents perform best
One of the most interesting findings is that model rankings can change when agents are given opportunities to revise their solutions. On SWE-bench Live, Sonnet 5 initially outperforms GPT-6 Sol by nearly 10 percentage points. However, Sol improves more through iteration and ultimately overtakes Sonnet, finishing at 51.9% versus 47.4%. On Databricks Bench V2, iteration instead brings models closer together as performance begins to saturate. Astra's initial 9–11 percentage point lead over Sonnet 5.5 and Sol largely disappears, with all three reaching 95–97% success by the fifth attempt.
This highlights a limitation of traditional one-shot evaluations: the model that's best at solving a problem on its first attempt isn't necessarily the model that's best at solving it through iteration. For Smart Routing, this matters because we want to select models that optimize quality and cost across an entire workflow, rather than just a single attempt. For Genie Code, evaluating these behaviors helps us understand how effectively different agents respond to high level feedback, and where there's room to improve their ability to self-correct.
Most agents’ performance improves continuously over the 5 try-again attempts.
Most agents' performance improves continuously over five attempts, highlighting their ability to recover from mistakes even with minimal feedback. On SWE-bench Live, the GPT-6 configurations we evaluated solve approximately 55–67% more tasks by the fifth attempt than on their first attempt. Databricks Bench V2 starts from higher success rates, but still gains between 7 and 17 percentage points across the six models. These improvements suggest that a single attempt can substantially underestimate what an agent is capable of accomplishing in an iterative workflow.
“Try again” exposes successful and failed strategies for self-reflection
Even with little feedback from the ‘try again’ message regarding what went wrong, when agents re-examine the task and their own solution, they often discover overlooked edge cases or correct any overly broad assumptions from their earlier attempt. However, sometimes agents will simply go deeper into refining the wrong hypothesis and fail to recover. For example, on a format-detection task in SWE-bench Live, the agent spent all 5 attempts improving how the code recognized CSV files, whereas the failing check tested to see how the code handled invalid inputs, and therefore continued to fail after every attempt. This illustrates how agents can both succeed and struggle to diagnose and recover from their own mistakes, a behavior that iterative evaluation techniques like “Try Again” help us better understand.
Conclusion
Traditional coding benchmarks measure whether an agent can solve a task on its first attempt. But in practice, we rarely use coding agents this way. We ask them to revise their solutions, correct mistakes, and keep working until the result meets our needs.
The “Try Again” framework offers a simple way to extend benchmarks out-of-the-box to better simulate these iterative workflows. Across two coding benchmarks, we find that this small change produces substantial improvements in solve rates and reveals differences in model performance that aren't apparent from one-shot evaluation.
Internally, we've started using “Try Again” as a first-line approach to extend coding benchmarks to better reflect multi-turn workflows. It's one of the tools in our evaluation toolkit that helps quickly iterate on new methods for Unity Gateway Smart Routing and Genie Code to deliver the best possible performance and cost for our customers.
We encourage other researchers and developers to adopt this approach as a lightweight extension to existing coding benchmarks. To model richer, more nuanced feedback, user simulation remains a valuable approach that teams can invest in longer term where the additional complexity is justified.
1We identified some cases of contamination on SWE Bench Live in some of the latest frontier models, so defaulted to using the last model versions where no contamination was detected. Because Databricks Bench V2 is an internal benchmark, we used all the latest frontier models in this evaluation.
Related tags:AI Research and Security Threat Research
Get the latest posts in your inbox
Subscribe to our blog and get the latest posts delivered to your inbox.
AI Trends