
TL;DR
A placebo-controlled study on MBPP+ finds that when small code models fail, resampling from scratch beats repair loops that feed the failed code back - at 2.5-5.5x fewer tokens. The failed attempt is the anchor.
Self-repair is the default loop in nearly every coding agent: the model runs the tests, fails, gets the failing program and the test output fed back in, and is asked to fix it. A new preprint argues the field has been measuring the wrong baseline all along - and that for small models, the failed code should never go back in at all.
The paper, "Try Again, Don't Look Back: Blind Resampling Outperforms Self-Repair in Small Code Models" (arXiv:2607.26117, submitted July 28), makes the case with a placebo-controlled design on MBPP+ at three model scales (1.5B, 3B, 7B). The headline: blind resampling - retrying the same prompt with no information about the failure - is the strongest retry condition below 7B and stays statistically tied at 7B, while consuming 2.5-5.5x fewer tokens.
The critique of prior work is sharp: self-repair is almost always evaluated against a baseline that does not retry at all. That comparison confounds two things - the value of the extra attempt and the value of the execution feedback. To separate them, the author compares four retry conditions at matched budgets:
At 1.5B, conditioning the retry on the model's own failed attempt costs 6.1 points of accuracy (p=0.006) versus blind resampling. The informational content of execution feedback adds nothing measurable over the placebo. The proposed mechanism is anchoring: when shown its previous attempt, the model reproduces a near-identical program in 33-68% of retries, versus 2-14% under blind resampling. The model is not fixing its bug; it is re-sampling from the same failure region.
Two control experiments delimit the effect. Retrieving solutions to other tasks into the context changes nothing (bounded to +/-3.5 points), which localizes the harm to self-conditioning rather than context length. And reflection, the only condition that measurably weakens the anchor, remains dominated on cost: it spends the most tokens and still does not beat resampling on accuracy.
From the archive
Jul 31, 2026 • 10 min read
Jul 31, 2026 • 7 min read
Jul 31, 2026 • 6 min read
Jul 31, 2026 • 7 min read
The mechanism is the finding. If repair loops only work by re-rolling the dice, then most agent harnesses are spending 2.5-5.5x the tokens to do what a plain retry does better. For anyone running agents on small local models - the 1.5B-7B tier that powers cheap local coding loops - this is a directly actionable number: when the model fails, drop the code, re-prompt, and move on.
The result also explains a pattern that shows up in our earlier coverage of agent loops. The reliability cliff most 10-step agent chains hit is not about the model's reasoning, it is about how each step conditions on the previous one's output. A repair loop is just a two-step chain where the second step is anchored to the first. Our loop engineering post on designing agent loops that converge walks through exactly this failure mode from the harness side, and the paper supplies the mechanism for why it happens.
The replication work adds weight. The penalty is unchanged at full precision, and it reproduces on an independent model family - six configurations across two families and two precisions. The author also reports the magnitude of the anchoring cost is predicted by baseline quality alone (r=0.96), which is the paper's most useful sentence: the cost of anchoring is the cost of committing to a bad first attempt. Stronger models anchor less, which is consistent with the gap narrowing at 7B and raises a real question about whether frontier models with long-context memory are affected the same way.
For builders, the practical guidance is a decision table, not a dogma:
The study is one author, one benchmark (MBPP+, Python), and small-model scales - it is a preprint, not a law. The honest takeaway is not "self-repair is dead." It is that repair loops have been running without a proper control group, and the first placebo-controlled measurement says the feedback itself may be worth much less than the retry it rides on. Harness authors should re-baseline their repair loops this week.
Read next
The architecture side of loop engineering: plan/act/verify cycles, convergence criteria, retry policies, budget-bounded loops, and the loop-until-dry pattern. Concrete TypeScript-shaped patterns for building agent loops that stop when they should.
11 min readThe math of agent pipelines is brutal. 85% reliability per step compounds to about 20% at 10 steps. Here is why long chains collapse in production, and the six patterns the field has converged on to fight the decay.
9 min readBoris Cherny's loop-heavy Claude Code workflow points at the next Codex content lane: recurring agents that babysit PRs, CI, deploys, and feedback streams.
8 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
European open-weight models. Mistral Large for complex tasks, Mistral Small for speed, Codestral for code. Strong multil...
View ToolAI-powered terminal assistant from AWS. Natural language chat, command autocompletion, code generation. Agentic mode rea...
View ToolOpen-source cloud sandboxes for AI agents. Isolated environments that start in under 200ms, run code in Python, JavaScri...
View ToolA hosted infinite canvas your headless AI agents drive over MCP. Any MCP-speaking agent - Claude Code, Codex, Cursor, or...
View ToolEvery coding agent in one window. Stop alt-tabbing between Claude, Codex, and Cursor.
View AppTurn a one-liner into a working Claude Code skill. From idea to installed in a minute.
View AppBeat the August 2026 Assistants API sunset. Paste old code, get Responses API.
View AppAsk quick side questions without derailing the main task.
Claude CodeTargeted edits to specific sections without rewriting entire files.
Claude CodeModify Jupyter notebook cells directly without touching JSON.
Claude Code
Check out Trae here! https://tinyurl.com/2f8rw4vm In this video, we dive into @Trae_ai a newly launched AI IDE packed with innovative features. I provide a comprehensive demonstration...

No-Code AI Automation with VectorShift: Integrations, Pipelines, and Chatbots In this video, I introduce VectorShift, a no-code AI automation platform that enables you to create AI solutions...

In this video, I'll introduce you to VectorShift, a powerful no-code AI automation platform, and show you how to use its functionalities for various use cases, including agents, chatbots, and...

The architecture side of loop engineering: plan/act/verify cycles, convergence criteria, retry policies, budget-bounded...

The math of agent pipelines is brutal. 85% reliability per step compounds to about 20% at 10 steps. Here is why long cha...

Boris Cherny's loop-heavy Claude Code workflow points at the next Codex content lane: recurring agents that babysit PRs,...

DeepSeek, Kimi, and GLM are cheap enough to run as sidecar subagents for drafts and exploration. The catch is that cheap...

A new 188-task benchmark for non-functional improvements finds coding agents hit 70% on functional correctness but lag h...

A new 600-session benchmark shows coding assistants that read a user's resolved session history resolve ambiguous reques...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.