Introduction¶
When running long tasks in DeepSeek Harness (DSH), the browser tab is often in the background. If there is only a visual change without sound when a task ends, approval is required, or a question is asked, it is easy to miss them. While there are already DSH sound plugins in the community based on synthesized beeps, if you prefer the authentic MP3 assets from opencode or wish to keep the mature implementation for event detection and settings panels while simply swapping the sound pack, you can check out dsh-opencode-sounds released by maintainer notf0und. Designed for the DSH Web UI, it plays opencode’s notification sound pack at nodes such as task completion or when manual intervention is required.
What is this¶
dsh-opencode-sounds is a Web-side bundle plugin for DSH that plays opencode’s notification sounds when tasks complete or require human attention. This project is forked from @ai-galaxy/dsh-sound (MIT). It retains the upstream event detection engine, settings panel, and subagent channel, while replacing the built-in synthesized chime with opencode’s real audio resources and localizing the plugin interface to English only. The sound pack, default mappings, and copy belong to this fork. The current package version is 0.2.2, licensed under MIT, and the repository is at github.com/notf0und/dsh-opencode-sounds. It is categorized as “Fun Customization” in the community directory and belongs to the DSH community plugin ecosystem; it has no official affiliation with DeepSeek or High-Flyer.
Sound Pack and Default Mappings¶
The built-in sound effects are consistent with opencode and organized in opencode’s order. MP3s are located in assets/audio/ and inlined into lib/client.js as base64 via tools/build-sounds.mjs (the DSH client loads plugins via a single-file CJS factory, so relative module resolution is unavailable).
| Series | Count | ID Range |
|---|---|---|
| Alert | 10 | alert-01 … alert-10 |
| Bip-bop | 10 | bip-bop-01 … bip-bop-10 |
| Staplebops | 7 | staplebops-01 … staplebops-07 |
| Nope | 12 | nope-01 … nope-12 |
| Yup | 6 | yup-01 … yup-06 |
Additionally, None (silent) and Local file (custom audio stored in browser IndexedDB) are available.
The default mappings align with opencode’s built-in “OpenCode Default” sound pack (sources are documented in assets/audio/PROVENANCE.md regarding the opencode tag):
| DSH Event | Default Sound Effect |
|---|---|
| Completion | bip-bop-01 |
| Approval Request | staplebops-06 |
| User Question | bip-bop-03 |
| Plan Review | bip-bop-05 |
| Goal Blocked | nope-03 |
| Failure | nope-07 |
The subagent channel has a separate set of volume and sound settings: completion defaults to yup-01, while other attention-type events default to none; you can use Ignore subagent events to mute the entire channel with one click.
Core Features¶
Below are the capabilities explicitly documented in the README and directly observable in the Web UI.
- Six independent main channel events, each with selectable sound effects and 0–100% volume: Completion, Approval, User Question, Plan Review, Goal Blocked, and Failure.
- Respects “quiet current session” for completion sounds; events requiring attention will still ring.
- Intentional muting: User aborts, killed tasks, and turn endings due to
max-tokens/blocked/interrupteddo not trigger sound effects. - Adapts to DSH builds: When
events.mux+events.hostare present, it uses the event stream (no sound on mux reconnection replays, and the samerpcIdrings at most once); when this layer is absent (e.g., 0.1.5-rc.3 and later), it switches to reading the client fact source. Pending approvals, blocked goals, and failed tasks existing at page load are silently seeded to avoid false triggers immediately upon opening. - Multi-tab: The same event rings only once (BroadcastChannel arbitration); single-tab instances play directly without a handshake.
- Config JSON Export/Import (Local audio in IndexedDB is inlined as a data URL during export).
Detection logic (DSH 0.1.5-rc.3+) overview: Completion comes from the completed or running edge fallback of turn/end; Failure comes from turn/end error, SessionSnapshot.lastAgentError, or background job failed; Approval/Question/Plan Review come from uiSession.pendingInteractions approval / question / plan-review; Goal Blocked comes from goal projection entering blocked. Plan Review only exists under plan mode; questions triggered by exit_plan_mode are classified by the client based on intent and detail.
Installation and Activation¶
The plugin is loaded via the bundle mechanism of the current DSH process and Web profile. Before installation, it is recommended to read the repository source code and the MIT license to ensure compliance with your environment policies. You need a DSH version that supports bundle plugins (dsh.profile.bundles + dsh.bundle.patch), and pnpm available in your PATH (you can run corepack enable or npm i -g pnpm first). The package.json requires Node >= 20.
The official installation methods are as follows:
# From local checkout (example path per README)
dsh plugin --profile web add file:/home/gonzalo/code/dsh-opencode-sounds
# From GitHub
dsh plugin --profile web add github:notf0und/dsh-opencode-sounds
After installation, restart dsh web (or refresh the page) and open Settings → Sounds.
If migrating from the upstream @ai-galaxy/dsh-sound, manual steps include: adding the dependency and bundle entry to $DSH_HOME/profiles/web/package.json, running pnpm --dir "$DSH_HOME/profiles/web" install, executing dsh plugin --profile web remove @ai-galaxy/dsh-sound, and then restarting the Web. If the profile uses nodeLinker: hoisted, file: dependencies are copied to node_modules during install; after modifying the local checkout, re-running install (or changing symlinks) is required. A hard refresh in the browser suffices; restarting the Web service is not necessary.
Typical Usage¶
- Install and open the DSH Web UI, then navigate to Settings → Sounds.
- Use the master switch Enabled to turn the entire plugin on or off; switch between Main agent / Subagents tabs for the main agent’s six event types and the subagent panel.
- For each row: select an opencode sound pack ID, None, or Local file via the dropdown; click Play to preview; drag the volume slider. When Local file is selected, use the file picker; the file is stored in IndexedDB (DB name
dsh-opencode-sounds-audio) and is not subject to localStorage quota limits. - Enable Ignore subagent events or adjust behaviors like quiet current session as needed (see settings items and localStorage configuration fields).
- When backing up or migrating settings, use the configuration export/import JSON provided by the panel.
Client configuration is saved in localStorage under the key dsh-opencode-sounds:config; fields include enabled, quietCurrent, ignoreSubagent, the sound/volume pairs for the six main events and six sub-events (e.g., completionSound, failureVolume, subagentCompletionSound, etc.), and localFiles recording the last selected local file for each event.
Use Cases and Notes¶
Suitable for: Developers running agents in the DSH Web UI for long periods who wish to distinguish between “Completion / Approval Required / Question Asked / Plan Review / Blocked / Failure” using the same notification sounds as opencode, and who need to adjust volume separately for the subagent channel.
Notes:
- The plugin is injected only into the Web UI client (
dsh.client.platform: web); it is not a CLI-side sound solution. - When functionally homologous with
@ai-galaxy/dsh-sound, the two should not coexist; migration documentation requires removing the old package. - If third-party settings namespaces are not exposed to the browser in some DSH builds (e.g.,
WEB_SETTINGS_NAMESPACESin rc.6), configuration still falls back to localStorage; the host side has registered thedsh-opencode-soundsnamespace for future migration. - Development self-check: After
npm install, you can runnpm test,npm run check,npm run build(see the repository README).
Conclusion¶
dsh-opencode-sounds integrates opencode’s notification sound pack into the DSH Web UI’s six main event types and the subagent channel, replacing the audio source and default mappings while retaining the upstream detection and settings structure. Directory page: skillhub.cn/plugins/notf0und/dsh-opencode-sounds; Source code and installation instructions: github.com/notf0und/dsh-opencode-sounds.