dshbase

插件目录 / Developer / dsh-sound-notifier

dsh-sound-notifier

已验证 · 实测可装 Zhengshuji

✓ 持续维护 2 位贡献者

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-17最近推送
跨平台平台

功能简介

DSH(DeepSeek Harness)插件:在Web界面播放不同提示音,以提示Harness工作状态

✅
我们的评价
可用 — 实测通过,早期项目

DSH(DeepSeek Harness)插件:在Web界面播放不同提示音,以提示Harness工作状态 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-sound-notifier

Sound alerts for DeepSeek Harness (DSH): the Web UI plays a distinct chime when the agent receives a message, starts thinking, calls a tool, or finishes a turn.

Installed as an official DSH bundle (dsh.bundle + dsh.client), so it loads automatically on every DSH start — no per-session activation required.

Features

Moment Event Sound
Message received agent/inbox/inserted two short pops (660 Hz → 990 Hz)
Thinking starts first reasoning-delta in llm/stream rising sweep (392 → 784 Hz, triangle)
Tool invoked tools/pre-execute crisp double tick (233 Hz → 311 Hz, triangle)
Turn ended agent/turn-stopping major-triad arpeggio (C5–E5–G5)
  • Sounds are synthesized with the Web Audio API — no audio assets.
  • Only top-level sessions chime; subagent/workflow activity stays silent.
  • Already-played events are not replayed after a page refresh (sessionStorage).

How it works

The plugin has two halves:

  • Host half (index.js) listens to DSH events, appends them to a bounded queue (256 entries), and serves them over a GET /sound-alerts/events?after=N endpoint registered through the official webServer service.
  • Browser half (client.js) is a standard dsh.client plugin: the client-modules table injects it into window.__DSH_BOOT__, it polls the endpoint every 400 ms, and plays the matching chime.

Requirements

  • DeepSeek Harness with the Web UI (dsh web / dsh --profile web)
  • pnpm (the dsh plugin command forwards to pnpm)

Installation

From the root of your deepseek-harness checkout:

pnpm dsh plugin --profile web add /path/to/dsh-sound-notifier

This links the directory into ~/.dsh/profiles/web, and because package.json declares dsh.bundle, it is appended to the profile's dsh.profile.bundles automatically.

Restart DSH (stop the running pnpm dsh web and start it again) for the plugin to load.

Verify the composed config without restarting:

pnpm dsh --profile web --dump-config   # shows a "# == dsh-sound-notifier" layer

Install directly from GitHub (add the printed package key to the profile's pnpm-workspace.yaml allowBuilds on first try, see the official publishing guide):

pnpm dsh plugin --profile web add github:your-name/dsh-sound-notifier

Uninstall

pnpm dsh plugin --profile web remove dsh-sound-notifier

Customizing sounds

Edit the SOUNDS table in client.js:

Option Meaning
freq start frequency (Hz)
endFreq sweep target frequency (Hz); omit for no sweep
dur duration (seconds)
type waveform: sine / triangle / square / sawtooth
gain volume (0–1)
delay relative delay (seconds), for sequencing multiple notes

The local link: install reads the file directly — save and restart DSH.

Project structure

dsh-sound-notifier/
├── package.json        # dsh.bundle + dsh.client manifest; exports ./client
├── cordis.patch.yml    # plugin row: { id: sound-alerts, name: dsh-sound-notifier }
├── index.js            # host half: event listeners, queue, polling endpoint
└── client.js           # browser half: dsh.client bundle, polls and plays

Known limitations

  • Polling latency: up to ~400 ms between an event and its chime.
  • Fixed endpoint: /sound-alerts/events is served by the host half's webServer route; without a webserver the events are still recorded but never polled.
  • Top-level sessions only: agent.owner === undefined filtering means a subagent page opened on its own stays silent.
  • Internal LLM calls are skipped: compaction and session-title purposes never trigger the "thinking" chime.
  • Browser autoplay policy: the audio context is created lazily and resume()d on each play.

Contributing

Bug reports and pull requests are welcome. Keep changes focused; update this README when behavior changes.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-sound-notifier」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:Zhengshuji/dsh-sound-notifier

Headless(CLI)profile:

dsh plugin --profile headless add github:Zhengshuji/dsh-sound-notifier

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →