dsh-sm-context-piano
在终端中运行以下命令:
dsh plugin install hjj345/dsh-sm-context-piano
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在 DeepSeek Harness Web GUI 中执行 dsh plugin install hjj345/dsh-sm-context-piano 即可安装,插件源码位于 https://github.com/hjj345/dsh-sm-context-piano
插件介绍
Long-running agent sessions can accumulate hundreds of messages where tool calls, edit records, reasoning traces, and user instructions are all tangled together. A traditional scrollbar only tells you "you are at pixel 837" but never tells you "this is where the model revised the auth module for the third time." sm-context-piano renders a compact set of horizontal piano keys along the left edge of the chat pane, compressing the conversation into browsable, positionable semantic nodes. Hover to read a summary, click or press Enter to jump straight to the target paragraph, and stop fighting the scroll bar every time you need context.
The keys only represent user messages and visible model text. Tool calls, edits, reads, reasoning, and internal state never create a key; they merely act as boundaries that split model output into independent segments. Consecutive model text is merged into a single key, while output from different phases stays separate. When the node count exceeds the limit, a fixed window centred on your current reading position is shown, and selecting the top or bottom key pages you to earlier or later content. During streaming, existing key DOM nodes are reused incrementally so the track never flickers or rebuilds from scratch.
This plugin is for anyone working in the DeepSeek Harness Web GUI with long conversations, multi-turn agent tasks, or code-collaboration sessions. It does not alter session content, trim model context, inject system prompts, or send any network requests. Hover previews are written as plain text, and a full unload removes every DOM node, listener, observer, and timer it created, leaving no residual side effects on the page.
截图预览
使用场景
- 在数百条消息的长对话中快速定位某段关键上下文
- 在多轮 Agent 任务中按语义段落浏览历史指令与回复结构
- 在代码协作会话中回看讨论过程而无需反复拖动滚动条
适合人员
- 在 DSH Web GUI 中进行多轮对话的开发者
- 需要频繁回看长会话上下文的 Agent 工作流使用者
- 希望以可视化琴键方式浏览对话结构的用户


