Ray's Knowledge Base
Unlock

User decisions go through the harness's question tool, one decision per question

PreferenceVerified 2 Oct 2026Holds anywhere
Preference. A rule, why it holds, and how to apply it.

Rule#

Decisions that the user must make go to the user through the harness's question tool or a dialog (AskUserQuestion, a mod dialog, pi ctx.ui.select or ctx.ui.confirm), one decision per question, with the recommended option first. The agent should not guess or decide quietly.

Why#

The aim is that user and agent communicate well, so design the flow around the user.

How to apply#

AskUserQuestion does not exist in headless claude -p, so a flow needs a text fallback there.

Also found by searching

  • should the agent decide or ask the user
  • AskUserQuestion missing in headless claude -p
  • one decision per question recommended option first
  • pi ctx.ui.select confirm for user decisions