0xGondarxyz/claude-code-mods/tree/main/quote-buttons
この mod について
quote-buttons は Claude Code の mod で、チャット UI に 4 つの機能を追加します。1. 引用ボタン:すべてのユーザーメッセージとアシスタントのテキストブロックに、ホバー時 [ ↩ quote ] を表示します。クリックするとメッセージが引用としてプロンプトボックスに入り(各行に > を付け、最大 6 行/400 文字、切れた場所は …)、下書きの上に置かれます。2. 編集ボタン:自分のメッセージには [ ✎ edit ] も表示され、元のテキストをボックスに戻します。ボックスにすでに文字があれば Clear the box first と表示して何もしません(本当の巻き戻しは Esc Esc のままです)。3. 送信取り消し:ターン中に送信したプロンプトを 5 秒保持し、バンドに Sending in 5s: <text> と [ undo ] を表示します。取り消すとプロンプトを捨て、文字を下書きの下のボックスへ戻します。アイドル中に送ったプロンプトは変更しません。4. 引き継ぎボタン:すべてのメッセージに [ ⇢ with context ] と [ ⇢ fresh ] を表示し、セッションのプロジェクトルートに新しい Konsole タブを開きます。コンテキスト付きは `claude --resume <session id> --fork-session "Take this over and do it now:
<message>"、新規は claude "<message>"を実行します。タブは argv 経由でkonsole --new-tab --workdir <root> -e claude ...が起動するため、引用符と改行も安全です。Konsole がない場合、起動に失敗した場合、セッション ID がない場合は、トーストで理由を知らせ、完全なコマンドをクリップボードへ入れます。プロンプト上のバンドは共有されるため、この mod は他の mod がそこに描画するものを包みます。制限:引き継ぎの--new-tabにはデフォルトの単一プロセスウィンドウの Konsole が必要で、そうでなければ新しいウィンドウが開きます。ボタンにはフルスクリーンターミナルレイアウト(マウスクリック)が必要です。メイン画面はポインターなしでスクロールバックに出力するためです。5 秒の保持で hook の 10 秒予算を消費します。開発にはclaude plugin validate .とclaude plugin test .` を使います。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add 0xGondarxyz/claude-code-mods claude plugin install quote-buttons
原文 / 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 .
