Home › Guides › Let agents try again

Let agents try again: rankings flip

TL;DR · 🧠 Models

One-shot rank can flip

Sonnet 5 leads try 1. GPT-6 Sol leads by try 5. One company's test.

+55-67%more SWE-bench-Live solves by try 5
~10 ptSonnet 5 lead on try 1, then flips
95-97%Bench V2, three models by try 5
5tries max, same workspace
Models guide illustration: abstract glowing code editor windows
Read the full short answer

One-shot boards score the first pass. People using Claude Code or Codex usually ask for another. Databricks tried that. On their SWE-bench-Live slice, the attempt-1 leader is not the attempt-5 leader.

One company's test Up to 5 attempts Codex and Claude Code Checked Dec 4, 2026
GPT-6, more solves

+55-67%

SWE-bench-Live. Attempt 5 vs attempt 1, for the GPT-6 configs they ran.

Lead flips

~10 pt

Sonnet 5 over GPT-6 Sol on attempt 1. Sol is about 5 points ahead by attempt 5.

Bench V2

95-97%

Astra, Sonnet 5.5, and GPT-6 Sol by attempt 5. Astra's start lead was 9 to 11 points.

Their summary

50%+

Pass rates, in Databricks' words. Bench V2's own gain is smaller: 8 to 23%.

Checked Dec 4, 2026 on Databricks' Dec 3, 2026 post (Krista Opsahl-Ong, Ivan Zhou, Erich Elsen). One company's research on its own setup, not an independent leaderboard. They sell Smart Routing in Unity AI Gateway.

Retry budget

Interactive

Worst case only. Attempts times the cost of one attempt. No success curve, because Databricks did not publish one.

1 attempt

$1.00

Stop after the first result.

5 attempts, worst case

$5.00

Every try is billed. $4.00 more than stopping at one.

Worst case = max attempts × cost of one attempt. The $1.00 starter is a placeholder, not a Databricks price. If the checks pass early, you pay for fewer tries. This box does not guess how often that happens.

Try again prompt

Interactive

The feedback block in the post. It reports the passed count. It does not say which check failed.

Your previous solution passed 4/10 evaluation checks. Continue improving your solution to the original task in this same workspace. Return the complete updated answer. Check details are unavailable.

Stop and hint

5 tries, same miss

On a SWE-bench-Live format task, the agent spent all 5 attempts on CSV detection. The failing check was invalid inputs. If the next try looks like the last one, stop and name the real check. A count alone will not pull it off a wrong guess.

The 4 and 10 above are example counts so you can see the sentence. They are not from the post. The figure caption calls the idea "Not quite right, try again." The copy button uses the feedback block, which is the count plus "check details are unavailable."

Two benchmarks

Interactive

Same rule on both: up to 5 attempts, same workspace, cumulative solve rate, high reasoning. Codex for OpenAI models. Claude Code for Anthropic models.

Tasks

97

Curated so the ground-truth patch passed in three separate runs. Flaky tasks were dropped.

Attempt 1

Sonnet 5

Leads GPT-6 Sol by nearly 10 points.

Attempt 5

GPT-6 Sol

Leads Sonnet 5 by about 5 points.

GPT-6 configs

+55-67%

More tasks solved by attempt 5 than on attempt 1.

Try 1Sonnet 5, nearly 10 pts ahead
Try 5GPT-6 Sol, about 5 pts ahead

Bar length is the lead in points, from the article text. It is not a solve rate. "Nearly 10" and "about 5" are Databricks' words, so the bar is a sketch of that gap.

Older model versions on this bench. The footnote says they found contamination in some of the latest frontier models, so they used the last versions where they detected none. Bench V2, below, used the latest models because that bench is internal.

Chart title, read from the Databricks chart: "Performance over N=5 Attempts on SWE-bench-Live." Subtitle: "Mean across 3 independent runs on high reasoning." Named lines: GPT-6 Astra, Opus 5, GPT-6 Sol, Sonnet 5, GPT-6 Luna. The dots are not numbered, so this page does not quote a per-attempt percent. Public set: SWE-bench-Live. A different one-shot board, with dollars: Terminal-Bench 4.1 cost per point.

How the test works

A normal coding bench, then one bland retry if the checks fail. No second agent writing a critique.

1 first try 2 3 4 5 stop

What the agent hears

  • How many checks passed, and how many ran.
  • Keep working the original task in the same workspace.
  • Return the full updated answer.
  • Check details are unavailable. No list of failures. No hint.

What gets scored

  • Cumulative solve rate: tasks finished inside the first N attempts.
  • Stops when the solution passes, or when 5 attempts are used.
  • High reasoning effort on every model.
  • Codex runs the OpenAI models. Claude Code runs the Anthropic models.

What they skipped

  • A simulated human that writes a custom critique.
  • They say that second agent can leak the answer or add bias.
  • The caption's phrase is "Not quite right, try again." The pasted block is the count.

Same model in another harness can score differently. Our harness check found most same-model pairs within 4 points. Claude Code vs Codex is the plan and limit comparison.

Read this first

  • Their lab, their agents. Quote it as Databricks' result. It is not a public board with a published harness you can re-run from this page.
  • They sell the product this informs. The post says the method helps them tune Unity AI Gateway Smart Routing and Genie / Genie Code. Smart Routing picks a model for a coding task.
  • Two different model sets. SWE-bench-Live used older versions after they found contamination in some latest frontier models. Bench V2 used the latest, because the tasks are internal. The charts match that: Sonnet 5 and Opus 5 on the public slice, Sonnet 5.5 and Opus 5.5 on Bench V2. Read from the chart labels.
  • No per-attempt percents on the dots. We read the titles, the subtitles, and the model names. We did not read a number off a point, so none are printed here.
  • Charts say each line is a mean of 3 runs at high reasoning. The "three runs" in the SWE-bench-Live paragraph are also how they filtered tasks (the ground-truth patch had to pass three times). Those are two different uses of "three."
  • ~5.3x merged PRs per engineer over two years is a separate internal figure. The chart title is "PRs per engineer grew 5.3x in two years," the end dot is labeled ~5.3x, and the footer says indexed to Nov 2024 = 1x. Read from the Databricks chart. The post says this happened alongside agent use. It does not say try-again caused it. Intermediate dots are not numbered.
  • "50% or more" is their summary sentence. The two ranges they actually give are 55 to 67% (GPT-6 on SWE-bench-Live) and 8 to 23% (six agents on Bench V2).

On a real task

Rank the retry, not the first shot

If you always send a follow-up, an attempt-1 board can pick the wrong agent. On this SWE-bench-Live slice, Sonnet 5 wins the first shot and GPT-6 Sol wins by attempt 5. Compare Claude Code and Codex on price and limits, then try your own task with a retry.

Pay for the budget you will actually use

Five failed tries is about five times one try, if each pass burns a similar bill. Use the calculator above with your own cost. Terminal-Bench 4.1 is a different board: one score and a full-run dollar total, not a retry curve.

Hint after a repeated miss

The CSV case used all 5 attempts on the wrong idea. After two tries that look the same, paste the failing check. The count-only line is for measuring recovery. It is a weak way to finish a task you care about.

Ready to try one?

Every tool here can be cancelled monthly, so the fastest way to decide is a real task on each.

Claude Code

Start on: Pro $20. Start here. Includes Claude Code with usage limits; $17/mo if you pay $200 for the year.

OpenAI Codex

Start on: Plus $20. Most developers: Codex in the CLI, IDE extension, web and iOS, plus cloud tasks and automatic code review.

FAQ

5 questions

Does try again tell the agent which test failed?

No. The message reports how many evaluation checks passed out of how many ran, then says to continue in the same workspace and that check details are unavailable. The figure caption calls the idea "Not quite right, try again."

Which coding agent wins if I let it retry?

On their SWE-bench-Live slice, Sonnet 5 leads GPT-6 Sol by nearly 10 points on attempt 1, and GPT-6 Sol leads by about 5 points on attempt 5. On Bench V2, GPT-6 Astra starts 9 to 11 points ahead of Sonnet 5.5 and GPT-6 Sol, and those three land at 95-97% by attempt 5. One company's test.

Will five tries cost five times as much?

Worst case, yes, when every attempt costs about the same and you use all of them. The calculator is that multiplication. An early pass costs less. Databricks did not publish a dollar cost for these runs.

Why did the same agent miss for all five tries?

On one format-detection task, all 5 attempts went into CSV detection. The failing check was invalid inputs. The retry message never named that check.

Is the 5.3x pull-request figure from this test?

No. It is their internal count of merged PRs per engineer over two years, shown on a chart indexed to Nov 2024. The post ties it to adopting coding agents, not to this retry experiment.

Ship your app: the rest of the stack

Picked your AI coding tool? These are the usual next costs. Free tiers first, and prices checked Oct 20, 2026 on each vendor's pricing page.

Code review

AI writes code fast; something should read it before it ships.

  • CodeRabbitAI review on every pull request, in GitHub or GitLabFree for public repos; Essentials $24/user/mo billed annually ($30 monthly)

Already paying for Copilot or Codex Plus? Both include AI pull request review, so try that first.

Hosting

Where your app lives once it works on your machine.

  • VercelNext.js and front-end appsHobby free (personal, non-commercial); Pro $20/mo per developer seat
  • Netlify referralStatic sites and front ends, unlimited Pro membersFree; Personal $9/mo; Pro $20/mo with unlimited members
  • RailwayBack ends, workers and databases with no server setupFree trial $5 credit; Hobby $5/mo incl. $5 usage; Pro $20/mo
  • RenderHeroku-style web services, cron jobs and PostgresHobby $0 + compute; Pro $25/mo + compute

Database and auth

Most AI-built apps need a Postgres database and logins.

  • SupabasePostgres + auth + storage in one; Lovable and Bolt connect to itFree (2 projects, pause after 1 week idle); Pro from $25/mo
  • NeonServerless Postgres with branching, pay for what you useFree (100 projects); paid plans usage-based

Domain name

A real domain for your app.

  • Cloudflare RegistrarDomains at cost with no markupWholesale price per TLD
  • PorkbunCheap domains with free WHOIS privacyVaries by TLD
  • NamecheapPopular registrar with hosting and email add-onsVaries by TLD

Referral link: we may earn a commission at no extra cost to you. It never changes our picks.

Editorial disclosure

Rankings are not for sale. Sponsored placements and affiliate links are always labeled, and they never change our recommendations, quiz results, prices, or comparison data. Links marked "referral" are affiliate links (Netlify): if you buy through them, we may earn a commission at no extra cost to you. Every other link is a plain link that pays us nothing, and pricing source links are never affiliate links. Editorial policy.