0xGondarxyz/claude-code-mods/tree/main/quote-buttons
About this mod
quote-buttons is a Claude Code mod that adds four things to the chat UI. 1. Quote button: every user message and assistant text block shows [ ↩ quote ] on hover; clicking places the message in the prompt box as a quote (> per line, up to 6 lines / 400 characters, … when cut) above your draft. 2. Edit button: your own messages also show [ ✎ edit ], which puts the original text in the box; if the box already has text it shows Clear the box first and changes nothing (real rewind stays Esc Esc). 3. Undo send: a prompt submitted while a turn runs is held for 5 seconds, with a band showing Sending in 5s: <text> and [ undo ]; undo drops the prompt and returns the text to the box below any draft, while prompts sent while idle are untouched. 4. Hand-off buttons: every message shows [ ⇢ with context ] and [ ⇢ fresh ], each opening a new Konsole tab in the session's project root — with context runs claude --resume <session id> --fork-session "Take this over and do it now:\n\n<message>", fresh runs claude "<message>"; the tab is launched by argv via konsole --new-tab --workdir <root> -e claude ... so quotes and newlines are safe, and if Konsole is missing, the launch fails or there is no session id, the toast gives the reason and the full command goes to the clipboard. The band above the prompt is shared, so the mod wraps what other mods draw there. Limits: hand-off needs Konsole with single-process windows (the default) for --new-tab, otherwise a new window opens; buttons need the fullscreen terminal layout (mouse clicks) because the main screen prints to scrollback with no pointer; and the 5 second hold costs 5 s of the hook's 10 s budget. Develop with claude plugin validate . and claude plugin test ..
Installation
Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.
claude plugin marketplace add 0xGondarxyz/claude-code-mods claude plugin install quote-buttons
Original text / README
quote-buttons
A Claude Code mod. It adds four things.
- Quote button. Every user message and every assistant text block shows
[ ↩ quote ]on hover (top right of the message). A click puts the message in the prompt box as a quote (>per line, at most 6 lines and 400 characters,…when cut) above your draft. - Edit button. Your own messages also show
[ ✎ edit ]. It puts the original text in the box. If the box has text, it showsClear the box firstand changes nothing. Real rewind stays Esc Esc. - Undo send. A prompt you submit while a turn runs is held for 5 seconds. The band above the prompt shows
Sending in 5s: <text>and[ undo ]. Undo drops the prompt and puts the text back in the box (below any draft). Prompts sent while idle are untouched. - Hand-off buttons. Every message also shows
[ ⇢ with context ]and[ ⇢ fresh ]in the same hover box. Each opens a new Konsole tab in the session's project root.⇢ with contextrunsclaude --resume <session id> --fork-session "Take this over and do it now:\n\n<message>", a fork of the whole conversation.⇢ freshrunsclaude "<message>", a new session.- The tab is opened with
konsole --new-tab --workdir <root> -e claude ..., by argv (no shell, so quotes and newlines are safe). Toast:Opened a new tab (with context)or(fresh). - If Konsole is missing, the launch fails or there is no session id yet, the toast gives the reason and the full command goes to the clipboard to paste into any terminal.
The band above the prompt is shared: the mod wraps what other mods draw there.
Limits
- The hand-off buttons need Konsole, and
--new-tabneeds "Run all Konsole windows in a single process" (the default); otherwise Konsole opens a new window. - Buttons need the fullscreen terminal layout (mouse clicks). On the main screen (
CLAUDE_CODE_NO_FLICKER=0, tmux by default) the transcript is printed into scrollback and there is no pointer, so the message buttons cannot be clicked. The undo band button is a normal Button (click, or Tab focus and Enter where the band holds the keys); not tested on the main screen. - The 5 second hold costs 5 s of the hook's 10 s budget.
Develop
claude plugin validate .
claude plugin test .
