Pi extension for answering questions from the last assistant response in terminal Pi or RPC clients such as Paseo.
Adapted from mitsuhiko/agent-stuff/extensions/answer.ts.
pi install git:github.com/SteelDynamite/pi-answerFor local testing:
pi -e ./index.tsRun:
/answer
Or press Ctrl+..
The extension:
- Finds the last completed assistant message.
- Uses
openai-codex/gpt-5.6-terrato extract questions and optional recommended answers as JSON. - Opens an answer-entry flow.
- Sends your compiled answers back into the session.
In terminal Pi, /answer opens the rich interactive Q&A UI. It ghost-fills recommended answers when available; press Right Arrow to accept one. Ctrl+. is a terminal shortcut for /answer.
In RPC clients such as Paseo, /answer falls back to simple dialog cards. Extraction runs without the custom progress UI, then each question appears as a sequential editor/text card. Recommended answers are prefilled when supported. Cancelling a card, or submitting an empty answer, stops without sending compiled answers.
Extraction always uses openai-codex/gpt-5.6-terra, independent of the session model. Configure OpenAI Codex authentication in Pi before using /answer.
npm install
npm run validateApache-2.0