czm15053/dsh-peer-link
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH), designed to enable point-to-point messaging between DSH sessions and other local agent sessions such as Claude Code over Unix socket. When loaded, it registers the running DSH process as a peer named dsh-<pid>, assigns a unique short ID to every open DSH session, and automatically routes incoming messages to the correct target session based on embedded identifiers. It adds two core tools to DSH: peer_send for sending messages to other peers, and peer_list for querying and displaying all active peers with an interactive, clickable UI that supports sorting and searching.
The primary use case for this plugin is cross-session collaboration between multiple AI agents running locally on your machine. You can share context, task updates, or collaboration requests between different agent instances to split work and coordinate on complex projects. For example, you can have DSH handle code implementation tasks while Claude Code works on requirement analysis and result review, with both agents syncing progress via this messaging layer. It is ideal for developers who regularly use multiple local AI agents and want a lightweight way to enable cross-agent communication.
To install the plugin, you can run the DSH plugin add command pointing to this GitHub repository or a local clone of the repo on your machine. If you are building from source, you will need Node.js installed first, run npm install to pull dependencies, then npm run build to compile the plugin code. The plugin is released under the permissive MIT open source license, which allows free commercial and non-commercial use. Before first use, you will need to configure Claude Code to enable the cross-session messaging feature as documented.
这是专为 DeepSeek Harness 开发的原生插件,实现了DSH会话与其他本地智能代理会话(如 Claude Code)之间通过 Unix socket 进行点对点消息互发。插件会将当前 DSH 进程注册为一个名为 dsh-<pid> 的节点,为每个 DSH 会话分配独立短ID,可基于会话标识完成消息转发。它提供 peer_send 发消息、peer_list 列活跃节点等功能,还支持在前端渲染可点击、可搜索的交互式节点管理卡片。
它的典型使用场景是多代理跨会话协作,你可以在不同的代理实例之间互相发送上下文、任务进展或者协作请求,实现分工配合完成工作。比如你可以让DSH处理代码编写任务,让Claude Code做需求梳理或者结果审查,双方通过消息同步进度,协同推进复杂项目的开发。这款插件适合需要同时使用多个本地智能代理,希望让不同代理之间能够跨会话通信协作的开发者使用。
安装只需要通过DSH的插件命令添加远程GitHub仓库或者本地链接即可,配置支持自定义注册名、消息注入规则等。若从源码构建,需要先安装Node.js依赖再执行构建命令。插件采用MIT开源协议,免费可商用,使用前需要确保Claude Code侧也完成对应配置,升级到要求版本并开启跨会话功能开关。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-peer-link(czm15053/dsh-peer-link)
仓库:https://github.com/czm15053/dsh-peer-link
本站详情页:https://www.yhbd.top/plugins/czm15053-dsh-peer-link/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 7 · 最近提交 2026-08-14 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 7 stars - very few users, little community feedback星标只有 7,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add "github:czm15053/dsh-peer-link"
把 czm15053/dsh-peer-link 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-peer-link
点对点消息工具:让 DeepSeek Harness(dsh)会话与其他本机 agent 会话(如 Claude Code)通过 unix socket 互发消息。
特性
- 单 peer 注册:dsh 进程注册为一个 peer(
dsh-<pid>),Claude Code 的 ListAgents/SendMessage 可直接发现并回复 - 会话标识 + 内部转发:dsh 的每个会话有独立短 id,消息带
@dsh-<pid>:<session>标识,Claude 回复时带标识,dsh 内部转发到对应会话 - 收消息:收到 peer 消息 → 以用户消息气泡注入对应 dsh 会话(web 可见)
- 发消息:
peer_send工具把消息写回对方 socket - 列 peer:
peer_list工具列出活跃 peer(按目录筛选、按创建时间排序) - 交互式 peer_list:前端 toolview 渲染成可点击卡片(排序/搜索/弹窗发送/刷新)
- 会话上下文:每个 peer 显示首句(会话主题),一眼看懂在做什么
演示
Claude 会话间通信

截图
交互式 peer_list:列出活跃 peer,支持排序/搜索/刷新

点击 peer 弹窗直接发送消息

两个会话轮流报数(连通性测试)

两个会话玩成语接龙

架构
┌──────────────┐ ┌───────────────────────────────┐
│ Claude Code │ │ dsh (单 peer: dsh-<pid>) │
│ │ │ ┌─ 会话 A (短id: abc12345) │
│ ListAgents │ │ └─ 会话 B (短id: def67890) │
│ SendMessage │◀────────▶│ 收到回复 → 按标识转发到对应会话 │
└──────────────┘ └───────────────────────────────┘
安装
# 从 GitHub
dsh plugin --profile web add "github:czm15053/dsh-peer-link"
# 或从本地仓库
dsh plugin --profile web add link:<repo路径>
dsh --profile web
工具
| 工具 | 作用 |
|---|---|
peer_send |
向 peer 发消息。target 传入站消息编号 / peer 名 / socket 路径 |
peer_list |
列出活跃 peer。可选 cwd 按目录筛选 |
配置
dsh 侧(插件配置)
- insert:
- id: peer-link
name: '@deepseek-ai/dsh-peer-link'
config:
targetSessionId: active # 'active'=最近活跃 / 具体sessionId / 'all'
name: my-dsh # 注册名,默认 dsh-<pid>
injectInbound: true # 收消息注入会话
registerTool: true # 注册 peer_send/peer_list
Claude Code 侧(官方跨 session 配置)
Claude Code 2.1.224+ 原生支持跨 session 消息。需在 ~/.claude/settings.json 里配置:
- 升级:
claude update升级到 2.1.224+ - 启用开关:在
env块加"CLAUDE_CODE_HARBOR_KITE": "1"(绕过 feature flag) - 免审批(推荐):加
"crossSessionInbound": "accept"(不加则消息先 hold 等待确认)
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
aa2246740/dsh-watcher
fredalxin/dsh-solo-thinking
better-er/dsh-pause
SakalioLabs/dsh-code-ide
lilwhich/dsh-plugin-gather
asukasec/dsh-message-preview