DeepSeek Harness 插件

dsh-im-gateway

An IM gateway for the DeepSeek Harness: bridge WeChat (iLink) and other messengers into harness agent sessions, with slash-command controls (/new, /sessions, /status, /model, ...).(英文原文)

跳到安装方式

来源信息

GitHub 仓库
jelech/dsh-im-gateway
最近更新
2026年8月14日
分类
远程与移动
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/jelech/dsh-im-gateway
插件名:dsh-im-gateway
作者:jelech

检查来源文件

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

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

dsh-im-gateway

An IM gateway for the DeepSeek Harness: bridge messengers into harness agent sessions and control them with slash commands.

  • WeChat via Tencent's official iLink Bot transport (the same one OpenClaw's @tencent-weixin/openclaw-weixin uses) — QR login, long-poll, no public endpoint/ngrok required.
  • Slash commands modeled on Hermes Agent's messaging interface: /new, /sessions, /status, /model, …
  • One agent session per peer: every IM contact gets its own harness agent (same model, tools, workspace), so conversations have memory and stay isolated.

Architecture

IM (WeChat iLink)
      │  QR login + long-poll (native fetch)
      ▼
dsh-im-gateway (host plugin, one per process)
   ├── channel registry        lib/channels/wechat-ilink.js   ← transport adapters
   ├── peer → session map      lib/gateway.js                 ← agent lifecycle
   ├── slash commands          lib/commands.js
   └── HTTP bridge             lib/http.js                    ← browser panel
      │
      ▼
harness agents service → agent session → model/tools/workspace

Two halves, per the harness convention:

  • Host (index.js, lib/): the gateway. Runs once per process because the channel token and peer→session map must be shared, not per-session.
  • Client (client.js): an optional browser "IM 网关" settings section (QR login, status, test). Discovered automatically via the package's dsh.client declaration.

Commands

CommandAction
/helpList commands
/new (or /reset)Archive the current session and start a fresh one
/sessionsList current + archived sessions for this peer
/statusShow connection, model, and current session
/model [provider:model]Show current model, or switch (provider:model) into a new session

Roadmap: /retry, /undo, /compress, /usage, /personality, /stop (interrupt), and skill invocation.

Install

This is a Cordis plugin package that targets the harness host plane. It declares dsh.bundle, so the official dsh plugin command installs it and composes it automatically — no manual composition edit.

From GitHub (before/without npm publish)

dsh plugin --profile web add github:jelech/dsh-im-gateway

dsh plugin forwards to pnpm add, and github:user/repo is a native pnpm spec. The package's dsh.bundle declaration then joins it to the profile's bundle layers automatically (this package has no prepare/build script, so no allowBuilds step is needed).

From the npm registry (after publishing)

dsh plugin --profile web add dsh-im-gateway

From a local checkout

dsh plugin --profile web add file:/absolute/path/to/dsh-im-gateway

Restart the harness after installing (composition is read at boot). The gateway registers an imGateway service and, if the profile provides webServer, exposes /im-gateway/* plus the settings section.

For a manual install instead of dsh plugin, the equivalent is pnpm add dsh-im-gateway from the profile directory plus merging the insert row in cordis.patch.yml (see cordis.patch.yml in this repo).

Login

1. Open 设置 → IM 网关 → 扫码登录微信 (browser), or call gateway.login() and scan the QR printed to the host console. 2. Scan with WeChat and confirm. The token is held in memory for the process lifetime. 3. Message the bot. Text messages are answered by the harness agent; /-prefixed messages are commands.

Notes & limitations

  • Text only for now. Media (image/voice/file) requires the iLink CDN AES-128-ECB path; it's isolated behind the channel interface and can be added without touching the gateway core.
  • iOS needs WeChat ≈ 8.0.70; Android may prompt for a WeChat update first (iLink requirement).
  • The browser panel renders the login QR locally on the host (via the qrcode npm package, served as SVG from /im-gateway/qrcode) — no third-party QR service and no external network round-trip for the login link.
  • The /im-gateway/* HTTP bridge registers raw routes on the harness web server; if your deployment enforces HTTP auth above the route layer, add it in lib/http.js.

License

MIT