Extension

patriceckhart/zot-answer

A zot extension that opens /answer and lets you answer numbered questions from the last assistant message in an interactive panel.

extension

Install from GitHub and zot copies the extension into $ZOT_HOME/extensions/. Git-installed extensions update with zot update.

shell
zot ext install https://github.com/patriceckhart/zot-answer
repository
patriceckhart/zot-answer
author
patriceckhart
stars
2
forks
1
open issues
0
language
TypeScript
license
MIT
topics
zot-extension
created
May 30, 2026
updated
Jul 21, 2026

Security note: zot extensions can execute code. Review the source before installing third-party extensions.

Readme

zot-answer

TypeScript zot extension that opens /answer and lets you answer numbered questions from the last assistant message in an interactive panel.

Preview

Behavior

  • Watches assistant_message events 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. The active field uses a blinking block cursor.
  • Use your terminal's paste shortcut to insert clipboard text into the current answer.
  • Use up / down to move between answers.
  • Press enter to submit the answers as a prompt to the agent.
  • Press esc to cancel.

The answer text is rendered in the terminal's normal foreground color; only the Answer: label is muted.

Clipboard paste uses pbpaste on macOS, PowerShell on Windows, and wl-paste, xclip, or xsel on Linux. Current zot releases report panel paste gestures as an unknown key without including the pasted text, so the extension reads the system clipboard when it receives that key while the panel is open.

You can also pass questions directly:

/answer 1. First question? 2. Second question?

Run for development

zot --ext .

Then use /answer in zot.

Test

bunx --yes tsx --test answer.test.ts clipboard.test.ts

Install

zot ext 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