huguangyu666/dsh-plugin-notify 预览 preview

huguangyu666/dsh-plugin-notify

DeepSeek Harness 插件:通知出口——agent 通过桌面通知 / 中文语音播报 / 提示音主动联系用户(长任务完成、出错、呼叫用户回来)。Windows 本机零依赖。

Project Overview项目介绍

This is a native notification plugin built exclusively for DeepSeek Harness (DSH), designed to let DSH agents proactively alert users about task status updates. It supports three notification channels that can be used individually or combined: desktop toast notifications, offline Chinese text-to-speech, and custom prompt sound effects. The plugin automatically injects active notification rules into every agent’s system prompt, so users do not need to manually add the rule every time they start a new task. It works natively on Windows with zero extra dependencies required for core functionality beyond the system’s built-in PowerShell.

Beyond the agent-facing notify_user tool that lets agents send custom notifications, this plugin also includes automatic fallback notifications for turn events. If a conversation turn encounters an error, it automatically triggers both voice and desktop notifications. When a turn completes successfully, it sends a toast notification first, then waits a configurable 60-second confirmation window; if the user does not respond within that window, it triggers a voice call to alert the user. This feature is especially useful when the user steps away from their computer while the agent is working on a long-running task.

The plugin only supports Windows systems and requires PowerShell 5.1 or higher, which is pre-installed on all modern Windows versions. There are three supported installation methods: the official DSH plugin command, one-click install via the DSH plugin store, or manual installation via npm and profile patch. All configuration can be adjusted through the native DSH settings panel or a local config file, including default notification mode, confirmation window length, volume boost, sound effect type, and notification text templates. The plugin is released under the open source MIT license.

这是一个专为DeepSeek Harness开发的原生通知插件,核心功能是让DSH Agent能够主动给用户发送任务状态提醒,支持桌面通知弹窗、离线中文语音播报、自定义提示音效三种通知渠道,可任意组合使用。它会自动给所有Agent的系统提示词注入主动通知规则,无需用户每次手动声明,任务完成、出错或需要用户注意时触发通知。

除了Agent主动调用notify_user工具发送通知,插件还支持回合结束自动兜底通知:回合出错自动发语音+桌面通知,回合结束发弹窗通知,60秒内用户没回复就自动语音呼叫用户,适合用户离开电脑的场景。用户也可以通过/notify命令手动发送通知,还可以在DSH原生设置界面调整所有偏好配置。

该插件仅支持Windows系统,要求PowerShell 5.1及以上(系统自带),可通过官方dsh plugin命令、插件商店或手动挂载三种方式安装,所有配置可通过DSH设置面板或配置文件自定义,支持调整通知默认方式、确认窗口时长、音量增强、音效和通知文案模板,采用MIT许可开源。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
  • Desktop client: installation downloads an executable - verify the publisher and checksums桌面客户端:安装会下载可执行文件,请核对发布者与校验和
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 dsh-plugin-notify

把 huguangyu666/dsh-plugin-notify 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-plugin-notify

Awesome DSH Plugin

已收录于 awesome-dsh-plugin 精选列表(Notifications & Integrations)

DeepSeek Harness 插件:通知出口——让 agent 主动联系你。桌面通知 / 中文语音播报 / 提示音,Windows 本机零依赖。

image

功能

  • 系统提示词注入:自动往所有 agent 的系统提示词注入主动通知规则(长任务完成 / 出错 / 需要你注意时用 notify_user),不用每次教;DSH_NOTIFY_INJECT_PROMPT=0 可禁用

  • 自动通知兜底(不依赖模型自觉):

    • 会话回合出错 → 自动语音 + 桌面通知
    • 回合结束 → 立即桌面通知,进入 60 秒确认窗口:期间你在 dsh 发了消息(=看到了)则取消;没发 → 中文语音呼叫你(无论你在不在电脑前——用电脑没发现任务完成更需要语音打断提醒);DSH_NOTIFY_ON_TURN_END=0 关闭全部
  • agent 工具 notify_user:模型想说啥说啥——把想说的话写进 message 自由发挥(如搞定了,报告放桌面了);不写则按 scene 用默认文案

  • 命令 /notify:/notify <内容> [--speak|--sound|--toast] 手动发通知

  • 设置入口(dsh 原生设置界面):dsh 左下角设置 → 「通知」分区——所有行为偏好直接嵌在 dsh 设置里(默认通知方式 / 确认窗口秒数 / 自动通知开关 / 语音呼叫开关 / 音量增强 / 文案模板),保存即生效;另有 /notify 页面可测试通知

  • 音量增强:可选——通知时自动把系统音量调到最大,播报完恢复原音量(适合怕错过呼叫的场景,不是每个人都喜欢所以默认关闭)

  • 炸裂音效:4 种合成音效(炸裂 / 胜利 / 警报 / 清脆,Python 标准库实时合成),通知时可配;默认「炸裂」

  • 音量增强默认开启:通知时自动把系统音量调到最大,播完恢复原音量

  • 三种通道(可组合):

    • toast 桌面通知(NotifyIcon 气泡,无额外模块)
    • speak 中文语音播报(PowerShell SAPI 离线 TTS,优先中文语音)
    • sound 系统提示音
    • both 语音 + 桌面通知

安装

方式一:官方命令(推荐)

# 装进 web profile(自动 reconcile dsh.profile.bundles)
dsh plugin --profile web add dsh-plugin-notify
dsh web   # 重启生效

方式二:商店一键安装

装 dsh-store,打开「插件商店」搜索安装。

方式三:手动

npm i dsh-plugin-notify

在 dsh 的 profile patch(~/.dsh/profiles/<profile>/cordis.patch.yml)中挂载:

- insert:
    - id: notify
      name: 'dsh-plugin-notify'

重启 dsh 即生效。要求 Windows + PowerShell 5.1+(系统自带)。

使用

模型主动通知(核心场景):直接跟 agent 说"做完这个任务通知我""出错时叫我",它会调用 notify_user 工具。语音播报会念出内容(自动截断 300 字),适合你离开电脑时的场景:

"查一下今天的项目状态,完成后用语音叫我"

手动通知:

/notify 任务完成了
/notify --speak 快回来看看结果
/notify --sound 提醒

测试页:浏览器打开 /notify,选模式点发送;"演示:任务完成叫你"一键体验完整场景。

环境变量

变量 默认 说明
DSH_NOTIFY_DEFAULT_MODE toast 默认通知方式(toast / speak / sound / both)
DSH_NOTIFY_INJECT_PROMPT 1 是否向系统提示词注入"主动通知"规则(0 关闭)
DSH_NOTIFY_ON_TURN_END 1 回合结束是否自动通知(0 关闭全部)
DSH_NOTIFY_CALL_DELAY_SECONDS 60 toast 发出后等待用户响应的秒数,超时未互动则语音呼叫
DSH_NOTIFY_TEMPLATE_DONE 等 默认模板 文案模板(task_done / task_error / call_back),也可用设置面板或 ~/.dsh/notify/config.json 覆盖

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

← 上一个 Prev open-preset-harness 下一个 Next dsh-token-pet →