跳转至

dsh-notify-windows

类型 插件 分类 通知
星数 ⭐3 状态 ✅ 活跃
能力 notifications 更新时间 2026-08-13

📖 项目简介

任务完成 ✅ | 等待审批 🔐 | 等待回答 ❓ —— 离开屏幕也不错过任何需要你处理的事。

✨ 核心特性

  • 任务完成提醒:监听会话 turn/end 事件,任务完成 / 出错 / 输出超限时立即弹窗,标题自动使用会话标题,正文显示原因与轮次;
  • 权限审批提醒:监听 approval/asked 事件,有操作等待你的审批时立即提醒;会话审批策略为 never 时自动跳过(此时没有东西在等你);
  • 提问确认提醒:Agent 调用 ask_user_question 向你提问时提醒;本部署下所有工具都经 run_code 调用,插件会扫描 run_code 程序源码中的 tools.ask_user_question( 调用并提取问题文本;
  • 防打扰:默认忽略子代理(subagent)会话,只提醒主会话;
  • 零依赖:通知通过 Windows PowerShell 5.1 的 WinRT Toast API 发送,自动注册 HKCU 的 AppUserModelId(无需管理员权限);
  • 可诊断:可选日志(%TEMP%\dsh-notify\notify.log)与 debug 事件日志。

📦 安装

dsh plugin --profile web add dsh-notify-windows

🚀 快速开始

- insert:
    - id: dsh-notify
      name: 'dsh-notify-windows'
      config:
        enabled: true
        reasons: [completed, error, max-tokens]
        includeSubagents: false
        notifyOnStart: true
        notifyOnApproval: true
        notifyOnAskUser: true
        appName: 'DeepSeek Harness'
        aumid: 'DeepSeekHarness.Notify'
        log: true
        debug: false

🔗 链接