piagent_
← ~/map

$ cat ~/map/pi-ask-user-question.md

pi-ask-user-question

Adds a Claude Code-compatible ask_user_question tool that lets the LLM pop structured multiple-choice dialogs.

extensions✓ Oct 16

Facts

repository
github.com/96tommykim/pi-ask-user-question ↗
GitHub Stars
★ 0
Forks
0
license
MIT
npm / mo
—
last push
Aug 27, 2026

install

pi install git:github.com/96tommykim/pi-ask-user-question

## TL;DR

pi extension adding a Claude Code-compatible ask_user_question tool — structured multiple-choice prompts with an automatic Other free-text entry — plus a fail-closed runtime gate that asks before external or destructive bash commands.

## Key points

## FAQ

Q Does answering a question approve a later command?

No — the tool asks, the gate blocks. executionMode with sequential only orders that message's tool-call batch; it never cancels or suppresses later sibling calls. Approval is enforced by the separate runtime gate, which the model cannot sequence away.

Q What happens in headless sessions?

The tool requires dialog-capable UI: a subagent child always fails first and must escalate to its parent to ask the user, and a headless non-subagent session fails with guidance to ask in plain text instead of hanging on a dialog that can never be shown.

## References

## Related entries

Last updated: Aug 31, 2026