dsh-task-notify
by YuMo226
任务完成时弹出 Windows 原生系统通知(通知中心横幅):目标完成或 Agent 结束一轮。
Native Windows system notification (Notification Center toast) when a task completes: goal completion or agent turn end.
安装
dsh plugin --profile web add github:YuMo226/dsh-task-notifyGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
一个 DeepSeek Harness (DSH) 插件:每当任务完成时(目标完成或 Agent 结束一轮),弹出原生系统通知。支持 Windows / macOS / Linux。
特性
- 各平台原生系统通知 — Windows toast、macOS 通知中心、Linux libnotify;真实系统横幅,非模态弹窗,不打断工作。
- 两个「任务完成」触发(可分别开关):
- 目标(goal)进入
complete状态 - Agent 一轮正常结束
- 目标(goal)进入
- CJK 安全 — Windows 通知文本经 UTF-8 临时文件传递,中文/日文/韩文不损坏。
- 零运行时依赖 — 仅用 Node 内置模块 + 系统原生命令(PowerShell、osascript、notify-send)。
- 防刷屏 — 两次通知之间可设置最小间隔。
平台支持
| 系统 | 机制 | 前提 |
|---|---|---|
| Windows | WinRT toast(通知中心) | 无(运行时自动注册 AUMID) |
| macOS | osascript display notification |
macOS 10.8+ |
| Linux | notify-send(libnotify) |
libnotify;缺失时回退 zenity → kdialog |
工作原理(Windows)
- 首次通知时注册 AppUserModelID(
dsh.tasknotify)到HKCU\Software\Classes\AppUserModelId,使CreateToastNotifier能投递到交互桌面。 - 任务完成时,把标题/正文写入 UTF-8 临时文件,运行一段小 PowerShell 脚本,通过
ToastNotificationManager展示 WinRTToastText02通知。 - 之后删除临时文件;失败只写入日志、绝不抛错,不影响 Agent 运行。
每次通知(及失败)都会记录到审计日志 <home>/task-notify.log。
安装
作为 dsh bundle,可通过 profile 插件管理器安装:
dsh plugin --profile web add dsh-task-notify
或直接安装该仓库:
dsh plugin --profile web add github:YuMo226/dsh-task-notify
手动安装(无 pnpm)
把本包复制到 profile 的 hoisted node_modules,并添加 loader entry:
- insert:
- id: notify
name: dsh-task-notify
config:
onGoalComplete: true
onTurnEnd: true
title: 'DeepSeek Harness'
minIntervalMs: 4000
安装后请重启
dsh web以便插件挂载。
配置
| 键 | 类型 | 默认 | 说明 |
|---|---|---|---|
onGoalComplete |
boolean | true |
目标完成时通知 |
onTurnEnd |
boolean | true |
Agent 一轮正常结束时通知 |
title |
string | DeepSeek Harness |
通知标题 |
minIntervalMs |
number | 4000 |
相邻两次通知的最小间隔(防刷屏) |
常见问题
- Windows:确认通知中心已开启,专注助手未处于「仅闹钟」/「仅优先事项」模式。
- Linux:安装 libnotify(提供
notify-send);缺失时插件回退 zenity,再 kdialog。 - 若未弹通知,查看
<home>/task-notify.log的报错记录,并可提交 issue。
License
原始 README: https://github.com/YuMo226/dsh-task-notify/blob/master/README.zh.md ↗
同类插件
查看全部 →
dsh
将 DeepSeek Harness 的生命周期状态、错误与审批请求,桥接到本地运行的 OpenPets 桌面伙伴。

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

dsh-open-in-vscode
从 Web GUI 一键在 VS Code 中打开工作区目录。

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

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)。密钥脱敏、工具限流、零运行时依赖。

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