@ravshansbox/pi-question

Question tool extension for pi

Packages

Package details

extension

Install @ravshansbox/pi-question from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@ravshansbox/pi-question
Package
@ravshansbox/pi-question
Version
0.2.1
Published
Oct 16, 2026
Downloads
276/mo · 276/wk
Author
ravshansbox
License
MIT
Types
extension
Size
12.5 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-question

Question tool extension for pi.

Install

pi install npm:@ravshansbox/pi-question

Usage

Pi loads the tool from ./index.ts and registers a question tool that shows a multiple-choice prompt in the TUI.

For example, an agent can call question with options such as Ship now, Review first, and Type something. so the user can pick one option or enter a custom answer without leaving the session.

This tool is intended for interactive TUI sessions. In non-interactive contexts it cannot display a chooser, so callers should only use it when a live user can respond. The built-in Type something. option lets the user enter free text when none of the listed choices fits.

Development

npm install
npm run check