AskUserQuestion is a small tool in Claude Code, and I think it’s the most underrated design decision in the whole thing. When Claude needs to clarify something, it can put an interactive question widget right in the terminal, so you get a real, clickable list of options with descriptions and you’re spared yet another paragraph of prose asking what you want. Sounds trivial, but I don’t think it is.
What it looked like before
Before this tool existed, talking to an AI assistant went like this.
AI: “To make sure I understand: do you want me to (a) refactor the auth module to use the new session API while preserving backwards compatibility, (b) refactor it and drop the legacy path, or (c) leave the existing module alone and add a parallel new one? Also, should I write tests first or just match the existing test style? And finally, would you prefer one big PR or split it into smaller ones?”
Me: reads, scrolls back, scans, types “b, match existing, smaller PRs”
So that’s three questions in a wall of text, and now the model has to interpret my shorthand. Half the time I forget one of them and only answer two, and the other half I misread an option. So the model assumes whatever’s missing, and you’re off-target before any real work has started.
The same thing with the widget
With the widget, that exchange looks like this.
- Question 1 has three labelled options, each with a one-line description of the tradeoff. You click one.
- Question 2 has two options. Click.
- Question 3 has two options. Click.
You’ve got nothing to re-read and no shorthand to decode, and the answers come back as a structured response the model can act on without interpreting anything. Your job goes from “translate prose into intent” to “pick a thing.”
You also get multi-select for non-exclusive choices and an inline description of what each option implies. The option count is bounded too, so the model can’t drown you in twelve checkboxes. And if the right answer isn’t on the list you can always answer “Other” and type freely, so the widget never traps you.
Put it in the default system prompt
Models are pretty inconsistent about reaching for AskUserQuestion right now. Sometimes you get a three-paragraph prose question when three crisp multiple-choice questions would’ve done the job. The tool is there, but nothing reinforces the judgement of when to use it.
You could fix this with a single rule in the system prompt: when the question has bounded discrete choices, use the question tool; when it’s open-ended, ask in prose.
That’s the whole heuristic, and it’s easy for a model to follow. So why doesn’t every AI assistant do this by default? I think it’s mostly inertia. Chatbots have been prose-only for years and phrasing clarifications as paragraphs is just the habit.
Use bounded-choice widgets for the right questions and the whole conversation changes. There’s less ambiguity, you get through it faster, and it feels like using a tool more than having a chat.
It’s good for more than clarifying
You can use the widget for a lot more than “which option do you want.”
- Setting tone, audience and length in one shot before a writing task, with a preview of what each option sounds like.
- Diagnosis. You’ll get further with “which of these symptoms matches your bug?” than with “describe your bug”.
- Anything irreversible. A quick “Proceed / Modify / Cancel” widget is cheaper than a long confirmation paragraph.
- Broad queries, where “which of these sub-topics interest you?” lets you multi-select and you don’t have to type a list.
- Prioritisation, with ranked or weighted options for “what matters most?”
These are all bounded questions, meaning the set of reasonable answers is small and you can know it in advance. If a click would do, asking in prose wastes your attention every time.
A custom instruction you can paste
If your AI isn’t reaching for this tool enough by itself, just tell it to. The snippet below goes into your custom instructions in ChatGPT or Claude.
Both identifiers are in the first line, the OpenAI-style one (ask_user_input) and Anthropic’s (AskUserQuestion), so the prompt works across providers. After that it’s a catalogue of situations where the widget beats prose, so the model gets concrete patterns to match against instead of a vague instruction to “use the tool more.”
The web already went through this
The web did this decades ago, when structured forms replaced free-text email confirmations, because structured input is faster and cleaner and easier for both sides to reason about. AI conversations are going through the same transition now.
This belongs on the default path at OpenAI and Anthropic. Until they put it there, use the snippet above as a workaround.