Introduction¶
When running agents with DSH, the approval panel and “ask you” panel often appear after you’ve switched to another window. Without sound, you can only repeatedly check the screen or wait for the task to get stuck to notice. Below we introduce the community plugin dsh-approval-sound (maintainer rongqingwen), which plays a notification sound when a dialog box is waiting for your action, and supports different sounds by tool type or uploading local audio.
What Is This¶
dsh-approval-sound is a client (Web) plugin for DSH: it immediately plays a sound alert when the Harness pops up a dialog box in the Web GUI that requires your action. Two types of dialogs will trigger it:
- Approval panel: tool requests overreach execution (allow once / reject)
- Question panel: assistant asks questions, plan review, etc. (option buttons, skip / submit)
By default it uses the browser’s Web Audio for real-time synthesis, with no packaged audio and no network access; you can also switch to locally uploaded files in the settings. The plugin is categorized as “client”, and instructions can be viewed in the SkillHub directory and GitHub repository (the community directory has no official affiliation with DeepSeek or High-Flying).
Environment Requirements¶
- DSH 0.1.5 or higher (engine in
package.jsonis>=0.1.5-rc.1), running on Web or Desktop. - No headless, ACP, SDK, etc. profiles without a Web layer — the notification sound depends on page playback.
- A modern browser that supports Web Audio.
Core Features¶
Sound on Dialog¶
Plays a notification sound when a dialog box is waiting for your click, suitable for long-running tasks or when the window is not in the foreground.
Sound & “Seam” Distinction¶
Besides presets (urgent double beep, clear ring, bell, water drop, mute), the built-in logic will select different pitches based on the tool name or short label of the dialog source, making it easy to distinguish scenarios without looking at the screen (from low to high, roughly: question / plan review → command-line type → file read/write type → network request → sub-agent / team → other tools). See the comparison table in the README for details.
Volume and Repeat¶
- Volume defaults to 100%, adjustable 0–150%; output goes through a limiter, so increasing it mainly affects loudness rather than causing distortion.
- Repeat count 1–6, repeat interval (default 900ms), minimum interval (default 600ms, to avoid consecutive dialogs stacking into noise).
- Optional only remind when the window is not in the foreground (when enabled, the window won’t sound when you’re watching and waiting for a dialog in the foreground).
Custom Audio¶
The settings page allows uploading / replacing / removing local notification sounds: supports wav, mp3, ogg, m4a, aac, flac, webm, maximum 8 MiB; files are stored only on the local machine; extensions inconsistent with file headers will be rejected; if decoding fails, it falls back to the built-in sound and explains the reason on the settings page.
Privacy and Data¶
The plugin only reads the tool name or short label of the dialog for sound selection. Question content is not sent to the browser, does not write session data, and does not change dialog determination. Configuration is in ~/.dsh/dsh-approval-sound/config.json, and custom files are custom.<extension> in the same directory.
Installation and Activation¶
After installation, you must restart dsh web or the desktop application: the host half only loads plugins at startup, and refreshing the page cannot replace restarting. The plugin has zero build and zero runtime dependencies; host.js and client.js can be loaded directly.
Method 1: Download dsh-approval-sound-<version>.tgz from Releases and select it in the desktop app under Settings → Plugins → Install.
Method 2: Install from GitHub (requires your machine to be able to access github.com; recommend locking the version with a tag):
# Desktop (recommend including version tag)
dsh plugin --profile desktop add github:rongqingwen/dsh-approval-sound#v0.4.1
# Follow the latest code on main (without tag)
dsh plugin --profile desktop add github:rongqingwen/dsh-approval-sound
# When using the web profile with CLI, replace desktop with web
dsh plugin --profile web add github:rongqingwen/dsh-approval-sound#v0.4.1
Method 3: Local directory or local package:
dsh plugin --profile desktop add link:<plugin directory>
dsh plugin --profile desktop add <path to dsh-approval-sound-version.tgz>
The local directory must use the link: prefix; otherwise it will be treated as an npm package name.
Method 4 (Manual): Copy the plugin directory into the profile’s node_modules/dsh-approval-sound/, add dsh-approval-sound to dsh.profile.bundles in ~/.dsh/profiles/<profile>/package.json, then restart.
Typical Usage and Configuration¶
- After restarting DSH Web / Desktop, open Settings → Approval Sound.
- Toggle “Play notification sound when approval dialog appears” as needed, select a sound, and adjust volume and repeat parameters; changes take effect and are saved immediately.
- Click Preview to confirm the volume, and unlock browser autoplay restrictions (the page cannot play sound before the first interaction; if blocked, just preview once).
| Setting | Default | Description |
|---|---|---|
| Play notification sound when approval dialog appears | On | Master switch |
| Sound | Urgent double beep | Includes custom audio, mute, etc. |
| Volume | 100% | 0–150% |
| Repeat count | 1 | Up to 6 |
| Repeat interval | 900ms | Between two repeats |
| Minimum interval | 600ms | Forced silence between two reminders |
| Only remind when the window is not in the foreground | Off | No sound in the foreground |
When troubleshooting, refer to the README: for no sound at all, first check “only remind in background” and the volume; for preview works but dialog doesn’t, confirm whether you’ve clicked preview or need to refresh / restart; for setting changes don’t take effect, try refreshing the page.
Applicable Scenarios and Notes¶
Suitable for developers who often run tasks in DSH Web / Desktop and need to leave the screen. The plugin is loaded with the current dsh process and profile; before installation, you are advised to browse the source code and MIT license to confirm it meets your security and compliance requirements.
Running modes without a Web GUI cannot use this plugin. In network-restricted environments, you need to solve access issues yourself when installing from GitHub.
Conclusion¶
dsh-approval-sound turns “someone is waiting for you to click the dialog box” into an audible signal, and can optionally distinguish reminders by tool type or custom files. The example version currently published in the README is v0.4.1.