dsh-notify

by yangyongzhen

通知与集成github 检测到 manifest package.json#dsh 社区精选 收录于 08-16

任务完成通知:ServerChan / 钉钉 / 飞书 / 通用 Webhook。

Task-completion notifications via ServerChan / DingTalk / Feishu / generic webhooks.

安装

dsh plugin --profile web add github:yangyongzhen/dsh-notify

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

DeepSeek Harness 任务完成通知插件:turn 结束后把结果摘要推送到 Server酱 / 钉钉 / 飞书 / 通用 Webhook。

长任务(几十分钟到几小时)跑完不用一直盯着终端,手机收通知即可。

  • 监听 session/event 事件流,turn/end 后防抖 debounceMs 推送
  • 通知内容:模型、耗时、工具调用数、token 消耗(含缓存读写)、最后一条助手消息摘要、回合结果(完成/出错/被中断…)
  • 支持 4 种渠道:Server酱(form 表单)、钉钉(含加签模式)、飞书、通用 Webhook(JSON)
  • 进程退出时 flush 待发送通知(headless 一次性任务也能送达)

安装

# 本地 checkout 安装
dsh plugin --profile <web|tui|headless> add file:/path/to/dsh-notify

# 或从 Git 仓库安装
dsh plugin --profile <web|tui|headless> add https://gitcode.com/qq8864/dsh-notify.git

配置

通过 profile 的 cordis.patch.yml 或 --patch overlay 配置渠道:

- id: notify
  config:
    enabled: true
    debounceMs: 10000          # turn/end 后的静默等待
    summaryMaxChars: 500       # 助手消息摘要截断
    titlePrefix: ''            # 通知标题前缀
    notifyOnCompleted: true    # 正常完成时通知
    notifyOnError: true        # 出错/达到上限时通知
    channels:
      - type: serverchan                     # Server酱(方糖)
        url: https://sctapi.ftqq.com/<SENDKEY>.send
      - type: dingtalk                       # 钉钉机器人
        url: https://oapi.dingtalk.com/robot/send?access_token=<TOKEN>
        secret: <加签模式的 secret,可选>
      - type: feishu                         # 飞书机器人
        url: https://open.feishu.cn/open-apis/bot/v2/hook/<TOKEN>
      - type: generic                        # 通用 Webhook(JSON: title/content/timestamp)
        url: https://example.com/hook

channels 为空数组时不发送任何通知(插件只订阅不动作)。

通知样例(generic 渠道)

{
  "title": "[dsh] 任务完成",
  "content": "模型:deepseek-official/deepseek-v4-flash\n耗时:4s\ntokens:8247 in / 122 out(缓存读 0 / 写 0)\n---\ndef fibonacci(n): ...",
  "timestamp": "2026-08-14T09:22:36.409Z"
}

开发

pnpm install
pnpm run build        # tsc -> lib/

端到端验证(本地 webhook):

node test/hook-server.mjs &   # 监听 127.0.0.1:9999,落盘 test/hook-received.jsonl
dsh --profile headless --patch ./test/notify-patch.yml "一句话介绍你自己"
cat test/hook-received.jsonl

原始 README: https://github.com/yangyongzhen/dsh-notify/blob/main/README.md ↗

同类插件

查看全部 →
通知与集成alvinunreal

dsh

将 DeepSeek Harness 的生命周期状态、错误与审批请求,桥接到本地运行的 OpenPets 桌面伙伴。

查看详情
1081github+08-21
通知与集成tencent-connect

dsh-qqbot

让 QQ Bot 接入 DeepSeek Harness(dsh)的官方插件

查看详情
55github+08-17
通知与集成omdsh-dev

dsh-open-in-vscode

从 Web GUI 一键在 VS Code 中打开工作区目录。

查看详情
39github+08-13
通知与集成omdsh-dev

dsh-notification

回合完成桌面通知,按结果分控 + 关键词过滤。

查看详情
38github+08-13
通知与集成THEWOLFWALKER

dsh-notifier

DSH 统一通知推送与远程控制:一个 `notify()` API 打通 25+ 渠道(Telegram / 钉钉 / 飞书 / 企业微信 / QQ 机器人 / WxPusher / PushPlus / Server 酱 / Bark / Discord / Slack / ntfy / webhook 等),timeSensitive / active / passive 分级路由并重试;五通道反向审批(Telegram 按钮 / 飞书卡片 / QQ / WxPusher / 微信 iLink);QQ/钉钉/飞书官方扫码登录;本地 Web 管理台;多 agent 路由;系统桌面通知——以及**手机指挥中心**:在手机上发 `!status` / `!stop` / `!retry` 遥控 agent,通知带可操作按钮(查看结果 / 重试 / 日志,点击回调 agent)。密钥脱敏、工具限流、零运行时依赖。

查看详情
27github+08-16
通知与集成wzj998

chatccc

飞书(Lark)或微信(WeChat)聊天控制 DeepSeek Harness / Claude Code / Cursor / Codex / CCC Agent

查看详情
22github+08-23