Install
Install with PiG
pig install npm:pi-askerInstall with Pi
pi install npm:pi-askerReview before installing
Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./extensions/ask-user-question.ts"
]
}README
Written by the package's publisher, shown as published in version 1.1.0 (README.md). PiG does not review it.
pi-asker
An ask_user_question tool for pi. When the model would otherwise guess, it asks you instead, with options to pick from.
← ☑ Database ☐ Features ✔ Submit →
Which database should we use?
❯ 1. Postgres (Recommended) ╭─ Preview ─────────────────────────╮
Relational and mature. │ services: │
2. SQLite │ db: │
One file, no server. │ image: postgres:17 │
3. Type something. ╰───────────────────────────────────╯
────────────────────────────────────────
4. 💬 I'm unsure – discuss this
Enter select · ↑↓ move · Tab/←→ switch · Esc cancel
- Tabs – one per question plus a Submit tab. Move freely between them; answered questions are ticked.
- Single and multi-select – numbered options with descriptions; checkboxes when several answers apply.
- Free text – every question has a "Type something." row you type into directly.
- Discuss – unsure? Flag the question, optionally say why, and carry on with the rest. The model is told the question is not answered and to talk it through with you first.
- Previews – mockups, code or configs shown next to the options (below them in narrow terminals). Text is kept verbatim; fenced code blocks are syntax highlighted.
- Review – the Submit tab lists every answer, warns about unanswered questions, and takes an optional note for the model.
- No hard limits – the schema only requires one question and two options. The tool description steers the model towards a few short questions instead.
- RPC hosts – in RPC mode (e.g. Paseo) the questions are asked one native
select/inputdialog at a time; Paseo shows them in its own question form. Discuss, the note and the side-by-side preview are terminal-only. - Interactive only – in print and JSON mode (and in subagents) the tool is hidden from the model, since there is no one to answer.
Install
Requires pi 1.4 or newer.
pi install npm:pi-asker
# or straight from GitHub
pi install git:github.com/msvart/pi-asker
It registers the tool as ask_user_question, so remove any other package that registers the same name, such as @juicesharp/rpiv-ask-user-question.
Keys
| Key | Action |
|---|---|
↑ ↓ | Move between rows |
Enter | Select, toggle, or confirm typed text |
Space | Select or toggle an option |
1–9 | Jump to a row and select it |
Tab Shift+Tab ← → | Switch question (← → move the text cursor once you have typed something) |
Esc | Cancel the questionnaire |
License
MIT