@zhaoxingxing0616/pi-ask-question
v1.0.0
Published
Structured overlay questionnaire tool (ask_user_question) for the pi coding agent: single/multi select, free-text answers with draft backfill and history recall, global note, collapsible overlay.
Maintainers
Readme
@zhaoxingxing0616/pi-ask-question
Overlay questionnaire tool (ask_user_question) for the pi coding agent. Lets the agent ask you up to 3 structured questions at once — single/multi select options plus a free-text row — instead of stalling on ambiguous requirements.
Features
- Up to 3 questions per invocation, tabbed overlay UI (
Tab/←/→to switch) - Single & multi select — number keys toggle/select directly,
Enterconfirms - Recommended option — preselected cursor on the recommended choice
- Free-text row (
type something…) always appended as the last row:- typed content replaces the placeholder as the row label
Esckeeps your draft — re-entering backfills it automatically↑recalls previously submitted answers (history)
- Global note (
N) with the same draft backfill - Skip a question with
Ctrl+C, cancel withEsc, collapse the overlay withCtrl+]
Install
pi install npm:@zhaoxingxing0616/pi-ask-questionThen restart pi (or run /reload).
Note: if you previously installed the standalone
ask-user-question.tsextension (e.g. in~/.pi/agent/extensions/), remove it first — the package registers the sameask_user_questiontool name.
Uninstall
pi remove npm:@zhaoxingxing0616/pi-ask-questionLicense
MIT
