aliemrevezir/mods/tree/main/plugins/prompt-dock
關於這個 mod
prompt-dock
一個 Claude Code 模組,讓您傳送的每個提示都觸手可及,並可透過引用對話的任何部分來回覆。
基於 oikon48/prompt-rail 建構:相同的軌道和停靠區,並擴展了引用回覆功能。
功能介紹
軌道(預設)。 輸入框上方有一條細長的軌道,每個提示一個刻度。粗刻度是您在對話記錄中正在查看的提示。
#5 Compare debounce and throttle as a short list. ↩ Reply [–]
││││┃
- 將滑鼠懸停在刻度上,可在其上方預覽該提示。
- 點擊刻度可將對話記錄捲動到該提示。
[–]將列表移入停靠區。
停靠區。 對話記錄旁邊的一個窄欄,每個提示一行,目前提示用 ━ 標記。
5 prompts ↩ ×
─ Explain what a deb…
━ Write a TypeScript…
─ Add a leading-edge…
─ Write three vitest…
─ Compare debounce a…
- 點擊一行可跳轉到該行。
×將列表傳送回軌道。
回覆。 用滑鼠選取任何文字(一個答案、一行程式碼、一個較早的提示),然後按下 ↩ Reply。選取的內容將作為 Markdown 引用顯示在提示的頂部,您已輸入的內容保留在其下方:
> Debounce waits for silence; throttle enforces a minimum time between executions.
Show me both in one example.
命令
| 命令 | 功能 |
| ---------- | ------------------------------------------------------------- |
| /prompts | 在軌道和停靠區之間移動列表 |
| /reply | 將目前選取的內容引用到提示頂部 |
安裝
從 Claude Code 內部:
/plugin marketplace add aliemrevezir/mods
/plugin install prompt-dock@aliemrevezir-mods
或者直接從複製的專案載入:
git clone https://github.com/aliemrevezir/mods
claude --plugin-dir mods/plugins/prompt-dock
若要在每個會話中載入它而無需旗標,請在 env 區塊的 ~/.claude/settings.json 中將 CLAUDE_CODE_PLUGIN_DIRS 設定為該資料夾。
要求
- 帶有模組(外掛鉤模組)的 Claude Code 建置。
- 全螢幕佈局用於「您所在位置」的刻度以及閱讀選取範圍。在主螢幕佈局中,軌道仍然有效,粗刻度會跟隨您上次的跳轉或最新的提示。
- 如果終端機已清除高亮顯示,回覆將回退到剪貼簿文字:macOS 上為
pbpaste,Linux 上為wl-paste或xclip。
鳴謝
- prompt-dock 基於 Oikon 的 prompt-rail 建構(GitHub @oikon48,X @oikon48)。軌道、懸停預覽、點擊跳轉和垂直停靠區是他們的設計;prompt-dock 重新實現了它並添加了引用回覆。如果您只想要軌道,請使用原始版本:
/plugin marketplace add oikon48/prompt-rail。 - 透過 HQ NET 影片 CLAUDE'UN MODS ÖZELLİĞİ MUHTEŞEM 發現,該影片介紹了社群模組。
- 模組社群討論串始於 ClaudeDevs 公告。
開發
claude plugin validate .
claude plugin test .
純邏輯(將提示與對話記錄行配對,選取目前提示,引用格式)位於 hooks/rail.ts 和 hooks/exchanges.ts 中;繪圖和事件位於 hooks/register.tsx 中。
授權
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add aliemrevezir/mods claude plugin install prompt-dock
原文 / README
prompt-dock
A Claude Code mod that keeps every prompt you sent one click away, and lets you reply to any piece of the conversation by quoting it.
Built on top of oikon48/prompt-rail: the same rail and dock, extended with quote-reply.
What it does
Rail (default). A thin rail sits above the input, one tick per prompt. The thick tick is the prompt you are looking at in the transcript.
#5 Compare debounce and throttle as a short list. ↩ Reply [–]
││││┃
- Hover a tick to preview that prompt in the line above it.
- Click a tick to scroll the transcript to that prompt.
[–]moves the list into the dock.
Dock. A narrow column beside the transcript, one line per prompt, the current one marked with ━.
5 prompts ↩ ×
─ Explain what a deb…
━ Write a TypeScript…
─ Add a leading-edge…
─ Write three vitest…
─ Compare debounce a…
- Click a row to jump to it.
×sends the list back to the rail.
Reply. Select any text with the mouse (an answer, a code line, an earlier prompt), then press ↩ Reply. The selection lands at the top of your prompt as a Markdown quote, with whatever you had already typed kept below it:
> Debounce waits for silence; throttle enforces a minimum time between executions.
Show me both in one example.
Commands
| Command | What it does |
| ---------- | ------------------------------------------------------------- |
| /prompts | Move the list between the rail and the dock |
| /reply | Quote the current selection at the top of the prompt |
Install
From inside Claude Code:
/plugin marketplace add aliemrevezir/mods
/plugin install prompt-dock@aliemrevezir-mods
Or load it straight from a clone:
git clone https://github.com/aliemrevezir/mods
claude --plugin-dir mods/plugins/prompt-dock
To load it in every session without the flag, set CLAUDE_CODE_PLUGIN_DIRS in the env block of ~/.claude/settings.json to that folder.
Requirements
- A Claude Code build with mods (plugin hook modules).
- The fullscreen layout for the "where you are" tick and for reading the selection. On the main-screen layout the rail still works, and the thick tick follows your last jump or newest prompt.
- If the terminal has already cleared the highlight, Reply falls back to the clipboard text:
pbpasteon macOS,wl-pasteorxclipon Linux.
Credits
- prompt-dock builds on prompt-rail by Oikon (GitHub @oikon48, X @oikon48). The rail, the hover preview, click-to-jump and the vertical dock are their design; prompt-dock reimplements it and adds quote-reply. If you only want the rail, use the original:
/plugin marketplace add oikon48/prompt-rail. - Found through the HQ NET video CLAUDE'UN MODS ÖZELLİĞİ MUHTEŞEM, which tours community mods.
- The community thread of mods started under the ClaudeDevs announcement.
Development
claude plugin validate .
claude plugin test .
The pure logic (pairing prompts with transcript rows, picking the current prompt, the quote format) lives in hooks/rail.ts and hooks/exchanges.ts; drawing and events live in hooks/register.tsx.
