pi-ask-user
v0.2.1
Published
Interactive ask_user tool for pi-coding-agent with multi-select and freeform input UI
Downloads
429
Maintainers
Readme
pi-ask-user
A Pi package that adds an interactive ask_user tool for collecting user decisions during an agent run.
Demo

High-quality video: ask-user-demo.mp4
Features
- Single-select option lists
- Multi-select option lists
- Optional freeform responses
- Context display support
- Graceful fallback when interactive UI is unavailable
- Bundled
ask-userskill for mandatory decision-gating in high-stakes or ambiguous tasks
Bundled skill: ask-user
This package now ships a skill at skills/ask-user/SKILL.md that nudges/mandates the agent to use ask_user when:
- architectural trade-offs are high impact
- requirements are ambiguous or conflicting
- assumptions would materially change implementation
The skill follows a "decision handshake" flow:
- Gather evidence and summarize context
- Ask one focused question via
ask_user - Wait for explicit user choice
- Confirm the decision, then proceed
See: skills/ask-user/references/ask-user-skill-extension-spec.md.
Install
pi install npm:pi-ask-userTool name
The registered tool name is:
ask_user
Example usage shape
{
"question": "Which option should we use?",
"context": "We are choosing a deploy target.",
"options": [
"staging",
{ "title": "production", "description": "Customer-facing" }
],
"allowMultiple": false,
"allowFreeform": true
}