GruperTal/claude-pin-message
pin-message
会話の横に返信をピン留めする Claude Code mod です。何度もスクロールして確認する計画、コマンド、回答を、セッション中ずっと画面に表示できます。
この mod について
Claude Pin Message は Claude Code にサイドペインを追加し、選択したテキストや Claude の直前の返信をピン留めできるようにします。/plugin marketplace add GruperTal/claude-pin-message でインストールし、続けて /plugin install pin-message@claude-pin-message と /reload-plugins を実行します。/pin でマウス選択または直前の返信(markdown として表示)をピン留めし、✕ unpin で個別のピンを削除、/unpin で全ピンを消してペインを閉じます。ピンは 1 つの Pinned ペインに積み重なり、セッション中は保持され、1 件につき 10,000 文字までです。選択には全画面レイアウトが必要です。ネットワーク要求、ファイル書き込み、モデル呼び出しを行わないローカル専用の hooks モジュール(hooks/register.tsx 約 90 行)として実装されています。mods 対応の Claude Code が必要で、v2.1.289 でビルドとテストを行っています。MIT ライセンスです。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add GruperTal/claude-pin-message claude plugin install pin-message
原文 / README
Claude Pin Message
A Claude Code mod that pins a response beside the conversation, so the plan, the command or the answer you keep scrolling back to stays on screen while the session goes on.
❯ what's the rollout plan? │ ✕ unpin
● 1. Ship behind a flag │ 1. Ship behind a flag
2. Canary at 5% │ 2. Canary at 5%
3. Full rollout Thursday │ 3. Full rollout Thursday
❯ /pin │
❯ ok, start with step 1 │ ✕ unpin
● Adding the flag... │ npm run deploy -- --canary
(the conversation keeps scrolling) │
Install
Inside Claude Code, run:
/plugin marketplace add GruperTal/claude-pin-message
/plugin install pin-message@claude-pin-message
/reload-plugins
Use
| You do | What happens |
| --- | --- |
| Select text with the mouse, then /pin | The selection is pinned |
| /pin with nothing selected | Claude's last response is pinned, drawn as markdown |
| Press ✕ unpin above a pin | That pin is removed |
| /unpin | Every pin is removed and the pane closes |
Pin as many things as you like; they stack in one "Pinned" pane. Close the pane and your pins are kept: the next /pin brings it back.
Good to know
- Selections need the fullscreen layout. Claude Code only reports a mouse selection there. Elsewhere
/pinpins the last response, and the pane sits above the prompt instead of beside the transcript. - Pins last for the session. A new session starts with none.
- A pin holds up to 10,000 characters. A longer one is cut.
How it works
It is a mod: one hooks module, about 90 lines, in hooks/register.tsx. /pin reads the selection and the session's messages, keeps the text in session state, and opens a pane that draws the pins.
It is local-only: no network requests, no files written, no model calls. Run claude plugin validate on the repo to see every event it hooks and every call it makes.
Requirements
Claude Code with mods support. Built and tested on v2.1.289.
Development
claude --plugin-dir . # run it from a checkout
claude plugin validate .
claude plugin test .
