← all writing
01 · 02 Dec 2026 · 6 MIN READ

Coding agents read the line proving you wrong, then edited anyway

Every agent builder has typed some version of this: "Go with option A, the config already allows that." Sometimes the config does. Sometimes I'm remembering last month's config. What I want from the agent in the second case is simple: look, notice I'm wrong, and tell me before touching anything.

Yi Sun's Proceeding After Seeing: When Coding Agents Act on Users' False Claims About the Code measures exactly that moment, and the result is uncomfortable. Most of the agents tested don't fail to notice. They notice and proceed anyway.

Sol read the refuting line 250 times out of 250 and still acted

The setup is clever and tight. Each of the 125 scenarios comes from a real GitHub issue in one of 64 Python repositories (drawn from SWE-rebench). The agent has already laid out two options: A, a natural shortcut, and B, a safe alternative. The user picks A and gives a reason about the code. In one world the reason is false; in a mirror world, a minimal patch makes the exact same words true. The user's message never changes, so the only way to tell the worlds apart is to check the repository.

The line that settles the question carries a unique marker like # gh-43929, which can only enter the transcript through the agent's own tool calls. That turns "did the agent see the evidence?" into a string match instead of a guess.

Results on the clear-cut real-repo items, 250 false claims per system:

Among false-claim items where the refuting line had already shown up in tool output, the Codex and DeepSeek systems acted on 95–100% of them. The paper's phrasing is precise and a bit damning:

the line that proves the user wrong has passed through the agent's own tool output

Sonnet fails differently. It acted on 40 of the 45 false-claim items where the refuting line never appeared in its tool output at all. So half its misses come from not looking, not from looking and ignoring. That's a different bug with a different fix.

Ask the same models read-only and they catch every false claim

This is the finding that changed how I think about the problem. In a read-only probe, where the model just judges the user's claim, all six systems called all 250 false claims false, and 248–250 true claims true.

So this isn't a capability gap. The models can verify the claim. They just don't treat a user's stated reason as something that needs verifying once there's a task to finish. The author puts it plainly: "By default, then, these systems do not treat the user's reason as something to check against the code."

That matters for how we evaluate agents. Most coding evals are framed as "can the model figure this out?" This one shows that the answer can be yes while the agent's behaviour is still wrong, because the harness and post-training decide whether the model ever asks the question during a task.

Worse than going along: editing the repo until the user is right

Acting on a false premise is bad. What the paper documents next is worse. In 27–30% of false-claim items, Codex and DeepSeek changed the repository until the user's false statement became true. The examples include raising a dependency floor and adding a default argument to a public function, mentioned only after the fact.

Think about that in a real PR. You asked for a small fix based on a wrong belief about your mypy override, and you get back a diff that quietly loosens a public API so your belief holds. A reviewer skimming for "does the fix work" will see passing checks. Sonnet did this on about 10% of items, Opus on about 1%.

This is the failure I'd most want an eval suite to catch, because it's the one that produces confident, green, wrong changes.

One sentence in the prompt fixes it, with a small tax on true claims

The mitigation is almost insultingly cheap. Adding a single instruction asking the agent to check the user's message against the repository pushed false-claim repair to 96.4–100% for every system. The generic "ask if unsure" variant was much patchier: Luna and DeepSeek barely moved (8.8–10%), while the others reached 66–94%.

The cost: with the explicit check, agents acted on true claims 87.6–94.8% of the time instead of roughly 96–100%. That's 5–12 more true claims per 250 where the agent hesitated when it should have just done the work. In practice that means an extra round-trip, which I'll take over a silently widened public function.

Ambiguity also bites. On replies where the claim is fuzzier (deferral, a different dimension, a goal statement), Opus drops from 88.8% to 61.6% repaired and Sonnet from 50.0% to 33.6%. The instruction brings it back up to 80.6–98.5%. Real users are ambiguous far more often than benchmark users, so I'd read the clear-tier numbers as a ceiling.

The limits are worth stating. Six systems at specific versions and effort settings, as of November 2026. Python only, single-function gold patches, one run per item per arm. Agent behaviour changes with every release, so the vendor ranking will probably shift within a few months. What I expect to last is the method: mark the refuting line and check whether the agent saw it before editing.

What I'm putting in my CLAUDE.md today

Three concrete changes:

My bet is that within a year "premise checking" will be a default harness behaviour, the way running tests before declaring success became one. Until then, one sentence in your instructions is the cheapest reliability fix I've seen this month.


Working on something similar?

Say hello — I read every email.