@haphazarddev/pi-ask-user-question

A pi extension that adds an ask_user_question tool for collecting clarification, confirmation, and input through the UI.

Package details

extension

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

$ pi install npm:@haphazarddev/pi-ask-user-question
Package
@haphazarddev/pi-ask-user-question
Version
0.1.0
Published
Apr 20, 2026
Downloads
90/mo · 8/wk
Author
corwinm
License
MIT
Types
extension
Size
11.1 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

@haphazarddev/pi-ask-user-question

Add an ask_user_question tool to pi so the agent can ask you for clarification instead of guessing.

Install

pi install npm:@haphazarddev/pi-ask-user-question

Or install from a local checkout:

pi install ./extensions/pi-ask-user-question

Tool

This package registers:

  • ask_user_question

What it supports

  • yes/no confirmation prompts
  • single-line input
  • multi-line editor input
  • option selection with keyboard shortcuts
  • optional custom answers alongside predefined choices

Typical use cases

  • clarifying missing requirements
  • asking you to choose from several options
  • requesting approval before continuing
  • collecting longer free-form answers when needed

Repository