@zhaoxingxing0616/pi-ask-question

extension

Structured overlay questionnaire tool (ask_user_question) for the pi coding agent: single/multi select, free-text answers with draft backfill and history recall, global note, collapsible overlay.

by — · v1.0.0 · published 4w ago

$ pi install npm:@zhaoxingxing0616/pi-ask-question
downloads/mo
203
stars
—
last push
—
open issues
—

Signals

license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

206 downloads · last 12 weeks (weekly)

README

@zhaoxingxing0616/pi-ask-question

Overlay questionnaire tool (ask_user_question) for the pi coding agent. Lets the agent ask you up to 3 structured questions at once — single/multi select options plus a free-text row — instead of stalling on ambiguous requirements.

Features

  • Up to 3 questions per invocation, tabbed overlay UI (Tab/←/→ to switch)
  • Single & multi select — number keys toggle/select directly, Enter confirms
  • Recommended option — preselected cursor on the recommended choice
  • Free-text row (type something…) always appended as the last row:
    • typed content replaces the placeholder as the row label
    • Esc keeps your draft — re-entering backfills it automatically
    • ↑ recalls previously submitted answers (history)
  • Global note (N) with the same draft backfill
  • Skip a question with Ctrl+C, cancel with Esc, collapse the overlay with Ctrl+]

Install

pi install npm:@zhaoxingxing0616/pi-ask-question

Then restart pi (or run /reload).

Note: if you previously installed the standalone ask-user-question.ts extension (e.g. in ~/.pi/agent/extensions/), remove it first — the package registers the same ask_user_question tool name.

Uninstall

pi remove npm:@zhaoxingxing0616/pi-ask-question

License

MIT