deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
English | 中文
A DeepSeek Harness (DSH) plugin for the Web UI: play a customizable sound when a task finishes, and an attention sound whenever something needs a human.
📬 Submitted to Awesome DSH Plugin — PR #752 (pending maintainer approval)
Source file: docs/demo.mp4

Each event type has its own sound and its own volume (0–100%):
| Event | Detection | Default sound |
|---|---|---|
| Turn end / background task completed | turn/end with reason.kind === 'completed'; job → completed |
Chime |
| Approval request | approval/requested frame |
Ding |
| User question | question/requested frame (not plan-review shaped) |
Ding |
| Plan review | question/requested frame classified as plan-review |
Ding |
| Goal blocked | goal projection enters blocked |
Ding |
| Background / loop failure | job → failed; turn/end error; host/agent-error |
Bell |
max-tokens / blocked / interrupted turns stay silent.events.mux plus events.host. Mux-open replay of still-pending
approval/question frames (refresh recovery) does not ring; each rpcId rings at most once.Each event picks one sound from a Radio.Button group in the settings panel:
dsh-sound-audio), immune to the
localStorage quota.Master switch, six event rows (volume slider on the title row; Radio.Group of Radio.Button options below — click to select and play; a local-file row with a choose/replace button appears when 本地文件 is selected), and config export/import.
Requires a DSH version with bundle-plugin support (dsh.profile.bundles + dsh.bundle.patch)
and pnpm on PATH (corepack enable or npm i -g pnpm).
# One command: pnpm installs the package and adds it to the profile's bundle layer
dsh plugin --profile web add dsh-sound
# Restart the server (or refresh the page), then open Settings → 声音通知
Other profiles work the same way: dsh plugin --profile <name> add dsh-sound.
@deepseek-ai/schemastery,
@deepseek-ai/cosmokit, @standard-schema/spec) into
$DSH_HOME/profiles/web/node_modules/."dsh-sound" to dsh.profile.bundles in
$DSH_HOME/profiles/web/package.json.dsh web.dsh-sound:config), sanitizing every read and filling defaults. Uploaded
local music files are stored in IndexedDB (dsh-sound-audio) instead —
no localStorage quota limits.enabled, quietCurrent, and six sound + six volume fields —
completionSound / approvalSound / questionSound / planReviewSound /
goalBlockedSound / failureSound (builtin key, none, local, data: URL,
or audio:<id>) and completionVolume … failureVolume (0–1).
localFiles keeps the last chosen local file per event so switching to a
built-in sound and back does not drop it.defaultSound
becomes completionSound, voice/TTS values degrade to the per-event default,
and workspaces / debounceMs / global volume / voice settings are dropped.dsh-sound settings namespace: on rc.6 the
settings API allowlist (WEB_SETTINGS_NAMESPACES in dsh-host-apiproxy) does not expose
third-party namespaces to browsers, so the client does not depend on settingsScope today;
the registration keeps the migration path open for future releases.npm test # 100+ assertions across host and client halves (Node only, no browser needed)
npm run check # syntax check
Layout:
Profile development note: the profile's pnpm uses
nodeLinker: hoisted, which COPIESfile:dependencies intonode_modulesat install time — edits to this checkout do not reach the running app until you either re-runpnpm --dir ~/.dsh/profiles/web update dsh-soundor replace the copied directory with a symlink to this checkout. The web server reads bundle content per request (only the boot-page rev hash is cached at startup), so after refreshing the copy a browser hard-refresh (Cmd+Shift+R) is enough — no server restart needed.
lib/index.js — host half: registers the settings namespace (schema + defaults)lib/client.js — browser bundle: event detection, sound engine
(Web Audio / IndexedDB audio), settings panellib/types/index.d.ts — host-side type declarationscordis.patch.yml — bundle patch layer (inserts the dsh-sound row)tools/ — tests and verification scripts (not shipped in the npm package)npm login # npm account (2FA recommended)
npm publish --access public
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。