dsh-client-ui-turn-chime: DSH Web Client Dual-Tone Alert for AI Completion and User Intervention

Preface

When using DeepSeek Harness (DSH) for multi-session workflows or coordinator-driven sub-agent dispatch, a common scenario is that the main model halts in a “waiting for report” state while background sessions are still running, or a session pops up a card requiring an answer, approval, or plan review. Relying solely on visually monitoring the current tab makes it easy to miss background completions or questions. The dsh-client-ui-turn-chime introduced below is a client-side DSH Web plugin published by maintainer liuyun847. It synthesizes a two-tone “ding-dong” sound via Web Audio in the browser to alert you at two specific timings, chiming only once for the same turn of work. The plugin does not render a visible UI; once installed and enabled, no additional configuration is required.

What is this

Core Features

Two Types of Triggers

  1. Reply truly finishes
    A chime plays when a session’s running status changes from true to false, and the session has no descendant sub-agents still running. In coordinator presets, the main model often dispatches background sub-agents first and then stops generating to wait for reports; this “pause for waiting” does not trigger a false chime. The alert is suspended and plays a catch-up chime once when all sub-agents under that session have finished and the session becomes idle.

  2. Your intervention is required
    A chime plays immediately when a session encounters pendingInteraction (pending question, pending approval, pending plan-review, etc.), without waiting for the current turn to finish. DSH’s default ask_user_question is blocking: while the tool body awaits your answer, the turn is not finished and running remains true. Edge-listening on running alone will miss the alert, making this path essential. If the chime has already sounded due to “pending intervention” in the same turn, it will not sound again during the wrap-up.

Global Listening & Sub-agent Gating

Since v0.5.1, the plugin subscribes to the client services sessions.list (summary: origin / parentId / running) and uiSession.sessionStatus (per-session running / pendingInteraction) once services are ready. It runs checks for every user session; even if you are viewing Session A, a question or completion in Session B will alert you. If multiple sessions are scheduled to chime simultaneously within the same evaluation cycle, only one sound is played.

  • Pending intervention for sub-agent sessions will chime; completion does not chime separately but triggers a catch-up chime from the parent session when “all sub-agents have finished,” avoiding multiple consecutive chimes from the coordinator in one turn.
  • If there are still running descendant sub-agents when a reply completes (tracing up via parentId, counting only running), the chime is suspended; it plays a catch-up chime when sub-agents drop to zero and the session is idle. Pending intervention is not subject to this gating.

Audio & Boundaries

  • The two tones (C6→G6) are synthesized in real-time via Web Audio, without relying on audio files.
  • Browsers may mute the AudioContext before a click or keystroke. Since v0.5.2, it unlocks on the first user gesture; events scheduled to chime before unlock will play a catch-up chime once after successful unlock. If the page has been activated by the user, or after an HMR reload where navigator.userActivation.hasBeenActive is true, it can play sound immediately as described in the README.
  • If sessions.list / uiSession.sessionStatus cannot be obtained, it degrades to a fallback path watching only the “current session” seat. This shares the judgment state with the global path to avoid duplicate chimes.

For a more detailed judgment state machine, handling of sessions with missing rows (judging only pending intervention), and known boundaries (such as the first pending intervention after refresh chiming, or the very narrow timing B1), see the repository README sections “Features” and “How it Works”.

Installation & Activation

This package is a bundle: the registration line id: turn-chime is inside the package’s cordis.patch.yml. The host loads it via dsh.profile.bundles in the profile’s package.json. It is not necessary to paste - insert: lines into the profile’s cordis.patch.yml.

Execute the following in the profile directory (e.g., ~/.dsh/profiles/<profile_name>/) (command from the README):

dshpm add file:./plugins/dsh-client-ui-turn-chime --profile <profile_name>

dshpm is a CLI replacing dsh plugin add; while installing the package, it writes the package name to dsh.profile.bundles. Restart dsh after installation and refresh the page for it to take effect.

When installing from an npm registry or GitHub, it is sufficient for the package name to be in dsh.profile.bundles, such as github:liuyun847/dsh-client-ui-turn-chime or version ^0.5.5 mentioned in the README.

Start/Stop: The master switch for this card in the “Installed” section of the plugin page (writes to dsh.profile.bundles); there is also a line-level switch within the card (writes a disabled override to the profile’s cordis.patch.yml).

Uninstall:

dshpm remove dsh-client-ui-turn-chime --profile <profile_name>

If the profile’s pnpm supply chain policy causes pnpm remove to report errors, the README suggests executing in the profile directory:

pnpm remove dsh-client-ui-turn-chime --config.minimum-release-age=0

Typical Usage

The “Usage” section of the README explains: Once installed and enabled, chimes play automatically with no other configuration. You simply use the DSH Web client as usual; there is no need to change additional configuration items in the profile (no editable configuration fields are listed in the materials).

Use Cases & Notes

Who it is for: DSH Web users who keep multiple sessions open for long periods, use coordinators/sub-agents, or need to step away from the screen occasionally, and wish to distinguish auditorily between “this turn is truly done” and “the system is waiting for you to answer/approve/review the plan.”

Verify before installing: The plugin runs under the permissions of the current dsh process and browser page, subscribing to session lists and statuses and playing audio. Before installation, you should read the repository source code and the MIT license to ensure it meets your environment and security requirements. SkillHub and similar sites are community directory sites and have no official affiliation with DeepSeek or HF (High-Flyer); the DSH ecosystem emphasizes “everything is a plugin,” and the facts in this introduction come from the aforementioned README and package.json.

Conclusion

dsh-client-ui-turn-chime separates “truly wrapping up” and “awaiting your intervention” into two observable signals, using gating and a “chime only once per turn” logic to control false positives and consecutive chimes in multi-session and sub-agent scenarios. If you need this type of reminder, you can install it into your profile using dshpm as per the README, then restart and refresh to use it.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye