GruperTal/claude-pin-message
關於這個 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 清除所有釘選並關閉面板。釘選內容會集中在一個 Pinned 面板中,在工作階段內持續存在,每則上限為 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 .


