Introduction¶
Running agents in DeepSeek Harness (DSH) often means that a conversation turn ends in the background: you switch to another window to write code, or let the task run to completion in the sidebar. Without alerts, you have to repeatedly click back to the session to check the status. While the Web Notification API is available in browser environments, the session model and client dependency chain in DSH 0.2.x differ from 0.1.x. Consequently, the upstream omdsh-dev/dsh-notification, which targets 0.1.1 / 0.1.2, cannot be used directly on 0.2.x. The following introduces the client plugin dsh-notification-desktop released by maintainer Adingo001: it implements “popping a system notification when a turn completes” on 0.2.x, sends toasts via the host’s WinRT on the desktop, and includes a configurable completion reminder settings page.
What is this¶
dsh-notification-desktop is a completion reminder plugin for DeepSeek Harness 0.2.x. It is categorized as a client-side plugin; the repository is located at https://github.com/Adingo001/dsh-notification-desktop, the current package.json version is 0.2.0, and the license is MIT. It is a 0.2.x port of the upstream dsh-notification 0.1.4 logic, adapted for the session snapshots, retention, and inject conventions of 0.2.x.
What it does¶
The plugin is divided into Host and Client halves, with responsibilities clearly defined in the README.
The Host side registers a session projection named notification: it collapses the last turn/end for each session to derive { turn, reason, body, tools }; it also provides POST /dsh-notification-desktop/notify to actually pop a toast via WinRT on Windows.
The Client side subscribes to the monotonic increase of turn for this projection in ctx.sessions.list, deciding whether to remind based on conditions such as the master switch, end-reason filters, and whether to remind only in the background. In the desktop shell, it POSTs the content to the host to trigger the notification; in the browser, it uses the page’s own Notification. The body text is taken from the last assistant reply of that turn (truncated to 400 characters on the Host side, and truncated again by settings on the Client side).
The settings entry is located in Settings → Completion Reminders: master switch, filter by end reason, background-only reminders, persistent notification, body length, permission status, and send test notification. The projection is a pure function; the Host only registers the projection and does not touch data outside the session log; the Client only uses the public sessions.list snapshot and settings.section slots.
Compared to the upstream version, the “waiting for your approval / waiting for your answer” type pending interaction reminders are no longer ported to 0.2.x (pendingInteraction cannot be subscribed from the root service in 0.2.x as it could in 0.1); settings storage has switched to localStorage + a built-in observable, and the settings page uses only React and host theme CSS variables (--dsw-alias-*).
Installation and Activation¶
Installation methods vary by profile. You must follow the official README instructions and avoid manually concatenating dsh plugin add github:owner/repo.
Desktop (DSH Desktop)
The desktop profile is exclusive to the Electron application, and the CLI will refuse to write to it. You should use the in-app entry:
- In the sidebar, go to Plugins → Add Plugin and paste
https://github.com/Adingo001/dsh-notification-desktop; - Alternatively, have the agent install the same address via the host’s built-in plugin manager’s
install_bundle(alink:local directory is also acceptable).
Web / CLI profile (dsh web, headless, etc.):
dsh plugin --profile web add https://github.com/Adingo001/dsh-notification-desktop/archive/refs/heads/main.tar.gz
After installation, refresh the page (the desktop app requires a restart), and a Completion Reminders page should appear in the settings.
Plugin Market (Discover)
The repository provides a format 1 market/index.json, which can be added via Plugins → Discover → Add Index Source:
https://raw.githubusercontent.com/Adingo001/dsh-notification-desktop/main/market/index.json
The entries are commit-pinned git sources, with versions corresponding one-to-one with commits; engines.dsh is >=0.2.0 <0.3.0.
Typical Usage and Windows Notes¶
Daily usage: Install and open Completion Reminders, turn on the master switch as needed, select the end reasons to remind on (by default, it pops mainly on completed / error; forked / interrupted will advance the projection turn to prevent missed turns due to deduplication, but do not pop by default), and set whether to remind only in the background and the body length. To verify the pipeline, send a test notification from the settings page.
Windows Desktop In addition to permissions, toast rendering issues must also be handled. The README explains: in the main window, Notification.permission is usually granted under the desktop shell, but if Electron does not correctly register the AUMID, the system may silently discard the toast; furthermore, in the same environment, the page’s new Notification() might still not display. Therefore, on the desktop, the page POSTs to the host, and the host sends via WinRT. Both steps must be completed to ensure it works. You need to execute:
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\fix-toast-aumid.ps1
Add -Remove to revoke. The script only writes to the AppUserModelId entry in the registry; it does not modify the shell or asar.
When troubleshooting “why isn’t it popping up”, the Host registers GET/POST/DELETE /dsh-notification-desktop/trace. The client POSTs its gate decisions there. For example:
Invoke-WebRequest http://127.0.0.1:<port>/dsh-notification-desktop/trace
You can see records such as apply / seed / tick / skip / fire / deliver / host-notify.
Applicable Scenarios and Boundaries¶
Target Audience: Users running agents on DSH 0.2.x (including Desktop) who want system-level reminders when a turn ends and need to distinguish based on end reasons and foreground/background status. There is another plugin in the same category, ztl0001/dsh-notify; the differentiation of this plugin in the documentation is factual: 0.2.x host projection, desktop uses host WinRT (avoiding silent discarding of shell page Notifications), and includes a settings page with end-reason filtering.
Known Boundaries (from README):
- Does not remind for pending interactions (approval/answer).
- Decision making happens on the page side; if the page is not running, no reminder will occur; the desktop side merely hands the “pop up” action to the host.
- The plugin runs loaded with the current DSH process. Before installation, please review the repository source code and MIT license yourself to ensure it meets your environment and security requirements.
Community directory page (no official affiliation with DeepSeek / High-Flyer): https://www.skillhub.cn/plugins/Adingo001/dsh-notification-desktop. For code and detailed instructions, see the GitHub repository.