Preface¶
When running long tasks with DeepSeek Harness (DSH), users are often away from their computers. The upstream community notification plugin dsh-task-notify covers the basic need of “pushing to mobile when tasks finish,” but on Node 22/24, the HTTP channel silently fails, and human-interaction bottlenecks like approvals and questions do not trigger push notifications. This article introduces Whale Whisper (npm package name dsh-notify-whale), a hardened fork released by maintainer Lon-dawn and categorized as a web-connected tool, which fixes known, reliably-occurring issues in real DSH environments and adds waiting-state notifications plus a settings UI.
What This Is¶
Whale Whisper is a Cordis notification plugin for DSH: it pushes to local machines or mobile devices when a session ends; it also pushes when blocked on approvals or waiting for your answers. Pure ESM (.mjs), no build step.
- Upstream:
DeepseekHarnessPlugins/Notification(package namedsh-task-notify, MIT). This fork retains the original author’s copyright notice and is released under MIT. - Maintainer: Lon-dawn; repository github.com/Lon-dawn/dsh-notify-whale; community directory skillhub.cn/plugins/Lon-dawn/dsh-notify-whale.
- Current package version: 0.5.0; Node requirement:
^22.19.0 || >=24. - Code changes, tests, and documentation were completed by an AI coding agent running on DSH; humans handle decisions and releases. The README clarifies that the value of choosing this fork lies in being “actually tested in real runs” rather than feature bloat.
Push Channels and Platforms¶
| Endpoint | Method |
|---|---|
| macOS | System Notification Center (osascript, zero dependencies) |
| Windows | Toast (PowerShell + WinRT, with PNG icon) |
| Mobile | Bark (iOS), ntfy (Android/iOS), Server酱, any Webhook |
Compared to Upstream: What Was Fixed and Added¶
5 Reliably-Occurring Bugs (README Root-Cause Table)¶
- ntfy Chinese titles fail with error
Cannot convert argument to a ByteString: The title was previously placed inX-Title, but Node fetch/undici requires headers to be Latin-1. → Changed to use ntfy’s official JSON POST (body containstopic,message,title,icon). - All HTTP channels fail to send:
send()did not passmethod: "POST", turninghttpPostinto a GET with a body, which undici rejects. → Explicitly specify POST. - Body never retrieves the session title: The plugin reads
agent.session.events, but DSHSessionhas noeventsproperty; it should usesnapshotEvents(). → Switched APIs and improved fallbacks (strip thesession-prefix, prefer the project name fromheader.cwd). - Errors or manual stops still show “Task Completed”:
AgentStatusonly hasidle/running; the end reason must be read from thereasonfield of the lastturn/endevent (timing:turn/endoccurs beforeagent/status: idle). - “Completion” notifications for some active sessions are dropped: The plugin incorrectly used
session.header.parentSessionto determine sub-agent status; this criterion was removed, keeping onlyorigin === 'subagent'anddelegationDepth > 0.
Additionally: On Windows, path assertions in paths.test.mjs have been fixed for platform separators. Upstream tests pass 154 / 154 in this fork (README); npm test documentation states 153 unit tests.
New Capabilities (Summary)¶
- Notification when waiting for human intervention: Listens for
session/event(rather than using the waterfall’sapproval/request, to avoid the web bridger claiming it first so the plugin at the end of the bundles never gets it).approval/asked→ “Pending Approval”; toolask_user_question→ “Awaiting Answer”. - Event-level Bark sound: Global
sound+ per-eventsoundsoverride. - DSH 0.1.7+ native settings page: A top-level sidebar menu “Notifications” that writes to the profile’s
cordis.patch.yml; saves apply immediately without restart (since 0.1.7,$DSH_HOME/settings.yamlno longer exists). - Bark push group
group: Defaults to the local hostname (≤8 characters), allowing source differentiation when multiple machines share a self-hosted Bark. - 9 event titles can be overridden on the settings page; leave blank to use built-in text.
For notification mappings (titles / events / Bark sounds, etc.), see the repository README’s “Notification Comparison Table”; the body format is <Session Title or Project Name> · <Reason> · HH:mm.
Installation and Activation¶
Official installation command (web profile):
dsh plugin --profile web add dsh-notify-whale
Restart DSH after installation. Afterward, configuration changes are made in the settings page and take effect immediately without further restarts.
Install from a local directory:
dsh plugin --profile web add /path/to/dsh-notify-whale
When using pnpm with link:, you must run npm install --omit=dev separately in the plugin directory (otherwise js-yaml or @deepseek-ai/schemastery may be missing). If pnpm is blocked by minimumReleaseAge, you can add --config.minimum-release-age=0 at the end of the command.
Configuration Essentials¶
Recommended: Modify via the “Notifications” settings page in the sidebar for DSH 0.1.7+.
You can also directly write to the profile’s cordis.patch.yml (the plugin id remains task-notify, while the name is dsh-notify-whale). Example snippet:
- id: task-notify
name: dsh-notify-whale
config:
enabled: true
notifyOn: [idle, error, blocked]
agents: root
coalesceWindowMs: 2000
desktop:
enabled: off
sound: true
ntfy:
enabled: true
server: https://ntfy.sh
topic: "your-random-topic-name"
bark:
enabled: true
server: https://api.day.app
deviceKey: "your-Bark-Key"
group: ""
sound: "fanfare"
Priority: cordis patch explicit configuration > environment variable DSH_TASK_NOTIFY_* > built-in defaults. On public ntfy, the topic is the password; do not use guessable names.
Typical Usage: Self-Test and Verification¶
Send sample notifications to all enabled channels:
node self-test.mjs
Test only a single channel:
node self-test.mjs --channel ntfy
Interactively modify configuration and test on the spot:
npm run menu
You can also run npm test and npm run test:client in the repository; ntfy incoming packets can be confirmed by polling JSON with the curl command provided in the README on the server side.
Applicable Scenarios and Cautions¶
Suitable for: Developers who run Agents with DSH for long periods and need mobile/desktop alerts for “completed / error / stopped / pending approval / awaiting answer” states.
Important to Note:
- The plugin runs under the permissions of the current DSH process; you should read the source code and the MIT LICENSE before installing, and independently assess the security of credentials such as Webhooks, Bark Keys, and ntfy topics.
- The DSH community directory (e.g., SkillHub) is an independent ecosystem site and has no official affiliation with DeepSeek / High-Flyer; the plugin is not a pre-installed item in the “Official App Store.”
- The settings page requires DSH 0.1.7+; earlier versions can still send notifications normally but require manual patch writing.
- If a self-hosted ntfy has
deny-allenabled, mobile apps must configure access credentials; custom Bark sounds are iOS-only;self-test.mjsruns as a separate process reading configuration from disk, so success does not mean the running host has hot-loaded the same configuration (see README “Known Boundaries”).
Conclusion¶
Built on the upstream dsh-task-notify skeleton, Whale Whisper provides reproducible fixes targeting Node 22/24 and the actual DSH API, and incorporates “waiting for human operation” into the notification pipeline, facilitating session status awareness while away from the computer. For further details on implementation and event contracts, see the repository’s SPEC.md.
- Directory Page: https://www.skillhub.cn/plugins/Lon-dawn/dsh-notify-whale
- GitHub: https://github.com/Lon-dawn/dsh-notify-whale