Install
Install with PiG
pig install npm:@alexgorbatchev/pi-quick-answerInstall with Pi
pi install npm:@alexgorbatchev/pi-quick-answerPackages 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 2.0.0 (README.md). PiG does not review it.
@alexgorbatchev/pi-quick-answer
A Pi extension that extracts open questions, options, and decisions from the assistant's latest response, presents an interactive selector, and opens a prefilled modal editor to quickly submit your answer.
Workflow
- Run
/quick-answer. - The extension extracts questions and options from the last assistant turn using a fast model (or regex heuristic). Extraction results are cached per turn for instant repeat invocations.
- If multiple questions/options exist, select one using the inline interactive picker (
ctx.ui.select). - Enter your answer in the prefilled modal editor dialog (
[Selected Question] ->). - Press Enter to submit; the message is sent directly to the assistant.
Installation
To install globally:
pi install npm:@alexgorbatchev/pi-quick-answer
To install locally for a specific project:
pi install npm:@alexgorbatchev/pi-quick-answer -l
Configuration
You can optionally configure preferred extraction models and custom system prompts in your global or project .pi/settings.json under the "@alexgorbatchev/pi-quick-answer" key.
{
"@alexgorbatchev/pi-quick-answer": {
"models": ["google/gemini-2.5-flash", "openai/gpt-4o-mini"],
"systemPrompt": "Custom extraction prompt..."
}
}
Options
models(string[]orstring): Preferred model identifier(s) or wildcard patterns (e.g."google/gemini-2.5-flash","openai/gpt-4o-mini","flash"). Evaluated in order against available models. If omitted, defaults to fast models (flash,mini,haiku) or the current active model.systemPrompt(string): Overrides the default extraction prompt.
Startup Summary
On startup, the extension reports the resolved model and the prompt source:
[@alexgorbatchev/pi-quick-answer]
model: google/gemini-2.5-flash
prompt: default
Or if a custom prompt is configured:
[@alexgorbatchev/pi-quick-answer]
model: google/gemini-2.5-flash
prompt: project settings
Development
Use Bun 1.4 or newer and just. The extension requires Pi 1.x (1.5 or newer) from @earendil-works and Node.js 22.19 or newer.
just setup
just check
just run
just run opens Pi with the local extension and your real settings. just test uses the GitHub-pinned pi-test-isolation supervisor and guard to isolate home, caches, sessions, scratch, and child processes. Direct bun test is rejected outside isolation.
Tests exercise the installed Pi loader, event runner, model provider, extraction cache, settings precedence, selection and editor flows, and report rendering. Linux and macOS CI enforce at least 90% line and function coverage, including unexecuted source. Tests and development tooling are excluded from the published package.