dsh-notify
Manifest validDSH plugin: desktop toast + remote browser notifications when an agent finishes or errors
dsh-notify
简体中文 | English
A DeepSeek Harness (DSH) plugin that raises Windows desktop toasts when a root-session agent finishes, errors, or asks the user a question — plus browser notifications on remote devices (tablets / phones viewing the DSH Web UI over LAN or VPN).
Features
- Toast on the currently viewed root-session agent running → idle ("task done")
- Toast on agent errors (deduped per turn:step, up to 64 entries remembered)
- Host-side toast when
ask_user_questionactually starts waiting for the user (deduped per tool call; no toast if startup fails immediately) - Browser notification whenever any foreground or background root session gains a
questionorplan-reviewinteraction that needs the user /notifycommand:/notifystatus,/notify on|off,/notify test- Settings tab "远程通知" (Remote Notifications) toggle, sharing one global switch with the
/notifycommand (persisted in~/.dsh/notify-state.json) - Only root sessions notify — subagents stay silent
Install
This is a pure-local plugin (no @deepseek-ai imports), so a link: dependency is safe:
# assuming the plugin lives at ~/.dsh/plugins/dsh-notify
dsh plugin --profile web add ~/.dsh/plugins/dsh-notify
Or insert a row in your Cordis composition patch:
- insert:
- id: notify
name: dsh-notify
inject: [webServer] # required: wait for the webServer service before registering routes
Restart dsh web after changing the composition or updating the plugin, then reload the browser page. Keep any existing --trusted-host arguments when restarting.
Usage
- Desktop: native WinRT toast with the default notification sound when a task finishes, errors, or waits for the user's answer
- Remote devices (browser): the page uses a Service Worker (
/dsh-notify/sw.js). Completion and error state follow the currently viewed session;questionandplan-reviewwaits are watched across every foreground/background root session. - Permission: the browser asks for notification permission on first use. If it was previously denied, re-enable it in the site settings.
- Toggle: Settings → 远程通知, or
/notify off(remote pages re-sync the switch when the tab becomes visible)
Compatibility
- Desktop toasts require Windows + WinRT
- Version 1.2.1 fixes the
Failed to load plugins / dsh-notifystartup error on DSH0.1.7-rc.1; Web UI recovery was confirmed after restart. - The all-session pending-interaction watcher reads
uiSession.sessionStatuson DSH 0.1.7 and falls back to the olderuiSession.pendingInteractionsAPI. - Regression tests cover both API shapes and prefer the new API when both are present. Older live-runtime compatibility and Android system notifications were not revalidated for this patch.
Testing
All tests are offline and use mocked services; no running DSH Web instance is required.
node test/notify-client-test.mjs legacy
node test/notify-client-test.mjs unified
node test/notify-client-test.mjs both
node test/notify-events-test.mjs
node test/notify-state-test.mjs
notify-client-test.mjs: 35 checks per API mode covering all-sessionquestion/plan-reviewbehavior, deduplication, current-session completion/errors, status-only updates, and cleanupnotify-events-test.mjs: 9 checks covering Hostask_user_questionwaiting detection, call deduplication, unrelated tools, and root-only filteringnotify-state-test.mjs: 17 checks covering GET/POST/dsh-notify/state, persistence, payload validation, same-origin handling, 405/413 responses, andsw.js
Support
If this plugin saves you time or a headache, a coffee is appreciated:
- PayPal: paypal.me/dawn388887
License
MIT © 2026 Dawn388887
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.1 | — | — |
| 0.1.2 | — | — |
| 0.1.3 | — | — |
| 0.1.4 | — | — |
| 0.1.5 | — | — |
| 0.1.6 | — | — |
| 0.1.7 | — | — |
Comments
Loading…
Similar plugins
by hxy113
DSH plugin: Windows toast notification when an agent turn completes; click the toast to jump back into that session in the Web UI.
★ 0
MIT
JavaScript
Aug 15, 2026
dsh plugin --profile web add dsh-turn-notifyby drydeuterium
Desktop (Windows toast) notifications for DeepSeek Harness — questions, approvals, turn end and errors. Host-side plugin, zero dependencies.
★ 0
MIT
JavaScript
Oct 20, 2026
dsh plugin --profile web add dsh-desktop-notifyby Wepoi9
Community DSH plugin for browser and OS notifications on session completion, errors, and pending interactions.
★ 0
MIT
JavaScript
Oct 17, 2026
dsh plugin --profile web add dsh-web-notifyby Ruiming-cn
DSH (DeepSeek Harness) plugin — Windows toast + chime the moment the agent needs you: turn done, blocked, error, approval, question, plan review.
★ 0
MIT
JavaScript
Aug 25, 2026
dsh plugin --profile web add dsh-turn-notifyby rizkirmdhnnn
DSH plugin: model-facing notify tool for DeepSeek Harness — send notifications to ntfy or generic webhooks when an agent task finishes.
★ 0
MIT
TypeScript
Aug 14, 2026
dsh plugin --profile web add dsh-tool-notifyby liujianqiao701
DSH web GUI plugin: a bottom-right reminder card when the agent is blocked waiting for your answer, plus a desktop notification and a flashing tab title when you are on another tab.
★ 0
MIT
JavaScript
Sep 24, 2026
dsh plugin --profile web add dsh-ask-notify