zhao999/dsh-plugin-wecom-bot0

dsh-plugin-wecom-bot

DeepSeek Harness 插件:通过企业微信“智能机器人”长连接收发消息,将私聊/群聊消息作为任务下发给 DSH agent 并回传结果。

AI 分析

核心用途是将 DSH 接入企业微信。适合需要通过企微私聊或群聊与 DSH 智能体交互、下发任务并获取反馈的团队或个人用户。

包名
dsh-plugin-wecom-bot
版本
0.1.0
许可证
MIT
最近更新
2026年8月14日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zhao999/dsh-plugin-wecom-bot

三、配置凭证

两种方式任选其一:

方式 A:环境变量(默认,推荐)

export WECOM_BOT_ID="wwxxxxxxxxxxxxxx"
export WECOM_BOT_SECRET="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
dsh web

方式 B:profile patch 覆盖~/.dsh/profiles/web/cordis.patch.yml):

- id: wecom-bot
  config:
    botId: wwxxxxxxxxxxxxxx
    botSecret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

patch 覆盖的是整行 config,覆盖时如需保留其他选项要一并写全 (完整选项见下表)。

未配置时插件保持空闲、仅打印提示,不影响 dsh web 启动。

六、配置项

配置键默认值说明
botId环境变量 WECOM_BOT_ID智能机器人 BotID
botSecret环境变量 WECOM_BOT_SECRET智能机器人 Secret
wsEndpointwss://openws.work.weixin.qq.com长连接网关
heartbeatIntervalMs30000心跳间隔(毫秒)
reconnectBaseDelayMs1000重连初始退避(毫秒)
reconnectMaxDelayMs30000重连最大退避(毫秒)
sessionModeper-userper-user 每个成员一个 agent 会话(多轮上下文);per-message 每条消息新建 agent
cwd进程 cwdagent 的工作目录
provider / model默认模型选择覆盖 agent 使用的模型(留空用 agentDefaultModel
reasoningEffort默认推理档位(如 high/medium/low
agentPreset部署默认(standardagent 装配预设:决定工具/提示。留空用部署默认(web profile 为 standard,含 bash/fs 等完整工具);可选 code / minimal缺失 preset 时 agent 无工具,任务会"假执行"(模型输出伪工具调用文本)
ignoreOlderThanSec300忽略超过该秒数的历史消息(重连补发防抖)
maxReplyChars6000最终回复最大字符数,超出截断
ackOnReceivetrue先推一条「已收到」中间态
stripGroupMentionstrue群聊消息去掉 @机器人 提及前缀