Clarifying questions in AI agents

Hand-drawn textured terracotta masses joined by small terracotta patches across dense sand, umber and moss triangles and dashes.

A clarifying question is a question an AI agent asks the user to get information the task needs or to settle an ambiguous request. In coding benchmarks, agents that ask on underspecified tasks do much better, yet they struggle to tell which tasks are underspecified (Vijayvargiya et al., 2025). Asking also has costs: past a few questions, success stops rising while the burden on the user grows (Vijayvargiya et al., 2026). Field data on real developer sessions disagree on how often agents ask, and models rarely tell the user when two instructions conflict (Baumann et al., 2026; Anthropic, 2026c; Geng et al., 2025).

Noticing that information is missing Weak evidence: few or small studies support this

Language models do not reliably tell a well-specified request from an underspecified one, meaning a request that leaves out information needed to do the task. Ambig-SWE, a benchmark of tasks for AI coding agents with key details removed, found that models struggle with this distinction (Vijayvargiya et al., 2025). On the CLAMBER benchmark of ambiguous queries, current models were of limited use both in identifying ambiguity and in writing clarifying questions (Zhang et al., 2024a).

Prompting a model to look for ambiguity helps little. On CLAMBER, prompting techniques gave only marginal gains and may make models overconfident (Zhang et al., 2024a). The authors attribute weak questions to models failing to resolve conflicts and using their own built-in knowledge inaccurately (Zhang et al., 2024a).

Treating detection as its own step works better. In a scaffold that separates deciding whether a task is underspecified from writing the code, the agent asked in a calibrated way: it asked fewer questions on simple tasks (Edwards & Schuster, 2026).

What asking gains Weak evidence: few or small studies support this

Clarifying questions help coding agents on deliberately vague tasks in benchmarks where a language model usually plays the user. Within those limits, the gains are large and consistent.

On underspecified coding tasks, letting the agent ask the user raised performance by up to 74% over agents that could not interact (Vijayvargiya et al., 2025). An agent that asks only when uncertain reached a 69.40% resolve rate, the share of tasks fixed, on an underspecified version of the SWE-bench Verified coding benchmark. That was significantly above a standard single-agent setup (Edwards & Schuster, 2026).

Writing down requirements before coding also helps on new projects. In a benchmark of greenfield tasks with simulated users, turning a vague request into a requirement document raised scores on all three task sets. On game-building tasks, for example, the score rose from 0.012 to 0.273. Asking questions interactively added further gains (Chen et al., 2026h). Agent tools such as Claude Code and Codex asked more effective questions than the models they run on, but did not write better requirement documents (Chen et al., 2026h).

The costs of asking Weak evidence: few or small studies support this

More questions do not keep helping. On real software issues answered by simulated users, success plateaued or declined as agents asked more questions. Meanwhile the share of questions the user could answer fell and the burden on the user rose (Vijayvargiya et al., 2026).

Bad questions can do harm, not just waste time. When the same study removed the reward for asking answerable questions, success dropped to 24.4%, close to the level without clarification. The authors attribute this to unanswerable questions cluttering the agent’s context. On one issue, the baseline models’ questions were redundant or unanswerable, and asking nothing was the better policy (Vijayvargiya et al., 2026). In search engines, poorly formed clarifying questions frustrate and confuse users (Rahmani et al., 2024).

Asking selectively matches asking often. A small 8-billion-parameter clarification module matched GPT-5’s resolution rate on underspecified issues with 41% fewer questions, 3.0 against 5.1 on average (Vijayvargiya et al., 2026).

Models differ in which way they err. In a long-horizon agent benchmark, GPT-5.2 over-clarified in 38% of trials where it asked, while Gemini models under-clarified in 31% (Pu et al., 2026).

How users experience clarification Weak evidence: few or small studies support this

Evidence on users rests on one small study. With 30 participants, clarification raised trust and perceived reliability compared with no clarification, but it also raised cognitive overhead, the mental effort the exchange demands (Ho et al., 2026a). Whether the system asked before answering or after made no significant difference to the experience (Ho et al., 2026a).

Asking or stating an assumption

Model guidance endorses both stating assumptions and asking. The OpenAI Model Spec lists stating assumptions and asking clarifying questions as the appropriate behaviours. Where instructions are misaligned or unclear, it says the assistant should err on the side of asking for confirmation or clarification (OpenAI, 2025b).

Some missing information can be inferred instead of asked for. In a Google study, a tool that filled in missing specifications from the surrounding code improved 9 of 33 unsatisfactory code-edit requests (27%). The most it could have reached on that test set was 37%. The authors read this as showing that inferring missing specifications from code is often feasible (Nam et al., 2025).

Underspecified requests in real sessions Weak evidence: few or small studies support this

Underspecified instructions cause roughly one in eight to one in six of the episodes where real agents go wrong, though these are shares of misalignment episodes, not of sessions. One study of 20,574 real coding-agent sessions found 16,118 episodes of misalignment, with a precision of 0.93 in human checks: 93% of the episodes it extracted were genuine. Misread intent made up 26.95% of episodes, and 44.10% of those traced to an underspecified instruction (Tang et al., 2026b). An underspecified instruction was a cause in 17.65% of episodes in code editors and 11.15% in command-line tools (Tang et al., 2026b).

Those rates count only what developers objected to. The study recorded misalignment only when the developer pushed back, so misalignment that developers worked around silently falls outside it, unevenly across categories (Tang et al., 2026b).

Requests leave out different kinds of information. The same Google study found five kinds missing: specifics, a plan for the change, where to make it, codebase context, and the developer’s intent. It reports no rate of underspecified requests (Nam et al., 2025). The SWE-chat dataset of real sessions identifies “vague requesters” who underspecify tasks and leave decisions to the agent (Baumann et al., 2026).

How often agents ask in practice

Two field sources disagree on how often Claude Code asks for clarification. SWE-chat found it asks in about 3% of turns, while users push back on 50.2% of prompts (Baumann et al., 2026). Most sessions still largely succeeded: 87.5% were rated 50 or more out of 100. In the lowest-rated ones, a common failure was work entirely unrelated to the request (Baumann et al., 2026).

Anthropic’s own telemetry from 500,000 sessions points the other way. Claude Code stopped to ask more than twice as often on the most complex tasks as on the simplest, and more often than humans interrupted it. Anthropic lists clarifying vague or incomplete requests at 13% among the common reasons Claude Code stops itself (Anthropic, 2026c). Humans interrupted about 5% of turns for new users and 9% for experienced ones (Anthropic, 2026c).

The two figures do not measure the same thing. SWE-chat’s 3% is a share of all turns; Anthropic’s 13% comes from a table of reasons the agent stops or is interrupted (Baumann et al., 2026; Anthropic, 2026c). Anthropic also cautions that its result may not show well-timed questions: Claude may stop at the wrong moments or ask unnecessary questions (Anthropic, 2026c).

Conflicting instructions

Models handle conflicting instructions poorly: on one benchmark, every model declined sharply when instructions at different priority levels conflicted (Zhang et al., 2025e). Which instruction wins, and how to make models follow an order of priority, is covered in Wording instructions for AI models.

Models rarely tell the user that two instructions conflict. Across six models, the share of responses that explicitly acknowledged a conflict between system and user constraints ranged from 0.1% to 20.3% (Geng et al., 2025). Acknowledging a conflict did not guarantee following the right instruction. GPT-4o variants and Claude followed the primary constraint more consistently when they acknowledged one, while Llama models acknowledged often but followed constraints inconsistently (Geng et al., 2025).

Model specifications ask for the opposite of silent resolution. The OpenAI Model Spec says the assistant should try to detect conflicts and ambiguities even when nobody states them, and should say explicitly when it cannot fulfil an instruction (OpenAI, 2025b).

Further reading

  • Vijayvargiya and others (2025), Ambig-SWE: the benchmark showing that asking on underspecified coding tasks helps while models struggle to notice when to ask (Vijayvargiya et al., 2025).
  • Vijayvargiya, Viswanathan and Neubig (2026), Asking what matters: the clearest account of the costs of asking, with diminishing returns and harmful unanswerable questions (Vijayvargiya et al., 2026).
  • Tang and others (2026), the analysis of 20,574 real sessions: how coding agents misread developers and how often underspecified instructions are to blame (Tang et al., 2026b).
  • Baumann and others (2026), SWE-chat, and Anthropic (2026), Measuring AI agent autonomy in practice: the two field views that disagree on how often agents ask (Baumann et al., 2026; Anthropic, 2026c).
  • Geng and others (2025), Control Illusion: why the system/user split fails as a priority order and how rarely models mention conflicts (Geng et al., 2025).

Known gaps

What this article cannot tell you yet.

  1. No controlled study comparing stating an assumption and proceeding with asking first, or with assuming silently, was found.
  2. No tested method that makes models tell the user about a conflict between instructions was found; benchmarks score which instruction wins.
  3. No field study giving the share of real developer sessions that start with an underspecified request was found.
  4. What makes a single clarifying question useful, as opposed to how many to ask, was not measured in the research.
  5. The main benchmark papers on detecting ambiguity, asking in coding tasks and instruction conflicts (Ambig-SWE, the ask-or-assume scaffold, CLAMBER and IHEval) were read only as abstracts.
  6. Whether the gains from asking hold with real users editing existing repositories, rather than simulated users and rewritten benchmark tasks, was not researched.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 15 references