dsh-companion
在终端中运行以下命令:
dsh plugin install leonardoxr/dsh-companion
将以下提示词粘贴到 DeepSeek Harness 对话框中:
请在 DeepSeek Harness 中执行插件安装命令,该插件源码位于 https://github.com/leonardoxr/dsh-companion 。
插件介绍
Native DSH client shells such as dsh-native frequently need workspace lists, live session state, and completion alerts without loading the full Harness Web UI or scraping the DOM. dsh-companion plugs into that gap: as a Cordis host module it injects into the DSH runtime and exposes three cache-free, read-only JSON endpoints for workspaces, live sessions, and individual session summaries, plus a reconnectable SSE notification stream covering successful turns, blocked turns, errors, token-limit hits, aborts, pending questions, and tool approvals. All data arrives as structured JSON directly to the shell with no browser-rendering dependency.
A dedicated settings card (Settings, then Plugins, then DSH Companion notifications) lets you filter alert kinds and subagent events at the source, with changes applied instantly through the Harness settings service. When dsh-better-sidebar is also installed, an optional Images tab appears in the plus menu, gathering every image in the current conversation — user attachments, assistant image blocks, and images surfaced by tools like read_image — into a clickable thumbnail gallery with a full-size lightbox. Every response uses explicit field projection so internal Harness objects are never serialized wholesale, and all requests are gated by trusted-host and same-origin checks.
Cross-machine browsing is a standout capability: when the DSH Native bridge is active, Companion merges workspaces and live sessions from the local runtime and every saved server into the stock WorkspaceBrowser sidebar, tagging remote rows with their server name while keeping search, expansion, hover cards, and the Ungrouped bucket intact. Mutating row actions on remote entries are deliberately inert, preserving strict read-only semantics. The plugin is ideal for developers building project and session metadata displays inside dsh-native or similar shells, wiring custom notification panels, or managing workspaces across multiple servers from a single interface.
使用场景
- 在 dsh-native 中通过 JSON 接口读取所有工作区与实时会话元数据
- 通过 SSE 通知流接收完成、失败、审批等事件并推送到自定义面板
- 在侧边栏中合并本地与远程服务器的工作区列表进行统一浏览
适合人员
- 开发 DSH 原生客户端集成层的工程师
- 需要跨多台机器管理工作区的 DeepSeek Harness 用户
- 希望将 DSH 会话事件接入自定义工具链的开发者