czm15053/dsh-peer-link 预览 preview

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侧也完成对应配置,升级到要求版本并开启跨会话功能开关。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 会话间通信

Claude 会话通信

截图

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

peer_list

点击 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 里配置:

  1. 升级:claude update 升级到 2.1.224+
  2. 启用开关:在 env 块加 "CLAUDE_CODE_HARBOR_KITE": "1"(绕过 feature flag)
  3. 免审批(推荐):加 "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 →

← 上一个 Prev dsh-acp-enhanced 下一个 Next DIzzy-DSH →