sliverp/DeepSeek-harness-wecom 预览 preview

sliverp/DeepSeek-harness-wecom

WeCom AI 机器人文本与图像桥接,用于 DeepSeek Harness

Project Overview项目介绍

This is a native channel plugin built exclusively for DeepSeek Harness (DSH) that connects persistent DSH agents to WeCom (WeWork) AI bots using the official Tencent WebSocket long-connection SDK. It handles Bot ID and Secret authentication, maintains regular heartbeats to keep the connection alive, and automatically reconnects if the connection drops unexpectedly. It supports both single and group text messages, mixed text and image input, and can download and decrypt AES-encrypted inbound media files for DSH agents to access via absolute local paths.

The plugin supports configurable access policies for single and group chats, and can forward pre-configured DSH commands from WeCom conversations to the connected agent. It generates one-time six-digit approval codes for tool operations that require manual approval, letting users approve or reject requests directly in WeCom with /approve <code> or /reject <code>. If Bot ID and Secret are not configured at startup, the plugin starts in dormant mode instead of blocking DSH from launching, which simplifies initial installation and incremental setup.

To install the plugin, you can run the one-line command pnpm dsh plugin --profile web add github:sliverp/DeepSeek-harness-wecom directly from your terminal, or add a local cloned checkout for local development testing. Bot credentials are stored in the DSH credential service, not hardcoded in configuration files, which keeps sensitive bot authentication information secure. The plugin is distributed under the open-source MIT license, so it is free to use, modify, and redistribute without any additional licensing fees or restrictions.

这是专为DeepSeek Harness(DSH)开发的原生通道插件,可通过企业微信官方WebSocket长连接SDK,将DSH持久化Agent连接到企业微信AI机器人。它支持处理单聊和群聊的文本、图片、文件消息,完成身份验证、心跳保活和自动重连,还能将解密后的入站文件保存到本地供Agent工具调用。

它支持单聊和群聊的访问控制策略,可配置转发DSH代理预设注册的命令,默认开放/compact、/goal、/plan,还支持通过/approve <code>和/reject <code>完成一次性工具审批,内置了连通性测试命令,未配置凭证时会静默启动不阻塞DSH启动流程。

该插件依赖Node.js 22.19或更高版本、pnpm 10.33.4以上、DSH 0.1.0-rc.7或更新版本,还需要一个开启长连接功能的企业微信AI机器人,获取Bot ID和密钥。可通过pnpm命令一键从GitHub安装,凭证存储在DSH凭证服务中不硬编码,采用MIT许可协议,可免费使用修改。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
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:sliverp/DeepSeek-harness-wecom

把 sliverp/DeepSeek-harness-wecom 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

DeepSeek Harness WeCom

中文 | English

An independent out-of-tree DeepSeek Harness channel plugin that connects a WeCom AI Bot to persistent Harness agents through the official WebSocket long-connection SDK.

Features

  • Official @wecom/aibot-node-sdk long connection
  • Bot ID + Secret authentication, heartbeat, and reconnect handling
  • Single-chat and group text messages
  • Mixed text/image input
  • Official encrypted image, file, and video download with AES decryption
  • Durable Harness image attachments
  • Decrypted inbound files saved outside the workspace and exposed to Agent tools by absolute path
  • Automatic text-only fallback when the selected model cannot accept images
  • Text and inline image replies, plus uploaded active image sends for other image formats
  • A WeCom-turn-scoped wecom_send_file tool with workspace containment and file-size checks
  • WeCom Markdown replies through the official stream response fields
  • One persistent Harness session per single or group conversation
  • Harness agent-preset composition for the same tools, prompts, and skills as Web sessions
  • Safe reuse of a live session already opened by Web, without a second session writer
  • Same-conversation /approve <code> and /reject <code> decisions for one-shot tool approvals
  • /new and /reset rotation to a new durable session while retaining old history
  • Configurable forwarding of Harness commands registered by the current agent preset; /compact, /goal, and /plan are enabled by default
  • Per-conversation ordering, duplicate suppression, retries, and bounded timeouts
  • Open, allowlist, or disabled access policies for single and group traffic
  • /bot-ping, /bot-image-test, /bot-file-test, /bot-help, /bot-status, and /bot-cancel
  • Optional welcome text for the WeCom enter_chat event
  • Secret resolution through the Harness credential service instead of plugin configuration
  • Dormant startup when Bot ID or Secret is not configured, so installation alone never blocks DSH

Requirements

  • Node.js 22.19 or later
  • pnpm 10.33.4
  • DeepSeek Harness 0.1.0-rc.7 or later
  • A WeCom AI Bot with long connection enabled and a Bot ID/Secret

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-widgets 下一个 Next dsh-auto-retry →