dsh-ding: DSH End-of-Round Notification Sound

Foreword

When running long conversations or background tasks in DeepSeek Harness (DSH), it is often a guessing game once you step away from the screen: did this round actually finish? The common approach is to repeatedly switch back to the window to check the status, which interrupts the flow and makes it easy to miss the moment when it becomes “idle”.

dsh-ding is a community plugin, tinyhan9/dsh-ding, offering a small feature in the “Cosplay” category: it plays a synthesized alert sound once whenever any session changes from “Running” to “Idle”. Seven tones, volume, and a master switch are all adjustable in “General Settings”; the sound is synthesized on the fly by the program, without audio resource files, no internet connection required, and zero runtime dependencies.

What is it

  • Name: dsh-ding (same as npm package name)
  • Maintainer: tinyhan9
  • Version (in docs): 0.6.1
  • License: MIT
  • Positioning: Client-side Web plugin that monitors session status and sounds once at the end of a round; it does not read session content, does not write Host settings, and does not produce content visible to the model.

Ecologically, DSH follows the philosophy of “Everything is a plugin”; the directory page is on community sites like SkillHub, with no official affiliation with DeepSeek / Hypothesis. Before installation, it is recommended to view the source code and license yourself—the plugin runs within the browser context alongside the current DSH desktop/Web process.

Core Features

Round End Alert

  • Plays once when any session changes from “Running” to “Idle”.
  • Monitors every session in ctx.sessions.list; the sound will also trigger if the background round ends while you are browsing in another session.
  • Sub-agent sessions (origin === "subagent") do not trigger the sound to avoid short, frequent noise.
  • Re-establishes a baseline when entering the page to avoid a false alarm upon opening; the same idle state repeated only triggers once; deduplicates within 700ms of the same session.

Tones and Settings

Seven tones, default droplet (water droplet falling):

id Description
droplet Water droplet falling · Ding-dong (default)
waterdrop Water drop · Crisp
waterdrop2 Water bubble · Round
plop Stone falling in water · Gudong
ding Ding · Double bell
chime Bell · Triplet
blip Blip · Short

Volume 0–100%, default 60%. After the master switch is off, audio is untouched. Settings path: Settings → General Settings → End of Round Sound (Switch / Tone / Volume / Preview).

Preferences are stored in browser localStorage key dsh-ding:settings (version field v: 2), example:

{ "v": 2, "enabled": true, "sound": "droplet", "volume": 0.6 }

The author intentionally avoids integrating with the Host settings schema to prevent plugin anomalies caused by schema drift when DSH upgrades or profiles are switched; the trade-off is that preferences follow the browser, not the profile.

Audio Implementation Highlights

Each tone is synthesized using a “note + noise segment” recipe; when WebAudio is available, it uses curve playback, otherwise it renders the same recipe into a WAV data-URI and falls back to <audio>. Browsers require a user gesture to unlock audio, so after installation you must click the window once (or press unlock() in the documented console); Chrome may not return from AudioContext.resume() for a long time in scenarios like sleep recovery, ring() waits a maximum of 120ms before falling back, and denied playbacks are recorded in diagnostic info.

Installation and Enablement

Installation

After cloning or extracting the repository, install using the absolute path of the current directory (do not splice a github: install string not appearing in the docs based on the package name):

dsh plugin --profile desktop install link:<本目录绝对路径>

Or in the plugin management interface, fill the install spec with:

link:<本目录绝对路径>

After installation, plugin_manager will write to the profile’s dependencies, dsh.profile.bundles, and add a Loader line to cordis.patch.yml. Desktop requires a restart; Web just needs a page refresh.

Verification

After restart, send a sentence to test a round. The console can confirm the version and manual test the sound:

__DSH_DING__.version    // "0.6.1"
__DSH_DING__.ring()     // Sounds immediately, verifying the audio chain

When you can’t hear it, the README provides read-only handles like __DSH_DING__.watching, rings, trace, problems and a reference table to troubleshoot in the order: “Not loaded → No listening object → Not judged as ended → Count exists, no sound”.

Typical Usage

  1. Complete installation and restart desktop (or refresh Web).
  2. Click or press a key in the window to unlock the autoplay policy.
  3. Open Settings (Ctrl+Alt+, or account menu) → General Settings → End of Round Sound: Enable, select tone, adjust volume, and click Preview.
  4. Return to any session and send a message; wait for that round to change from running to idle, and you should hear a sound.
  5. If it’s too noisy, change the tone or turn off the master switch; you can keep it enabled for long background tasks, as the end sound will still play when switching to other sessions.

Applicable Scenarios and Notes

Suitable for:
Developers needing to “sense a round ending even when away from the keyboard” when using DSH locally or remotely; users who don’t want to rely on system notifications or external ringtone files.

Notes:
- The plugin only takes effect client-side, relying on host interfaces exposed by DSH such as ctx.sessions / ctx.uiSession; the README specifies development on DSH 0.2.2-rc.1 under Windows, with partial degradation and logging to problems when host API shapes change.
- No internet connection, no build steps, Node-side lib/index.js is an empty apply, logic is entirely in lib/client.js.
- Please read the repository source code and MIT license before installing and using; community directory stars and other metadata are subject to the site’s display (GitHub stars in docs are 0).

Reference Links

  • Community Directory: https://www.skillhub.cn/plugins/tinyhan9/dsh-ding
  • Source code and complete diagnostics/self-test instructions: https://github.com/tinyhan9/dsh-ding
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye