Incident sheet · Enterprise AI
- System
- Enterprise AI
- Filed
- Read
- 4 min · 767 words
- Severity
- Routine
Letting coding agents retry lifts solve rates 50% and flips model rankings
Databricks researchers found that giving coding agents five attempts with minimal feedback lifts solve rates 50% or more and reorders model rankings, exposing flaws in one-shot benchmarks.

Event log
- Databricks' 'Try Again' evaluation improves coding agent pass rates by 50% or more
- On SWE-bench-Live, GPT-6 Sol overtakes Sonnet 5 by 5 percentage points after multiple attempts despite trailing by ~10 points initially
- Merged PRs per engineer at Databricks rose ~5.3x over two years with agentic coding adoption
- The method was tested on SWE-bench-Live (97 curated tasks) and Databricks Bench V2 (100 internal tasks)
- GPT-6 configurations solved 55-67% more tasks by the fifth attempt on SWE-bench-Live
A simple instruction — "not quite right, try again" — raised coding agents' pass rates by 50% or more and changed which models top the leaderboard, Databricks researchers found in a new evaluation study.
The study, authored by Krista Opsahl-Ong, Ivan Zhou and Erich Elsen, challenges how enterprises currently compare coding agents. Most benchmarks grade a single attempt. Databricks shows that first-attempt scores can substantially underestimate what an agent delivers in a real session, where developers routinely ask for revisions.
The stakes are internal as much as external. Databricks reports merged pull requests per engineer jumped roughly 5.3x over the past two years alongside widespread adoption of agentic coding tools. The company uses its evaluation results to steer Genie, its AI assistant for data-driven tasks, and Smart Routing in Unity AI Gateway, which automatically picks models for coding tasks to optimize performance and cost.
How does the 'Try Again' method work?
The researchers rejected the standard approach of simulating human feedback with a second agent acting as a critic. That path adds complexity and failure modes: the simulator must critique without leaking ground-truth solutions or injecting bias into the experiment.
Instead, they run benchmarks normally. If a solution fails a test, the agent receives a plain retry prompt stating only how many checks passed — not which ones failed or why. It continues in the same workspace, with up to five total attempts. The reported metric is cumulative solve rate: the share of tasks completed within the first N attempts.
That one change is enough to improve pass rates by 50% or more, the authors write.
What did the benchmarks show?
The team tested Codex and Claude Code agents, powered by frontier models from OpenAI and Anthropic respectively, all at high reasoning effort, on two benchmarks:
- SWE-bench-Live, where agents solve GitHub issues and are graded against tests from the ground-truth pull request. Databricks curated 97 tasks whose ground-truth patches passed in three independent runs, filtering out flaky or ungradeable tasks.
- Databricks Bench V2, an internal extension of the original Databricks Bench, with 100 tasks drawn from real internal coding agent usage. Each sample includes a task prompt, an environment with the repository commit and workspace files, and a grading rubric.
Because the researchers detected contamination in some of the latest frontier models on SWE-bench-Live, they used the last uncontaminated model versions there; on the internal benchmark they used the latest frontier models.
Can a second attempt change the winner?
Yes — and that is the study's most consequential finding for anyone choosing a model.
On SWE-bench-Live, Sonnet 5 initially outperforms GPT-6 Sol by nearly 10 percentage points. But GPT-6 Sol improves over multiple attempts and ultimately overtakes Sonnet by 5 points. On Databricks Bench V2, iteration pulls the field together as performance saturates: GPT-6 Astra starts with a 9-11 point lead over both Sonnet 5.5 and GPT-6 Sol, yet all three converge to 95%-97% success by the fifth attempt.
In plain terms: the model that wins on the first attempt is not necessarily the best model in iterative use — which is how most enterprises actually deploy these tools.
How big are the gains from retrying?
Improvements hold across the board. On SWE-bench-Live, the GPT-6 configurations evaluated solve approximately 55-67% more tasks by the fifth attempt than on the first. On Databricks Bench V2, which starts from higher success rates, the six agents still solve 8-23% more tasks by attempt five.
Agents often recover by finding overlooked edge cases or correcting overly broad assumptions when they re-examine their own solution. Recovery is not guaranteed, though. On one SWE-bench-Live format-detection task, an agent spent all five attempts refining how code recognized CSV files — while the failing check actually tested handling of invalid inputs, so the failure repeated every attempt.
The takeaway: minimal feedback still reveals an agent's ability to diagnose its own mistakes, or its tendency to refine the wrong hypothesis.
What does this mean for evaluation practice?
Databricks now runs "Try Again" as part of its evaluation toolkit to iterate quickly on Unity Gateway Smart Routing and Genie Code. For richer feedback modeling, user simulation with a critic agent remains an option when the added complexity is justified. The authors encourage other researchers and developers to adopt the method as a lightweight way to extend existing coding benchmarks.
One-line closer: a retry prompt that any developer could type is now enough to change which coding agent an enterprise should buy.
via databricks.com (Source)
More from Amara Osei
Show full bio
Correspondent covering regulation, policy and their impact on enterprise information technology and the leaders who run at CIO Monitor.
270 articles
The newsroom digest
One email a day with the stories that matter. No noise.