dsh-plugin-task-notification
by cocowwy
DeepSeek Harness agent 会话结束时发桌面通知
Desktop notifications when a DeepSeek Harness agent session finishes
安装
dsh plugin --profile web add github:cocowwy/dsh-plugin-task-notificationGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
目录
Native operating-system notifications for DeepSeek Harness tasks. Notifications include the completed task, elapsed time, completion status, sound, and a bundled icon.
中文
当 DeepSeek Harness 中的一轮任务结束时,由 DSH Host 直接发送系统级通知。它不依赖浏览器 Notification API,也不需要在网页里授予通知权限。
通知内容
每条通知包含:
- 状态:任务已完成、执行异常、已中止或等待处理
- 任务:优先显示本轮用户输入,过长内容会自动压缩
- 用时:从本轮
turn/start到turn/end的真实耗时 - 声音:使用系统通知声音
- 图标:仅显示一个插件内置的任务完成图标
- 交互:纯信息提示,不添加按钮、下拉菜单或重复确认操作
耗时显示规则:
不足 60 秒:12 秒
不足 1 小时:3 分 18 秒
1 小时以上:2 小时 6 分
通知不等待任何自定义交互响应。macOS 的实际显示时长由系统通知策略控制,应用不能可靠指定秒数:
- “横幅”会自动消失
- “提醒”会持续显示,直到用户关闭
如需持续显示,请前往 系统设置 > 通知,找到发送通知的通知助手,将样式改为“提醒”。
环境要求
- DeepSeek Harness
0.1.0-rc.6或更高版本 - Node.js 20 或更高版本
- macOS、Windows 或支持桌面通知服务的 Linux
dsh和pnpm可通过PATH调用
从 GitHub 安装
dsh plugin --profile web add "github:Cocowwy/dsh-plugin-task-notification"
然后停止并重新启动 dsh web,再刷新现有页面。仅刷新浏览器不会重新加载 Web profile 的 Host 插件。
更新
dsh plugin --profile web update dsh-plugin-task-notification
更新后重启 dsh web。
卸载
dsh plugin --profile web remove dsh-plugin-task-notification
卸载后重启 dsh web。如果提示 ERR_PNPM_CANNOT_REMOVE_MISSING_DEPS,说明插件当前未安装或已经卸载,不需要重复执行。
macOS 没有出现通知
- 确认已经重启
dsh web,而不是只刷新页面。 - 打开 系统设置 > 通知,允许通知助手显示通知。
- 关闭“专注模式”,或允许通知助手在专注模式下通知。
- 检查启动
dsh web的终端中是否有[task-notification]错误。
macOS 原生通知由系统通知助手发送,因此系统设置中显示的发送者名称可能是通知助手,而不是浏览器。
架构
DSH session/event
-> turn/start 记录开始时间
-> user/message 记录本轮任务
-> turn/end 计算状态和耗时
-> Node Host 原生通知适配器
-> macOS / Windows / Linux 通知中心
插件完全在 DSH Host 中运行,不上传任务标题、会话标识或其他数据。
English
This plugin sends native operating-system notifications from the DSH Host when a task turn ends. It does not use the browser Notification API and does not require website notification permission.
Each notification includes:
- Completion, error, interruption, or blocked status
- The current turn's user task, shortened when necessary
- Actual elapsed time from
turn/starttoturn/end - System sound
- One bundled task-completion icon
- Informational presentation only, without custom buttons, dropdown menus, or duplicate confirmation actions
Install
dsh plugin --profile web add "github:Cocowwy/dsh-plugin-task-notification"
Restart dsh web and refresh the existing page.
Update
dsh plugin --profile web update dsh-plugin-task-notification
Restart dsh web after updating.
Uninstall
dsh plugin --profile web remove dsh-plugin-task-notification
Restart dsh web after uninstalling.
Notification duration
The notification does not wait for a custom interaction response. macOS controls the visible duration through System Settings: banners disappear automatically, while alerts remain until dismissed. Applications cannot reliably override that user-level policy.
Privacy
The plugin runs locally in the DSH Host and does not upload task titles, session identifiers, or notification data.
License
MIT
原始 README: https://github.com/Cocowwy/dsh-plugin-task-notification/blob/main/README.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