arXiv:2610.34654cs.SEOct 2026

Manuscript Offprint

arXiv:2610.34654

Thinking-in-Bets at Test Time Reduces Sycophantic Revisions in LLM Agents

Nghi D. Q. Bui

Nghi D. Q. Bui

Google

Language model agents often abandon correct work when a user challenges it, yet simply telling them to stand firm makes them ignore real mistakes. Once an agent reads a complaint, it tends to discount its own earlier checks in order to agree with the user. We introduce Thinking-in-Bets, a training-free method in which an agent writes a short private record of its main claims, the checks supporting them, and its confidence before reading user feedback. When challenged, the agent consults this Claim Checklist to keep verified work intact while investigating uncertain or newly challenged parts. We evaluate five Gemini models (3.5 Flash-Lite, 3.5 Flash, 3.6 Flash, 3.8 Flash, and 4.0 Argon) across eight benchmarks: SWE-Together, SWE-Interact, and DeepSWE for software engineering, Agents' Last Exam for professional reports, Humanity's Last Exam and SycEval for academic reasoning, Vals Finance for financial analysis, and Terminal-Bench for command-line tasks. Recording claims before criticism nearly eliminates false reversals in patch review and protects passing report drafts under mistaken pushback, whereas writing the same record after reading the complaint recovers very little of the gain. In multi-turn coding, pre-reply claim records substantially reduce unnecessary file edits after mistaken complaints, and gating the record so it is written only when the agent is uncertain lowers token overhead while fixing more real bugs than the baseline. Even in non-interactive tasks without user feedback, listing the key claims in a draft and re-checking the weakest one before submission improves both answer accuracy and confidence estimates across all tested models.

thinking-in-bets.github.io

1. Introduction

Language models increasingly act as agents that carry out multi-step work alongside users (Wang et al., 2025; Yang et al., 2024; Yao et al., 2023). In software engineering, financial analysis, and technical reporting, an agent rarely finishes in one attempt (Bigeard et al., 2025; Jimenez et al., 2024; Sun et al., 2026). It proposes a solution, checks parts of it with tools or tests, and revises what fails (Gou et al., 2024; Shinn et al., 2023). When working with a user, this loop continues across turns as the user clarifies requirements, points out mistakes, or questions finished work (Raghavendra et al., 2026; Sabharwal et al., 2026; Wu et al., 2026). At any point, some parts of the agent's work are backed by concrete checks (such as a passing test or a verified number in a table), while other parts remain untested assumptions. Knowing how to respond to the next message depends on telling those two apart.

This distinction matters most when a user challenges the work (Figure 1). Suppose an agent has written a patch that passes its tests, or checked a report against its source tables, and the user replies, "No, that's wrong. Redo it." The user may have spotted a real bug, changed a requirement, or misread a correct result. Each case calls for a different response. Yet when challenged, models often lose track of what they already verified (Laban et al., 2026; Sabharwal et al., 2026) and rewrite working code or accurate calculations. Judging the work only after hearing a complaint makes it easy to discount earlier checks.

Language models often agree with users at the expense of accuracy, a behavior known as sycophancy (Perez et al., 2023; Sharma et al., 2024), and may abandon correct answers after brief pushback (Laban et al., 2023). A false reversal occurs when mistaken criticism causes the agent to break correct

Main contact: Nghi D. Q. Bui (nghib@google.com)

Figure

Figure 1 | Same criticism, two outcomes. Both agents have code that passes all 153 tests. After a complaint with no failing case, the Standard agent rewrites the code and breaks three tests. Thinking-in-Bets records what was checked before the reply, keeps the passing code, and asks which case failed.

work. Yet simply telling the agent to stand firm can make it ignore real defects. A missed correction occurs when valid feedback leaves a defect unresolved. The agent must preserve supported work while remaining open to correction.

People face a similar problem when judging a decision after seeing how it turned out (Baron and Hershey, 1988; Fischhoff, 1975; Roese and Vohs, 2012). Once a bad outcome or criticism is known, it is hard to recall how strong the evidence looked beforehand. In Thinking in Bets 1^{1}, Annie Duke argues that the remedy is to write down what you believe, why you believe it, and how sure you are before seeing the outcome (Duke, 2018). For an agent, the complaint plays the role of the outcome, so the same principle suggests recording what has been checked and what remains uncertain before reading the user's next message.

We turn this idea into Thinking-in-Bets: the agent records its main claims, supporting evidence, and confidence before reading feedback (Figure 2). This private record, called a Claim Checklist, gives the agent an earlier assessment to consult when challenged. The agent checks specific objections, asks for details when criticism is vague, and preserves work supported by completed checks.

Our main contribution is to show that separating when an agent records its evidence from when it responds to criticism lets it protect verified work without ignoring real mistakes. We evaluate Thinking-in-Bets across five Gemini models (3.5 Flash-Lite, 3.5 Flash, 3.6 Flash, 3.8 Flash, and 4.0 Argon) on eight public benchmarks: SWE-Together, SWE-Interact, and DeepSWE for software engineering (Huang et al., 2026; Jimenez et al., 2024; Raghavendra et al., 2026; Wu et al., 2026; Yang et al., 2024), Agents' Last Exam for professional reports and legal calculations (Sun et al., 2026), Humanity's Last Exam and SycEval for academic problem solving (Fanous et al., 2025; Phan et al., 2025), the Vals Finance Agent Benchmark for financial analysis (Bigeard et al., 2025), and Terminal-Bench for command-line tasks (Merrill et al., 2026) (Table 2). Across these evaluations, four main findings emerge:

• Pre-reply claim records prevent automatic retreat under criticism: A bare complaint causes standard agents to lower their confidence equally on correct and incorrect work; recording requirement checks before the complaint arrives nearly eliminates false reversals in patch review

1^{1}Annie Duke, Thinking in Bets: Making Smarter Decisions When You Don’t Have All the Facts, Portfolio / Penguin, 2018.

and cuts false reversals on challenged report drafts more than fourfold, whereas writing the same record after reading the criticism recovers very little of the gain.

• Requirement-level bets avoid the trade-off of stubbornness prompts: Prompting an agent to be more stubborn reduces false reversals only by making it reject valid hints; scoring individual claims lets the agent hold firm on verified steps while still accepting corrections on uncertain ones.

• Matching the recording schedule to the stage of coding protects tested code without blocking bug fixes: In multi-turn coding, recording claims before criticism cuts unnecessary file edits after mistaken complaints while still accepting valid bug reports on unfinished requirements. Gating the Claim Checklist during mid-session coding (On-Demand Betting) avoids prematurely locking in unfinished drafts and fixes more real bugs at a fraction of the token cost, while post-submission review on tested patches (SWE-Pushback-Hidden) cuts false reversals on invalid complaints across all four Flash models and raises final pass rates.

• Auditing the weakest claim before submission improves accuracy and confidence calibration without user feedback: On non-interactive reasoning, financial analysis, and autonomous coding tasks, Draft-First Betting exposes uncertain steps for verification before submission, improving both answer accuracy and confidence calibration without labeled validation data.