dsh-task-complete-sound

by Areium

通知与集成github 检测到 manifest dsh.plugin.json收录于 08-16

独立DeepSeek Harness插件,在代理转向结束(turn/end)时播放本地系统声音。无面向模型的工具,无网络访问,从不失败。

A standalone DeepSeek Harness plugin that plays a local system sound when an agent turn finishes ( turn/end ). It has no model-facing tools, no network access, and never fails…

安装

dsh plugin --profile web add github:Areium/dsh-task-complete-sound

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

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

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

README

目录

独立的 DeepSeek Harness 插件:agent 一轮任务结束(turn/end)时播放本地系统提示音。 不注册任何模型工具,不访问网络,也绝不会让会话轮次失败。

行为

  • 默认只对 reason.kind: completed 的轮次发声;
  • 默认跳过子 agent;
  • 播放为 fire-and-forget,失败自动尝试下一条命令,全部失败只告警一次。

设置 → 通用

Web profile 中,插件会在「设置 → 通用」里贡献 任务完成提示音 一行。该行可以:

  • 选择预设提示音并即时保存到运行中的 host 进程;
  • 持久化到 $DSH_HOME/storages/dsh-task-complete-sound.json;
  • 点击 试听 通过任务完成时使用的同一播放后端试听当前预设。

内置预设:

glass(默认)、ping、pop、tink、bottle、funk、hero, 另有 muted 静音和 custom 自定义文件。

「自定义」选项会始终出现在通用设置里。选择它后可直接上传音频文件 (支持 .aac、.aif、.aiff、.flac、.m4a、.mp3、.oga、.ogg、 .opus、.wav、.weba,最大 20 MB)。上传文件保存在 $DSH_HOME/storages/dsh-task-complete-sound/,重启后仍然生效。

各平台播放:

  • macOS:通过 afplay 播放对应的系统音(失败回退 osascript beep);
  • Windows:每个预设的音调模式会合成为 WAV,用 System.Media.SoundPlayer 在带隐藏控制台的子进程中播放(无控制台进程无法出声,控制台蜂鸣仅作后备), custom 可播放 .wav;
  • Linux:按映射优先选择 freedesktop/ALSA 声音,依次尝试 paplay / pw-play / aplay / ffplay。

安装

推荐:dsh plugin add

需要 PATH 中有 pnpm(安装方式见 https://pnpm.io/installation)。

dsh plugin --profile web add github:Areium/dsh-task-complete-sound

如需固定版本而不是跟随 main:

dsh plugin --profile web add github:Areium/dsh-task-complete-sound#v0.3.1

包内声明了 dsh.bundle.patch,dsh plugin add 会自动在所选 profile 中激活该插件, 无需手工编辑 patch。

手工:本地 checkout

git clone https://github.com/Areium/dsh-task-complete-sound.git

然后在 ~/.dsh/profiles/<profile>/cordis.patch.yml 中追加一行:

- insert:
    - id: task-complete-sound
      name: /absolute/path/to/dsh-task-complete-sound/lib/index.js
      config:
        soundPreset: glass
        events: [completed]
        repeat: 1

安装后完整重启 DSH。

配置

config:
  enabled: true              # false 为静音,无需删除该行
  soundPreset: glass         # glass/ping/pop/tink/bottle/funk/hero/muted/custom
  sound: /path/to/file.wav   # 可选 patch 级自定义文件;Web 上传优先
  events: [completed]        # 触发发声的 turn-end 原因,如 [completed, error]
  repeat: 1                  # 播放次数
  cooldownMs: 0              # 两次提示音的最小间隔(毫秒)
  includeSubagents: false    # 是否同时提示子 agent

测试

npm test

原始 README: https://github.com/Areium/dsh-task-complete-sound/blob/main/README.zh-CN.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