If at first you don’t succeed, try, try again. It’s a saying so old that nobody is quite sure who said it first, although it was popularized in Edward Hickson’s “Moral Song” in the 1800s.
Unified data intelligence platform company Databricks thinks this truism carries forward into our use of AI agents.
“In practice, developers routinely ask agents to revise their work. It’s therefore important to evaluate how well agents can incorporate feedback, rethink their approach and fix their own mistakes,” note Krista Opsahl-Ong, Ivan Zhou, and Erich Elsen of the Databricks AI Research Team in a blog post published Thursday.
Have another go, try again
This is what has led the company to introduce its “Try Again” evaluation for coding benchmarks that measures how agents perform on what the company calls “representative tasks” today.
As for what “representative tasks” mean, we can reasonably infer that the company is referring to coding tasks that reflect the practical software development challenges agents are expected to handle in real-world, increasingly live production environments.
According to the Databricks AI Research Team, the problem is that most evaluations measure only “single-turn execution,” i.e., one attempt to deliver on a developer’s request in relation to any given codebase, environment, test, or prompt. The agent is then graded only on that first attempt.
“In practice, developers routinely ask agents to revise their work. It’s therefore important to evaluate how well agents can incorporate feedback, rethink their approach, and fix their own mistakes.”
“That tells us what an agent can solve in one-shot, but doesn’t capture its ability to recover when its first attempt fails. In practice, developers routinely ask agents to revise their work. It’s therefore important to evaluate how well agents can incorporate feedback, rethink their approach, and fix their own mistakes,” write Opsahl-Ong, Zhou, and Elsen.
The problem, it appears, is that we’ve been too kind to agents in terms of first-pass feedback, returning analysis at the level shown below:

Using Human(agents)-in-the-Loop
Databricks has stated that evaluating agentic behavior at scale typically requires creating a “simulated environment to model this feedback loop” in practice. But the team contends that software engineering units often build this in by using a second agent as a human-in-the-loop reviewer to generate tailored, multi-turn critiques.
“However, this approach adds extra complexity and new failure modes. For example, the simulator must diagnose specific bugs without leaking ground-truth solutions or test criteria, injecting variability and bias into the experiment,” note the authors.
To cross the chasm here, the team decided, rather than building a complex simulator to mimic human feedback, to analyze whether coding agents can self-correct and improve their work when given just a light feedback signal (agents are also told how many checks passed, though not which ones failed or why), simply knowing their first attempt is wrong.
Agent, you have five attempts; then you’re out
The Databricks team tested 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, respectively. In these scenarios, the agent is given up to five total attempts, each continuing from its previous solution in the same workspace.
The evaluation ends once the agent succeeds or exhausts its attempts.
“GPT-6 Sol improves over multiple attempts and ultimately overtakes Sonnet by 5 percentage points ahead. On Databricks Bench V2, iteration brings models closer together as performance begins to saturate. For example, GPT-6 Astra starts with a 9-11 point lead over both Sonnet 5.5 and GPT-6 Sol, but all three models converge to 95%-97% success by the fifth attempt,” write the authors.
CTO Aron Brand of data management and intelligence platform company Ctera tells The New Stack that every time an agent stops to ask him to approve a change or check its output, he has one more decision to shoulder. Because developers now run several agents in parallel, that could add up to hundreds of decisions a day.
“Developers should give agents tasks with a clear automated check, let them retry against it on their own up to a set limit, and review only the final result.”
“A good test suite can tell an agent to try again without a person,” Brand says. “Developers should give agents tasks with a clear automated check, let them retry against it on their own up to a set limit, and review only the final result.
“In the agentic era, the agents write the code, and the developer’s main job is judgment and taste: deciding what to build and recognizing when the result is good.”
Reject absolutism, embrace iterative pragmatism
VP of AI and architecture at software quality and testing company SmartBear, Fitz Nowlan, isn’t a fan of one-size-fits-all AI services. He reminds us of the not-too-distant past when AI agents did 80% of a task, then erased those gains by forcing developers to switch contexts.
“If you’re still waiting to bring AI agents into development or testing until they can do 100% of the work, you might as well consider yourself already out of a job,” Nowlan says. “Today’s agents can iterate alongside developers and QA engineers, picking up strong signals from minimal human input on each turn. Talented teams amplify their advantage by rejecting absolutism (i.e. perfect moonshots) and instead build on the high-quality blocks that a more iterative, pragmatic approach to AI can deliver.”
General manager of product and engineering at open source platform and tools company Suse, Rick Spencer, tells The New Stack that he has strong opinions in this space.
“The idea that any real software engineering is done by ‘one-shotting’ with AI is a naïve and destructive view held by some industry leaders, so this research aligns with real world software engineering.”
“The idea that any real software engineering is done by ‘one-shotting’ with AI is a naïve and destructive view held by some industry leaders, so this research aligns with real-world software engineering,” Spencer says.
He urges us to think about the notion that “real software engineers” (in his view) take accountability for ensuring that all requirements and constraints are met by the software they produce, with or without AI.
“This requires considerable amounts of iteration. In fact, good software engineers start by iterating on an overall architecture with the LLM, and then work with the LLM to implement each component. Iterating on each component and the overall system until the requirements and constraints are met. These findings are extremely useful for real-world evaluation,” adds Spencer.
A one-shot benchmark is a pretty poor proxy for software builds
CTO Sergio Gago of hybrid cloud architecture platform Cloudera tells The New Stack he agrees that a one-shot benchmark is “a pretty poor proxy for how software actually gets built” in live production environments.
“Developers iterate constantly,” Gago says. “They test, learn from what breaks, and adjust. Coding agents should be held to the same standard. It’s a more complex problem than whether an agent can get the answer right on its first attempt; you need to ensure said agent can understand why an approach failed, challenge its own assumptions, and take a genuinely different path.
Otherwise, says Gago, giving it five attempts just means giving it five chances to make the same mistake.
“This is why thorough evaluations (evals) and benchmarks are key on any agentic harness. The LLM behind the agent may change, but the quality of the output and the decision-making accuracy can’t fail,” he adds.
Location, location, Iteration
Databricks suggests that its work with “Try Again” 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.
The team concludes by saying that this work matters for Genie (Databricks’ AI assistant for interacting with data through natural-language conversations) and Smart Routing (Databricks’ AI model-selection and optimization mechanism), where a model’s ability to make improvements in response to user feedback delivers a more productive user experience, especially where there is a need to better reflect multi-turn workflows.
The post Try again, please: Why coding agents should go back and check their work. appeared first on The New Stack.
