DeepSeek Harness 插件

dsh-weixin-canadaee

DSH ecosystem channel plugin: WeChat (personal) for DeepSeek Harness — native iLink Bot API, QR login, per-chat resident Agents, full media exchange. No OpenClaw gateway, no forwarding.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
canadaeee/dsh-weixin
最近更新
2026年8月19日
分类
工具与能力
GitHub stars
2
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/canadaeee/dsh-weixin
插件名:dsh-weixin-canadaee
作者:canadaeee

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-weixin

> Part of the DSH ecosystem — channel plugins built on the DeepSeek Harness (DSH) plugin architecture.

Personal WeChat channel plugin for the DeepSeek Harness (DSH) — turn dsh into a WeChat bot with one long-lived Agent per chat peer (true rolling memory, flushed to disk).

How it works

This plugin talks directly to WeChat's official iLink Bot API (the same protocol behind Tencent's @tencent-weixin/openclaw-weixin gateway plugin). It uses that Tencent-maintained package as a plain protocol library — no OpenClaw gateway, no forwarding, no cloud relay — and replaces the gateway glue with DSH Agents:

your WeChat ⇄ Tencent iLink API ⇄ this plugin (getUpdates long-poll)
                                        └→ one resident DSH Agent per peer
                                           replies via sendMessage
  • QR login on first boot: the QR link is printed to the log and written to <rootDir>/login-qr.txt (render it or open it in WeChat). The flow auto-refreshes expired QRs and retries.
  • Credentials are stored under <rootDir>/state/openclaw-weixin/accounts/<bot-id>.json (0600), isolated from any OpenClaw installation via OPENCLAW_STATE_DIR.
  • Inbound: every text message wakes the peer's Agent (created lazily, memory spans the process lifetime; sessions persist to the DSH session store).
  • Model: whatever the host's default model selection is (agent-default-model in ~/.dsh/settings.yaml).
  • Resilient: long-poll timeouts and transport errors back off exponentially (5s→120s) and reconnect.

Install

# 1. Put the bundle where DSH resolves bundles, e.g. the runtime install:
cp -R dsh-weixin ~/.dsh/runtime/node_modules/dsh-weixin
# (plus the protocol dependency, next step)

# 2. Install the iLink protocol library into the same runtime:
cd ~/.dsh/runtime
npm install @tencent-weixin/openclaw-weixin@2.4.6 openclaw
# (`openclaw` satisfies one utility import in the library's logger;
#  no gateway is started or used)

# 3. Create ~/.dsh/profiles/weixin/package.json:
# {
#   "name": "dsh-profile-weixin",
#   "private": true,
#   "dependencies": {},
#   "dsh": { "profile": { "bundles": ["@deepseek-ai/dsh-base", "dsh-weixin"] } }
# }
# plus empty cordis.yml (`[]`), cordis.patch.yml (`[]`), pnpm-workspace.yaml.

# 4. Boot:
dsh --profile weixin

On first boot it prints a QR link — scan it with your phone WeChat, confirm, and the bridge enters the poll loop. Subsequent boots reuse the saved token.

Configure (optional, via the profile's cordis.patch.yml)

- id: weixin-bridge
  config:
    rootDir: ~/.dsh/weixin-channel   # state + workspace root
    accountId: default               # logical account label
    loginTimeoutSeconds: 240         # per-attempt QR wait
    minBackoffSeconds: 5             # transport backoff bounds
    maxBackoffSeconds: 120
    maxReplyChars: 3800              # outgoing reply cap

Notes & limits

  • One iLink connection per WeChat account globally — don't run another

WeChat gateway (OpenClaw, Hermes, hermesclaw…) on the same account while this bridge runs, or tokens will conflict (403s / dropped messages).

  • Text messages only in v0.1 (the protocol lib also supports images/voice/

files — media handling is a natural next step).

  • Self-sent messages don't reach the bot channel; test from another account.
  • Reply latency = model turn time (tens of seconds typical); the iLink side

has no typing indicator wired up in v0.1.

License: MIT-style, do whatever you like; no warranty.