Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
166446 stories
·
33 followers

Try again, please: Why coding agents should go back and check their work.

1 Share

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.

Read the whole story
alvinashcraft
47 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Week in Review: Most popular stories on GeekWire for the week of Nov. 29, 2026

1 Share

Get caught up on the latest technology and startup news from the past week. Here are the most popular stories on GeekWire for the week of Nov. 29, 2026.

Sign up to receive these updates every Sunday in your inbox by subscribing to our GeekWire Weekly email newsletter.

Most popular stories on GeekWire

Read the whole story
alvinashcraft
47 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Implementing the Saga Pattern in .NET: A Practical Guide to Distributed Transactions

1 Share
This article explains how to implement the Saga Pattern in a .NET application, focusing on managing distributed transactions across microservices. It covers key concepts like orchestration, message-based communication using MassTransit and RabbitMQ, and handling compensations during failures. The guide includes practical tips for building a resilient e-commerce workflow with ASP.NET Core, PostgreSQL, and Docker.

Read the whole story
alvinashcraft
47 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

I tried out Minecraft modding

1 Share

This is a very different topic from what I normally do, I know! But there are so many things in the modding scene that I was surprised about due to my background that I had to write about it. If anyone is following me due to the posts on performance, low-level coding, and algorithms, I think you might appreciate the change in perspective I approach this from.

Read the whole story
alvinashcraft
1 hour ago
reply
Pennsylvania, USA
Share this story
Delete

Does Stop Reach the Model? Test Cancellation Through a Real Next.js Route

1 Share

A Stop button can freeze the text on screen while the server continues generating. From the user's perspective, the interaction has ended. From the provider's perspective, work may still be running.

That gap crosses several boundaries: the component, the HTTP connection, the Next.js request signal, the AI SDK, and the provider adapter. Testing only a callback or a route-shaped function leaves the runtime boundary untested.

The companion package starts a real local Next.js server and sends HTTP requests through an App Router route. A deterministic provider fixture makes completion, cancellation, and failure observable without a cloud API key.

Make the cancellation chain explicit

The client creates one AbortController for each generation. Stop aborts that controller. Starting another generation aborts the previous controller and increments a generation identifier, so a late result cannot update the new interaction.

The server forwards the request's signal into the model operation:

const result = streamText({
  model,
  prompt: "Generate a synthetic fixture.",
  maxRetries: 0,
  abortSignal: req.signal,
  onAbort: () => finish("aborted"),
  onError: () => finish("failed"),
  onEnd: () => finish(req.signal.aborted ? "aborted" : "completed"),
});

This excerpt targets the tested ai@7.0.177 contract. The registry has moved since that run, so keep the lockfile when reproducing it and re-check callback names before upgrading. Copying examples from another major or patch version can change the behavior under discussion.

AI SDK's stopping guide explains the signal path and runtime dependency. Forwarding req.signal matters only if the server runtime propagates the disconnected client into that signal.

Client abort travels through the HTTP request and route signal to the provider; completed, aborted, and failed remain distinct terminal records.

Use a provider that can expose the boundary

The fixture uses the SDK's testing utilities and MockLanguageModelV4. It emits a first text chunk immediately, then follows one of three modes.

In completion mode it finishes normally. In hold mode it waits, giving the client a deterministic opportunity to disconnect after receiving data. In error mode it emits a provider error through the model stream protocol.

The provider also observes the signal passed by the SDK and records provider-abort-observed. That record is the important addition. A client-side AbortError alone cannot prove the server or provider observed cancellation.

The fixture performs no external inference. Its purpose is to test signal propagation and terminal-state handling through the framework, not to measure a provider's billing or cancellation latency.

Keep one terminal state per operation

The route creates a server-generated run identifier and uses a small guard around terminal recording:

let terminal = false;
const finish = (event: string) => {
  if (!terminal) {
    terminal = true;
    record(id, event);
  }
};

Several lifecycle events can occur near one another. A provider error can be followed by response closure; an abort can race with final stream handling. The guard prevents a later callback from rewriting an operation that already has a terminal result.

The package keeps a bounded in-memory journal solely for the local experiment. A production implementation would use durable, access-controlled telemetry and a defined policy for partial output. The journal endpoint is not a production trace API.

Do not lose errors during stream conversion

The route returns a text stream using createTextStreamResponse() and toTextStream(). A plain text channel contains text; it does not automatically communicate every structured provider event to the client.

The example therefore checks the full stream for error parts before converting text deltas. An error terminates the response stream, allowing the client's read loop to enter its failure path. The server records the provider failure separately.

This detail emerged while testing the fixture. Simply throwing from the synthetic stream producer did not exercise the intended provider-error callback path. Emitting the model protocol's error part and testing the response boundary produced an inspectable failure case.

For a richer chat interface, use a protocol that carries structured lifecycle events and define how partial text is presented after failure. The small text fixture keeps the cancellation experiment readable.

Test over HTTP, after the first chunk

The test launches the pinned Next.js development server, waits for the route to become available, and exercises all three modes. It does not call the route handler directly.

For cancellation, it reads the first response chunk, aborts the client request, and waits for both the server's aborted record and the provider's abort observation. It asserts that the run was not also recorded as completed.

For normal completion, it consumes the response and checks the completed record. For provider failure, it checks the failed record and verifies that completion was not recorded.

That real HTTP test passed locally with Next.js 16.4.6 and AI SDK 7.0.177 on Node 24. It establishes behavior for the tested local runtime and synthetic provider. It does not establish behavior behind a deployed proxy or with an external provider.

Check the deployment boundary separately

Next.js Route Handlers use web request and response APIs, but hosting behavior still matters. The AI SDK guidance calls out cancellation support for the relevant Vercel function configuration; the package includes supportsCancellation: true in its deployment example.

No deployment was performed for this article. Repeat the same first-chunk cancellation test against the intended hosting environment and provider before claiming that Stop halts production generation.

Also decide whether the product needs resumable streams. The SDK documents constraints between abort-based stopping and resumable streaming; they should not be enabled as independent conveniences without considering their interaction.

Make Stop a verified behavior

The client also aborts on unmount and ignores stale generations. Those measures keep the UI coherent. The HTTP test establishes the deeper claim: in the tested setup, the cancellation request reaches the provider boundary.

That is the useful standard for an AI interface. A button label describes an intention; an observed signal chain shows what the application actually stops.

Read the whole story
alvinashcraft
1 hour ago
reply
Pennsylvania, USA
Share this story
Delete

The Last Human Release of SQLite

1 Share
"SQLite version 3.54.1, which is the last public release, was 100% human written," D. Richard Hipp tells HackerNoon. But "That will be the last release like that." The bug reports come in all day now. They come in constantly, he says, and they keep coming while a man in his sixties sits in Charlotte, North Carolina, reading them one by one. Some days there are ten, some days twenty. On a couple of days this autumn there were more than forty. On the morning I talk to him, December 3, 2026, thirteen had already come in. Most of them weren't written by a person. "Something happened in the middle of October, and I don't know what," D. Richard Hipp tells me over a video call. "Suddenly we just got this huge onslaught." Most of the reports are "trivial little things that a human would never hit." Many aren't bugs at all; the machine has misread the documentation. "But regardless of whether they're true or false, they still have to be analyzed and classified and dealt with, and it takes time." His team used to handle three or four bugs a day. He hasn't been away from the screen much since. "I feel like the past few months I've been at battle," he says. "... Bugs are coming in constantly, and the orc hordes are at the gate; I have to hold the line." It's a beautiful 5,000-word profile written by systems engineer Bruce Li. "Look at Hipp's tools and you start to see the shape of the man. His parser generator: he wrote it. His bug tracker: he wrote it. His web server, which serves sqlite.org: he wrote it. His version control system, Fossil: he wrote it, because he found Git 'a perfectly atrocious version control system for working for SQLite'..." But the profile also conveys the responsibility of maintaining SQLite, the most widely deployed database engine in the world, running in every iPhone and Android phone, in Chrome, Firefox and Safari, and in the flight software of the Airbus A350. In the ballad, John Henry beats the steam drill and dies with his hammer in his hand. Hipp has made a different choice. He has started using the machine himself. The tests can tell him whether a fix is safe. They can't write the fix. To keep up, Hipp and his team now hand bug reports to AI agents. "I say, 'Hey, look at this bug report. Tell me what you think.' And it'll propose a patch and some test cases. But then I'll push back. I say, 'Well, is that the right way to do it? What about this other way?' And 'Oh, I didn't think of that.'" He usually goes back and forth several times before it's right. A typical patch is one or two lines of code, with thirty or forty lines of new tests, and the agents, he says, "are very good at writing that test code...." And the public-domain promise, guarded for twenty-five years with signed affidavits in a fire-safe, now has a new chapter. "We are operating under the assumption that agentic code is public domain," Hipp says. "That's untested legal ground; that's what we're going with." His standard for the code itself is strict: "You cannot tell which part is written by us and which part is written by the agents. If you can tell, then we have not done it right...." In the mornings he searches Twitter for "SQLite," just to get a sense of what people are saying. He has told [his wife] Ginger that the current pace is unsustainable. But the reports are slowing, and they're getting stranger, which he takes as a good sign. "Knock on wood," he says. Later in our conversation, he sounds more confident: "Lately I'm beginning to think the lines will hold, and that we will be able to prevail against the onslaught. That's not completely settled, but it's looking hopeful."

Read more of this story at Slashdot.

Read the whole story
alvinashcraft
1 hour ago
reply
Pennsylvania, USA
Share this story
Delete
Next Page of Stories