Chinesezjc/dsh-interconnect ↗★ 34

dsh-interconnect

Cross-instance message/event handoff plugins for DeepSeek Harness (DSH): interconnect service + model-facing tools + companion skill 适合需要在多个DSH实例间进行寻址、消息转发和会话唤醒的分布式任务。

Package
dsh-interconnect
Compatibility
Unverified
Harness peer range
*
Cordis peer range
*
Version
0.11.23
License
MIT
Last updated
Sep 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Chinesezjc/dsh-interconnect

配置

interconnect 行的 config(全部可选,下表为默认值):

字段默认说明
instanceId'dsh'本实例自报的 id,出现在 ping/send/list 的回包里。也作为「对端如何寻址到我」的身份
requestTimeoutMs10000出站请求超时,上限 60000
peers{}对端路由映射:{ [对端 instanceId]: 我拨向它的 origin },例如隧道端点 http://127.0.0.1:13080。激活时对每个对端自动建持久 WS 链;send/reply/ping/list 都按 instanceId 走对应链接
delivery'followup'入站消息未带 delivery 时的默认投递模式
allowResumetrue是否允许发送方用 resume 唤醒本机的离线 session
- id: interconnect
  config:
    instanceId: my-box
    peers:
      peer-a: http://127.0.0.1:13080   # 我拨向对端 peer-a 的 origin
      peer-b: http://127.0.0.1:13081
    delivery: followup
    allowResume: false   # 拒绝一切唤醒请求

鉴权用的共享密钥不在这里,而是取自 credentials 的 DSH_INTERCONNECT_TOKEN(fail-closed: 没有 token 时端点返回 403)。