@whamp/pi-answer
v0.1.0
Published
Interactive question extraction and answering for Pi
Maintainers
Readme
Answer
Extracts questions and their immediately associated agent recommendations from the last assistant message, then presents them in an interactive TUI for answering.
How It Works
- Grabs the last assistant message from the session
- Sends it to the first authenticated fast Codex or Haiku model, then falls back to the current model, to extract questions as repaired structured JSON
- Associates an immediate recommendation—such as a following
➡️block—with its question - Opens a TUI with the question, choices/context, recommendation, and a text editor for the user's answer
- Submits the questions, recommendations, and answers back into the conversation as a single user message, triggering a new turn
Recommendations remain context; they do not prefill or replace the user's answer. Multi-choice options (e.g. (a) MySQL, (b) PostgreSQL) are detected and formatted on separate lines.
Usage
/answer— slash commandCtrl+.— keyboard shortcut
TUI Controls
| Key | Action |
|-----|--------|
| Tab / Enter | Next question |
| Shift+Tab | Previous question |
| Shift+Enter | Newline in answer |
| Esc | Cancel |
