TypeScript zot extension that opens /answer and lets you answer numbered questions from the last assistant message in an interactive panel.
Behavior
- Watches
assistant_messageevents and stores the latest assistant text. - Registers a single slash command:
/answer. - Extracts numbered questions like
1. <question>,2. <question>,3. <question>. - Opens a panel with one answer field per question.
- Type to fill the current answer.
- Use
up/downto move between answers. - Press
enterto submit the answers as a prompt to the agent. - Press
escto cancel.
The answer text is rendered in the terminal's normal foreground color; only the Answer: label is muted.
You can also pass questions directly:
/answer 1. First question? 2. Second question?
Run for development
Then use /answer in zot.
Install
Restart zot, or run /reload-ext if zot is already open.
Runtime
The manifest uses:
"exec": "npx", "args": ["--yes", "tsx", "index.ts"]
That avoids requiring a local package setup. If you have global tsx, you can change it to:
"exec": "tsx", "args": ["index.ts"]
License
MIT
