@bytetrue/pi-ask-user
Pi extension that adds OpenCode-compatible interactive question tool.
Package details
Install @bytetrue/pi-ask-user from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@bytetrue/pi-ask-user- Package
@bytetrue/pi-ask-user- Version
0.1.0- Published
- Aug 3, 2026
- Downloads
- 127/mo · 8/wk
- Author
- bytetrue
- License
- MIT
- Types
- extension
- Size
- 17.5 KB
- Dependencies
- 0 dependencies · 3 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
@bytetrue/pi-ask-user
Adds the OpenCode-compatible question tool to Pi.
The tool lets the model ask one or more structured questions during execution:
questionsis an array of{ question, header, options, multiple? }.- Each option is
{ label, description }. - A
Type your own answeroption is added automatically. - Single-choice questions submit immediately; multiple questions and multi-select questions use a Confirm page.
- Answers returned to the model are arrays of selected labels, using OpenCode's exact output format.
- Escape dismisses the question and fails the tool call instead of inventing an answer.
Install
pi install npm:@bytetrue/pi-ask-user
Or from this checkout:
pi install /absolute/path/to/pi-package-mono/packages/pi-ask-user
The interactive question UI is available in Pi's TUI mode. The tool fails explicitly in print and JSON modes because there is no user input surface.
Development
npm --workspace @bytetrue/pi-ask-user test
npm --workspace @bytetrue/pi-ask-user run typecheck