Jesse-njx/dsh-chatnode-wechat ↗★ 1
@dsh-cowork/chatnode-wechat
Chat with, monitor, and approve your DSH agents from WeChat — an iLink gateway + conversation node bundle for DeepSeek Harness
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Jesse-njx/dsh-chatnode-wechat说明文档
阅读完整 README ↗dsh-chatnode-wechat
在微信里与你的 DSH agent 对话、监控、审批。
一个 DeepSeek Harness
bundle,通过腾讯非官方 iLink bot 网关(ilinkai.weixin.qq.com)把 DSH
profile 接到微信个人账号 —— 与 hermes-agent、OpenClaw 同机制。文字双向收发,
支持 /sessions /use /new /stop /status 会话管理,权限请求直接在聊天里用
/yes / /no 回答,进度以摘要形式推送而不是刷屏式工具调用。
你 (微信) ⇄ iLink ⇄ wechat-gateway ⇄ wechat-conversation-node ⇄ DSH agent 会话
Bundle 内含两个可分离的 Cordis 插件:
| 插件 | 职责 |
|---|---|
wechat-gateway(WechatGateway) | iLink 服务(ctx.wechat):扫码登录、鉴权长轮询、断线重连/退避、发送重试 + 限流熔断、正在输入指示、加密 CDN 媒体下载。 |
wechat-conversation-node | 微信 ⇄ DSH 桥:allowlist 白名单闸门、会话定位、命令、摘要式出站(分块 + 限速)、审批。 |
⚠️ 先读这里
- 一个账号一个轮询者。 iLink 每个 bot token 只允许一个鉴权轮询者。如果 你在同一个微信账号上还跑 hermes-agent 或 OpenClaw,其中一方会收到 HTTP 403 并丢消息。请为 agent 使用专用微信账号,并且绝不要用同一个 token 跑两个本 bundle 实例。
- 非官方网关。 与 hermes/openclaw 同机制,腾讯可能限制该账号。再次建议: 使用可以接受的专用账号。
- 非官方协议。 iLink 细节是从 hermes-agent 源码逆向的,而非腾讯文档。
录制好的转录样本在
test/fixtures/inbound.ndjson,CI 不需要真实账号。
安装
git clone https://github.com/Jesse-njx/dsh-chatnode-wechat.git
cd dsh-chatnode-wechat
pnpm install && pnpm build
dsh plugin --profile add .
凭据通过 dsh credentials 服务保存 —— 绝不写在 patch 文件里。先配对一次:
pnpm login # 打印二维码链接,用微信扫码并确认
这会向 $DSH_HOME/.credentials.yaml 写入 WEIXIN_ACCOUNT_ID /
WEIXIN_BOT_TOKEN / WEIXIN_BASE_URL(经 dsh-credentials-local)。bundle
启动时解析并自动开始轮询。
配置
# profile patch(cordis.patch.yml)
plugins:
dsh-chatnode-wechat:
allowFrom: [""] # 硬白名单,必填,无默认值
digestIntervalSec: 300 # 运行中每 N 秒发一条进度摘要
approvalTimeoutSec: 600 # 审批超时 → 默认拒绝
maxMessageChars: 2000 # 微信单条气泡上限(协议限制)
sendChunkDelayMs: 1500 # 出站气泡间隔限速
# cwd: /path/to/workspace # `/new` 会话的工作目录
# agentPreset:
# `/new` 会话使用的 agent preset
# agentProvider / agentModel: ... # `/new` agent 的模型路由