@zhaoxingxing0616/pi-ask-question
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.
Package details
Install @zhaoxingxing0616/pi-ask-question from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@zhaoxingxing0616/pi-ask-question- Package
@zhaoxingxing0616/pi-ask-question- Version
1.0.0- Published
- Aug 27, 2026
- Downloads
- 161/mo · 161/wk
- Author
- zhaoxingxing0616
- License
- MIT
- Types
- extension
- Size
- 25.6 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./extensions"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
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-question
Then 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-question
License
MIT