dsh-plugin-task-notify: Desktop and In-App Notifications on DSH Task Completion

Preface

DeepSeek Harness (DSH) hosts conversations and agent tasks via its Web UI. When tasks complete in the background, there is no system-level alert; if you switch to other windows while waiting for results, it is easy to miss the end of a task round, or miss nodes “waiting for your input/approval” in plan mode. The community plugin dsh-plugin-task-notify (Maintainer: Favio8, Category: Client) addresses this: when a conversation round finishes, errors out, or enters a state waiting for interaction, it pops up a pinned desktop card via the host process and displays a toast within the page. Clicking it jumps precisely to the corresponding session.

What is this

dsh-plugin-task-notify is a Cordis plugin for DSH, compatible with DSH 0.2.x (verified on desktop version 0.2.1-rc.2 as stated in the README). The current package version is 0.10.0, license MIT.

The core problem it solves is: proactively notifying you when task status changes, without relying on whether the browser tab is in the foreground. The desktop side uses the DSH Host (Node resident process) to monitor agent and session events; cards are self-drawn pinned windows, not going through the Windows Notification Pipeline, so they can still be displayed when the system notification master switch is off (a key difference from System Toasts). Non-Windows platforms currently only have in-app toasts.

Directory Page: SkillHub - dsh-plugin-task-notify
Source Code & Docs: GitHub - Favio8/dsh-plugin-task-notify

Core Features

The following documents the capabilities based on channels and detection logic.

Desktop Notifications (Windows)

  • Host-triggered: PowerShell + WinForms self-drawn borderless pinned cards; enabled by default.
  • From 0.10.0, adopts a resident rendering process: The plugin pre-creates and warms up the card process upon startup. Subsequent notifications write to command.json, and the rendering process consumes them via ~20ms polling; cold-start scripts are retained as a fallback. The README provides measurements under the same script: median latency is ~70ms for resident mode vs ~1.7s for cold start.
  • From 0.9.x, cards are DPI-aware (Per-Monitor V2): gradient surfaces, semantic icons (success/waiting/error), two-line ellipsis, fade in/out, pause auto-dismiss on hover, Win11 DWM rounded corners; does not steal focus, and only one card is kept at a time.
  • Clicking the card triggers the page to execute uiWorkspace.openSession(sessionId) via the Host HTTP/SSE bridge, opening the precise session; can be closed via the top-right corner.
  • Card styles are configurable in the settings page: theme (dark/light), accent color (green/blue/orange/purple), four corner positions, display duration (4/6/8/10 seconds), font size and font (Microsoft YaHei, etc.). Configuration is persisted in ~/.dsh/plugins/task-notify.json, with colors aligned to DSH design tokens.

In-App Toast

  • Bottom-right floating layer (shell.overlay slot), auto-dismisses in ~6 seconds, can be closed manually; clicking jumps to the session via uiWorkspace.openSession.
  • Client half subscribes to sessions.list snapshots and uiSession.sessionStatus.pendingInteraction (DSH 0.2.x waiting flag location), working with in-page prompts.

Prompt Sound and Error Alerts

  • Settings page allows toggling notification sounds and selecting timbres (Apple Tritone / Ding / Double Chime / System Sound), with a volume slider 0–100 (written to host only after dragging ends); host synthesizes WAV, no additional audio resources needed.
  • Host monitors agent/error, pops a red error card when a task fails (independent debounce), can be disabled in settings.

Waiting for Input and Approval

  • In Plan mode, approvals like ask_user_question or exit_plan_mode (approval/request) will also trigger cards, sounds, and toasts.
  • Filters sub-agent sessions to avoid duplicate reminders.

Completion Detection (Dual Channel)

  1. Host: agent/status transition from running→idle is treated as a round completion, with a 2-second debounce.
  2. Client: subscribes to sessions.list for in-page completion flip detection.

Settings and Preview

  • Settings → General has a “Task Completion Notification” quick row (Desktop / In-app / Sound + Test).
  • The standalone settings page “Task Completion Notification” contains channel switches, card styles, fonts, sounds, and volume; From 0.9.0, the top features a real-time HTML preview sourced from the real card; “Test Notification” still triggers a real desktop card.

Installation and Activation

The plugin runs with the current dsh process privileges. Please inspect the source code and MIT license before installing. The DSH ecosystem advocates “Everything is a plugin”; SkillHub is a community directory and has no official affiliation with DeepSeek / High-Flyer.

Recommended to use the official plugin manager to mount the local build directory via link: (README original, please replace the path with your local absolute path):

dsh plugin --profile desktop add "link:<absolute path to this plugin folder>"

CLI Web version commonly uses the web profile:

dsh plugin --profile web add "link:<absolute path to this plugin folder>"

Manual equivalent steps: Add "dsh-plugin-task-notify": "link:<path>" to dependencies in the corresponding profile’s package.json, append "dsh-plugin-task-notify" to dsh.profile.bundles, then run pnpm install in the profile directory. After refreshing the page, Host-side changes require restarting the dsh process.

Developer local build (Node >=22.19.0):

pnpm install
pnpm typecheck
pnpm build
pnpm smoke

Output is in lib/; renderer.ps1 must have a UTF-8 BOM for Windows PowerShell 5.1.

Typical Usage

  1. Open Settings → General → “Task Completion Notification”: Adjust theme, accent color, font size, and font; the preview at the top updates instantly.
  2. Confirm Desktop Notifications (Windows), In-app Toast, and Prompt Sound switches; click Test: Verification is possible if any channel is enabled (Desktop pops a pinned card, Sound plays a tone, In-app shows a toast).
  3. Normal conversation: Receive alerts after each task round completes; alerts will also appear when plan approval or answer input is required. Click the desktop card or toast to jump to the corresponding session; hovering over the card pauses auto-dismiss.

To verify long text or three variants, the Host provides POST /task-notify/test, optional body: { title, body, variant, sessionId } (Requires plugin mounted and knowledge of local webServer port).

Scenarios and Notes

Suitable for: Developers running agents on the Windows desktop version of DSH for long periods and frequently switching to other windows; scenarios requiring immediate knowledge when a task ends or when “waiting for your click”.

Important Notes:

  • Desktop notifications support Windows only; macOS / Linux currently only have in-app toasts.
  • The Host runs in the Electron Node/utility process, cannot directly create Electron HTML windows; currently uses native WinForms cards, not the browser Notification API.
  • The resident rendering process takes ~110MB baseline memory (recorded in README); the plugin cleans up the rendering process and temp directory upon stop or update.
  • Do not directly modify the synthesized output cordis.yml for configuration; write overrides to cordis.patch.yml.

Conclusion

dsh-plugin-task-notify transforms “Task finished” and “Waiting for you” from passive page refreshing into configurable desktop cards, notification sounds, and in-app toasts, supporting click-to-return to precise sessions. If you are using the DSH 0.2.x desktop environment, you can mount it via the link: method described above and test it with one click in the settings page.

  • Directory Page: https://www.skillhub.cn/plugins/Favio8/dsh-plugin-task-notify
  • GitHub: https://github.com/Favio8/dsh-plugin-task-notify
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye