BiBoyang/dsh-im-bridge
DSH 插件:将 DeepSeek Harness 桥接至 IM(v0.1 微信/iLink;钉钉/飞书/Telegram 预留)。轮次/审批推送 + 远程批准/注入,持久去重/收敛分段/合并窗口。
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that connects DSH to instant messaging platforms. The initial v0.1 release adds support for WeChat via the iLink channel, with an architecture that separates the channel protocol client layer from the bridge layer that handles events, approval flows, and content injection. This separation makes it straightforward to add support for other IM platforms including DingTalk, Feishu, and Telegram in future updates. To install the plugin, you run DSH's plugin add command targeting your local clone of this repository for both web and headless profiles separately.
The core use case for this plugin is letting users run long DSH tasks on their desktop, then monitor progress, approve blocked steps, and add new instructions remotely via WeChat when they are away from their computer. DSH can push real-time notifications to WeChat for task completion, errors, blocked status, and approval requests that include the tool name and reason for the approval. Users can reply with text to inject content into the bound DSH session, reply "approve" or "reject" to handle pending approval requests, and use the /bind command to switch between different DSH sessions.
For development, you first install dependencies with pnpm install, then run pnpm build to compile TypeScript output to the lib directory, which is committed to the repository so you do not need to rebuild if you install via git. You can run pnpm test to execute the included Vitest test suite. After modifying source code, you must rebuild and restart DSH Web to see changes, due to ESM caching. The plugin includes multiple security safeguards: only whitelisted WeChat user IDs can process approval requests, incoming messages only go to the DSH session stream and cannot be used to execute arbitrary shell commands.
这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,作用是将 DSH 桥接到即时通讯平台,目前 v0.1 版本已率先落地微信 iLink 通道支持。该插件的架构设计将通道层(协议客户端实现)与桥接层(事件处理、批准流转、内容注入)分离开来,后续可以按照相同模式快速接入钉钉、飞书、Telegram 等其他即时通讯平台。
核心能力是支持用户在电脑上运行 DSH 长任务,离开设备后可以通过微信远程监控任务状态、批准阻塞的执行步骤、向会话追加新指令。DSH 端可以向微信实时推送任务完成、出错、阻塞状态以及带工具名和原因的批准请求,微信端回复文本会注入绑定会话,也可回复批准/拒绝处理待审批请求,还支持切换绑定会话。
安装需通过 DSH 插件命令,分别为 web 和 headless 配置文件添加插件后使用。开发依赖 pnpm 包管理器,改代码后需要重新构建并重启 DSH Web 才能生效。该插件实现了多重安全机制,只允许白名单用户处理批准请求,微信消息仅能注入会话,不支持直接执行任意 shell 命令。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-im-bridge(BiBoyang/dsh-im-bridge)
仓库:https://github.com/BiBoyang/dsh-im-bridge
本站详情页:https://www.yhbd.top/plugins/biboyang-dsh-im-bridge/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证未声明 · ⭐ 10 · 最近提交 2026-08-13 · 主语言 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 更稳。
- No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
- 10 stars - an early-stage project星标 10,属于早期项目
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:BiBoyang/dsh-im-bridge
把 BiBoyang/dsh-im-bridge 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-im-bridge
DSH(DeepSeek Harness)插件:把 DSH 桥接到 IM。v0.1 先落地微信(iLink 通道),架构上通道层(src/ilink.ts 协议客户端)与桥接层(src/index.ts 事件/批准/注入)分离,后续按同样模式接钉钉、飞书、Telegram。
当前(微信通道)能力:在电脑上跑长任务,离开后用微信远程监控、批准、追加指令。
- DSH → 微信:turn 完成 / 出错 / 被阻塞、批准请求(含工具名与原因)实时推送
- 微信 → DSH:回复文本注入绑定会话;回复「批准 / 拒绝」应答 pending approval;
/bind <session>切换绑定会话 - iLink 扫码登录,单用户白名单,消息去重、长回复分段、
../!!/ 超时合并
差异化:为什么又一个微信桥
IM 桥方向已有一批竞品(dsh-chatnode-wechat、dsh2wechat、dsh-wechat-notify 等)。本插件不抢"先做出来",而是把一个生产级微信 bot(AMClaw,Rust)在微信通道上踩过的坑完整移植到 DSH 插件形态:
- 消息去重是持久的:iLink 的轮询 cursor 不落盘,重启后全靠去重防重复回复。本插件用持久化去重表(跨重启有效)+ 内存 FIFO 双层判重,而不是只在内存里记 msg_id。
- 长回复分段是收敛的:微信单条消息有长度限制,按 1200 字符(Unicode 码点)拆分,分段前缀
(i/n)的长度参与递归收敛,不会出"第 3/2 段";某段发送失败即停后续段并持久化补发队列,避免乱序。 ../!!/ 超时合并:手机输入长指令天然分多条发。..后缀=还有后续先别回,!!后缀=说完了立即提交,裸文本进 5 秒合并窗口。缓冲会话每次写入即快照落盘,进程崩溃重启后自动恢复并 flush。- context_token 缓存:iLink 回复必须携带该用户最近的 context_token,双层缓存(内存 + 落盘)保证重启后仍能回复。
- 协议层容错:iLink 响应字段全部多候选 fallback(qrcode/cursor/msgs/message_id),异构消息宽松解析、单条失败跳过不炸整个轮询;登录确认后支持服务端下发的新 baseurl 运行时切换。
- 安全默认:approval 应答强制校验白名单 user_id + pending approval id 一一对应;微信消息只能进会话流,不能直接执行任意 shell。
安装
dsh plugin --profile web add <本仓库目录>
# headless profile 需单独安装:
dsh plugin --profile headless add <本仓库目录>
使用
- 启动 DSH Web 后查看日志获取微信扫码链接,手机扫码完成登录
- 扫码确认的用户自动成为白名单用户(也可在配置里显式指定
allowedUserId) - 微信里发消息即注入当前绑定会话;
/bind <session-id>切换;/status查看状态 - agent 请求批准时收到推送,回复「批准」或「拒绝」
配置
在 profile 的 cordis.patch.yml 行上加 config 字段:
| 字段 | 默认 | 说明 |
|---|---|---|
allowedUserId |
空 | 白名单微信用户 id;空时首个扫码确认的用户自动绑定 |
mergeTimeoutSecs |
5 | 消息合并窗口 |
chunkMaxChars |
1200 | 分段长度(字符) |
pollTimeoutSecs |
70 | iLink 长轮询超时 |
安全红线
- 微信通道等于绕过本机批准体系:approval 应答必须来自白名单 user_id 且对应真实的 pending approval id
- token 不落库;不打印聊天内容明文以外的任何东西
- 微信来的消息只能进会话流(
source.kind = 'plugin'),不能直接执行任意 shell
开发命令
pnpm install
pnpm build # tsc,产物在 lib/(提交入库,git 安装不跑构建)
pnpm test # vitest
改完代码必须 pnpm build 并重启 DSH Web 才生效(ESM 缓存)。
hootandy321/dsh-Agentlink
Unclecheng-li/DeepSec
WestFox-AwA/dsh-prompt-optimizer
Noob-stupid/dsh-plugin-gating-hub
Zhenyu98/dsh-context-doctor
chenw2759-wq/dsh-plugin-healthcheck
MrWeiCodes/dsh-loop-guard