Introduction¶
When running long tasks in DeepSeek Harness (DSH), after switching the window to the background or minimizing it, you often have to rely on occasionally switching back to the interface to know if the Agent has finished. Using alert or in-page prompts in the browser interrupts operations, and the attribution of the banner belongs to the webpage or browser, rather than DSH itself.
The community plugin dsh-plugin-system-notify (Maintainer: DRheEheAMGary, Category: Client) turns “sending system-level desktop notifications” into a tool callable by the Agent: The Harness registers system_notify on the server side, and when a DSH page is online, the client uses the Web Notification API to pop up the notification; on macOS and Windows, it is tested that the notification identity comes from DSH rather than a random tab. This article explains its positioning, architecture, installation, and usage based on the README and package information.
What is this¶
dsh-plugin-system-notify is a bundle plugin for DeepSeek Harness, version 0.1.0, MIT license, requiring Node >= 20. In short: It allows AI to call a tool to send native desktop notifications to users (macOS Notification Center, Windows Toast, Linux Desktop Notifications), and the delivery chain is initiated by the Harness side to ensure the banner carries the DSH identity as much as possible.
The plugin does not write platform-specific code in the repository; instead, it uses the standard Web Notification API, and the runtime on each platform translates it into native notifications.
Architecture: Long-polling Collaboration between Host and Client¶
The README splits the implementation into two halves, coordinated via a long-polling route:
- Host (
index.js): Registers the tool, puts notification requests into an inbox, and exposesGET /api/system-notify/inbox. - Client (
client.js): Resides as a long-polling request; it returns immediately when the Host has a notification, and the page side pops it up usingnew Notification().
Long-polling is adopted instead of fixed-interval polling: the latency is low when there are notifications, and extra requests are rarely generated when idle.
The client distinguishes between desktop (desktop window) and browser (browser tab): Desktop windows are prioritized because only desktop windows can provide the DSH identity. If a client cannot obtain notification permission, it will not participate in the drain, to avoid the notification being claimed but unable to be displayed.
Schematic:
AI calls system_notify → 🔔 DeepSeek Harness
Task completed
Core Feature: system_notify Tool¶
The tool callable by the Agent is named system_notify, delivering one-way: it does not switch to the foreground or wait for user click response.
| Parameter | Required | Description |
|---|---|---|
title |
Yes | Title, approx. 60 characters |
body |
Yes | Body text, a single sentence, approx. 120 characters |
silent |
No | Silent mode, default false |
Example return on success:
{ "ok": true, "id": 1, "delivery": "delivered", "surface": "desktop" }
delivery:deliveredindicates a window has taken over;queuedindicates no available window temporarily, will be resent after connection.surface: e.g.,desktop, indicates popped up by the desktop window surface.
Installation and Enablement¶
The installation method is based on the README; do not construct commands like dsh plugin add that do not appear in the documentation on your own.
Local bundle installation:
plugin_manager install_bundle /path/to/dsh-plugin-system-notify
Or declare the dependency in the profile’s package.json and add it to bundles:
"dependencies": { "dsh-plugin-system-notify": "github:DRheEheAMGary/dsh-plugin-system-notify" },
"dsh": { "profile": { "bundles": ["dsh-plugin-system-notify"] } }
In package.json, dsh.client is set to the web platform, immediately: true, and performs bundle patching via cordis.patch.yml. After enabling, ensure at least one DSH page is online; otherwise, notifications will enter the queue (the README states there is a waiting window of about 2 minutes max for a connection).
Typical Usage¶
In conversations or workflows, let the Agent call system_notify when tasks are completed, manual confirmation is needed, or background jobs end. For example, write “DeepSeek Harness” in the title and a status description in the body. The caller only needs to pass title and body according to the table above, and set silent: true if necessary to avoid sound.
You do not need to hand-write notification code on the frontend: The Client plugin will automatically drain the inbox and pop up system banners on authorized DSH pages.
Platforms and Limitations¶
| Platform | Status |
|---|---|
| macOS | Tested, attributed to com.deepseek.dsh |
| Windows | Tested (Toast) |
| Linux | Not tested |
Notes on usage:
- Requires at least one DSH page to be open; when all are closed, notifications are queued waiting for the window to reconnect.
- When only opening the Web GUI in a browser tab, the notification attribution is the browser, not the DSH desktop identity.
- System Do Not Disturb mode, Focus Assist, etc., will intercept notifications.
The plugin runs with the permissions of the current DSH process and the loaded bundle; please read the GitHub repository source code and MIT license before installation to ensure it complies with your environment and security policies. The DSH ecosystem emphasizes “Everything is a plugin”; the SkillHub directory page is a community collection and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-plugin-system-notify converges “seeing that Harness has finished speaking even in the background” into a standard tool: long-polling inbox, desktop window priority, one-way system notification. If you frequently run long tasks in DSH and want the banner to show as Harness itself, you can install the bundle as described above and grant notification permissions to the desktop client.
- Directory Page: https://www.skillhub.cn/plugins/DRheEheAMGary/dsh-plugin-system-notify
- GitHub: https://github.com/DRheEheAMGary/dsh-plugin-system-notify