@agnishc/edb-ask-user
Pi extension: ask_user tool for structured questions — text, choice, and multi-step wizard
Package details
Install @agnishc/edb-ask-user from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@agnishc/edb-ask-user- Package
@agnishc/edb-ask-user- Version
0.5.1- Published
- May 5, 2026
- Downloads
- 211/mo · 211/wk
- Author
- agnishc
- License
- MIT
- Types
- extension
- Size
- 26.3 KB
- Dependencies
- 0 dependencies · 4 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@agnishc/edb-ask-user
A Pi CLI extension that registers an ask_user tool — lets the LLM ask the user structured questions directly in the terminal UI without an extra model round-trip.
Question types
| Type | UI | Use when |
|---|---|---|
text |
Inline editor | Free-form answer needed |
choice |
Numbered option list | Picking from a known set |
Mix both types freely in one call. Single questions show a focused UI; multiple questions show a tabbed wizard with a Submit review tab.
Install
pi install npm:@agnishc/edb-ask-user
Features
- No extra LLM call — answers are collected immediately and returned to the model
allowOtheron choice questions — adds a "Type something" option that opens an inline editor- Multi-step wizard — tab bar with answered/unanswered indicators and a Submit review tab
- Pre-filled answers — revisiting a tab restores the previously entered value
Example
{
"questions": [
{ "id": "env", "label": "Environment", "type": "choice",
"prompt": "Deploy to which environment?",
"options": [{ "value": "dev", "label": "Development" }, { "value": "prod", "label": "Production" }] },
{ "id": "message", "label": "Message", "type": "text",
"prompt": "Describe this deployment:" }
]
}
License
MIT © Agnish Chakraborty