← Catalog

@adeildo/pi-ask-questions

Lets the model ask you instead of guessing: options with a preview of each, a note on any of them, and your own answer, in a dialog that scrolls with the chat.

Extension

Install

Install with PiG

pig install npm:@adeildo/pi-ask-questions

Install with Pi

pi install npm:@adeildo/pi-ask-questions
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 7.1.0 (README.md). PiG does not review it.

@adeildo/pi-ask-questions

npm pi SDK

When the model lacks something that only you know, it guesses, and you find out later. This package gives the model a tool to ask you instead. Each question comes with options, a preview of what each option leads to, a note that you can leave on any option, and a row for your own answer.

pi install npm:@adeildo/pi-ask-questions

The question dialog: two questions as tabs, the options on the left, and on the right the description and the preview of the focused option.
A question that takes several answers, with two of its three options checked.
Pick an option and read what it does, or check more than one answer.

Answering

The options are on the left, and the panel on the right shows what the option under the cursor means and what it leads to. When the model asks several questions, each one gets a tab.

KeyWhat it does
↑ ↓, a numberMove between the options
EnterChoose the option. When several picks are allowed, confirm the ticked ones
SpaceTick an option, when several picks are allowed
TabWrite a note on the option under the cursor
← →Go to another question, or to submit
Shift+↑ Shift+↓Scroll a long preview. PgUp PgDn work too, outside fullscreen
EscClose without answering. In the typed row or in a note, step back

A note is the part that matters most. Press Tab on any option, picked or not, and write why. "Too long with five accounts", on an option you turned down, tells the model more than the pick alone.

The last row, Type something., is for an answer in your own words.

What the model reads

The user answered:
- Layout: "Which layout should the accounts section use?" → "Tree (Recommended)"
  note on "Tree (Recommended)": fits how I think
  note on "Flat list" (not picked): too long with five accounts
Continue with these answers in mind.

Settings

These are on the Questions tab of Alt+S, and stored under questions in ~/.pi/agent/extensions/pi-harness/settings.json.

SettingDefaultWhat it does
When and how to askemptyYour own words for the model, added to the tool's guidelines. Say when to ask, or what to show
Ring the bellonThe terminal bell rings when the questions start to wait for you
Typing pause1sHow long after you stop typing in the editor the questions open
Typing wait capemptyThe longest the questions wait while you type. When empty, they wait as long as you type

Learn more

How it works covers the dialog while the model is still writing, the review tab, the chat, asking from another package, and moving from rpiv-ask-user-question.

adeildo.dev
pi-harness is made by adeildo.dev