Tone or voice alerts for DSH approvals, questions, completions, errors and stalls; reads out what is waiting and repeats until handled; no network requests.
Install
# from npm (prebuilt)
dsh plugin --profile web add @machine-126/dsh-alert-sound
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Machine-126/dsh-alert-sound
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Why this exists
A DSH task often runs for minutes. The hard part is not the wait — it is that the run has already stopped and is waiting for you while you are somewhere else: an approval sits in a dialog, a question hangs unanswered, and the whole chain just stands still.
This plugin turns "it's your turn" into sound: a different tone per kind, or a spoken sentence naming what is actually blocking. Go do something else; come back when you hear it.
Highlights
- Five kinds, distinct tones — needs approval / needs answer / output complete / error, plus an experimental Stalled.
- Speaks the detail — tool name and reason for an approval, the question text for a question; "output complete" can read out the final reply (with Read-aloud on).
- Works in the background — switching tabs or minimising the window keeps the alerts coming.
- Never silently fails — if browser speech synthesis drops the utterance, that kind's tone plays instead.
- Repeats until handled — approval and question re-alert at your chosen interval.
- No network at all — not a single request; everything happens in the browser.
Install
npm (prebuilt, no build-script approval needed):
dsh plugin --profile web add @machine-126/dsh-alert-sound
Replace
webwith your own profile name — the desktop app usually usesdesktop. Rundsh plugin --profile <name> listfirst if you are unsure.
From GitHub (plain JS, no build step):
dsh plugin --profile web add github:Machine-126/dsh-alert-sound
From a local checkout (the path must be absolute; it installs as a link:):
dsh plugin --profile web add D:\path\to\dsh-alert-sound
After installing, restart dsh (the desktop app reloads a newly installed plugin only on restart), then open Settings → 提醒音 / Alerts to configure it.
To hack on it: all the logic lives in lib/client.js, there is no build step, and a page refresh picks up your changes (prepublishOnly runs node --check before publishing).
The five kinds
| Kind | When it fires | Default sound | Dot |
|---|---|---|---|
| Needs approval | the agent wants to run something sensitive and waits for your "allow" | Alert (square triple) | amber |
| Needs answer | the agent asked you a question and waits for a reply | Tap (quick double) | purple |
| Output complete | a turn finished | Ding-dong (rising pair) | green |
| Error | the turn failed | Low (falling sawtooth) | red |
| Stalled (experimental) | with "Stall detection" on, no progress for a while | Low | orange |
What it watches:
runningand the pending interaction's kind fromuiSession.sessionStatus, plus the session snapshot'slastAgentError.
The fifth kind is off by default: it only fires once "Stall detection" is enabled. It judges by the session's update timestamp, so it is a heuristic.
Available sounds: Ding-dong / Low / Tap / Alert / Voice / Custom / Mute.
About the "Voice" option: approval and question speak the pending detail (tool name, reason, question text); "Output complete" needs Read-aloud as well, otherwise only the kind name is spoken. The body is capped at 400 characters.
Settings reference
| Option | What it does | Default |
|---|---|---|
| Master volume | 0–200% | 70% |
| Scope | all sessions / current session only | all sessions |
| Repeat | off / 10 / 20 / 30 s, until handled | 20 s |
| System notification | browser notification (visible in the background) | off |
| Read-aloud | whether "output complete" speaks the final reply (sound must be Voice) | off |
| Stall detection | experimental; enables the fifth kind | off |
| Floating banner | top-of-screen banner, gone after 3.6 s | off |
| Voice rate | slow / normal / fast | normal |
| Do-not-disturb | start and end hour; nothing plays in between | off |
| Language | auto / 中文 / English | auto |
Restore defaults sits at the bottom (with a confirmation).
Compatibility
| DSH version | Behaviour |
|---|---|
0.2.1-rc.2 |
✅ everything (the version this build was verified on) |
0.2.0-rc.2 |
✅ everything |
| older | ⚠️ completion and error only; approval and question stay silent |
Web Audio is required for the tones; voice uses the browser's speech synthesis and degrades to a tone when unavailable.
FAQ
Installed it, but nothing plays at all. Browsers only start audio after a user gesture — click anywhere on the page once. Then check that the kind's sound is not Mute, the master volume is not 0, and Do-not-disturb is off.
I only hear the tail of the tone. Since 0.3.13 every playback is preceded by a 200 ms warm-up that wakes the audio device. If it still happens, please open an issue with your browser version.
Approval and question never fire, but completion does.
That means an older DSH: approval/question detection relies on uiSession.sessionStatus, which needs DSH ≥ 0.2.0-rc.2.
Voice says "output complete" but no reply body. You need both the Voice sound and the Read-aloud switch on — and only the completion kind reads a body. A background session (one no longer shown in the main area) has no body to read: the plugin only sees the text once that session's chat view is open, so it falls back to the fixed phrase.
The floating banner never shows. It is off by default; turn on "Floating banner" in settings.
The whole UI went blank after installing. In a rare version mismatch the client can fail to boot. Roll back:
dsh plugin --profile <your-profile> remove @machine-126/dsh-alert-sound
Privacy
Everything runs in the browser: no network requests, no analytics or telemetry. It reads four things, in memory only — the session's running state and pending interaction (including tool name / reason / question text), the session list's updatedAt and retainedBy (to decide "current session"), the session snapshot's lastAgentError (to detect a failure), and only while Read-aloud is on the text of the last assistant reply.
None of it is stored or sent anywhere; the only persisted data is your own settings (localStorage key dsh-alert-sound.v1, plus uploaded custom sounds under dsh-alert-sound.custom.v1).
Roadmap
- Done and planned: ROADMAP.md
- Release history: CHANGELOG_EN.md
Acknowledgements
The ideas and the shape of this plugin follow these projects; the code is an independent implementation and reuses none of their source:
- Detection approach (
runningand the pending interaction → approval / question / completion): dsh-session-notification (BSD-3-Clause) - The "task finished" chime idea: dsh-chime (Apache-2.0)
- Packaging and web-client plugin form: the official
docs/user/develop/basic/publish.md, plus dsh-plugin-tts, dsh-status-rotator and dsh-web-ui-notify
The tones are original (waveforms and frequencies are this plugin's own). Please keep this acknowledgement.
About this project
Requirements and acceptance testing by @Machine-126; the code was developed end-to-end by DeepSeek Harness (an AI coding agent).
A single-maintainer side project, so replies may be slow; bugs and feature requests are welcome in the issue tracker.
License
MIT
Links
More in this category
xmanrui/dsh-im★ 3751
Connect IM bots to DeepSeek Harness via QR codes or bot credentials (9 channels: Feishu, WeChat, DingTalk, WeCom, QQ, Slack, Telegram, Discord, and WhatsApp).
shaobeichen/dsh-pocket★ 3109
Remote phone access to the DSH Web UI: scan a QR code for LAN or public (cloudflared tunnel) access with real-time sync, a mobile-adaptive layout, and a settings tab.
c1overzz/dsh-bili-scroll★ 1461
Let your DSH agent browse Bilibili on its own, read subtitles, write a daily digest, and @ you when it finds something worth your attention.
OpenPetsHQ/openpets#dsh★ 1403
Bridges DeepSeek Harness lifecycle status, errors, and approval requests to a locally running OpenPets desktop companion.
inclusionAI/Avernet#deepseek-harness-channel-bcn★ 609
Connects DeepSeek Harness to Avernet's Bot Collaboration Network over WebSocket V2, with automatic onboarding, isolated agent sessions, tool-call events, and multi-bot routing tools.
zaofan-make/dsh-qqbot★ 273
QQ official bot channel (enhanced fork of tencent-connect/dsh-qqbot): full agent chat in groups and DMs, rich media, an auto-tagged sticker library with AI image replies, join approval, mute and broadcast, scheduled wakeups, remote approvals over QQ, interactive cards, multi-account instances, extensions, member profiles, and token-saving value-scored wakeups.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.