Introduction¶
When running long tasks or parallel sessions in DeepSeek Harness (DSH), developers often cannot keep their eyes glued to the Web interface. Information such as when a session stops running, whether an error occurred, or if the Agent is waiting for an answer or approval for a tool call can be easily missed if it requires manual page refreshing.
Common practices involve writing separate scripts to poll status or relying on external monitoring; however, these are either disconnected from the DSH event model or unable to push notifications simultaneously to both a mobile phone and the currently open browser tab. dsh-plugin-notify, provided by community maintainer This-is-XiaoDeng, listens for session state transitions on the Host side. It uses the same payload to deliver notifications via WxPusher and native browser notifications (including optional sound effects and requireInteraction). Configuration is handled through DSH’s native settings page, eliminating the need to modify YAML profiles for daily parameter adjustments.
What is this¶
dsh-plugin-notify is a “connected tool” class plugin in the DSH ecosystem (current package version 0.1.0, MIT License). It targets DSH profiles with the Web face enabled (e.g., dsh web) and issues notifications in scenarios such as session stops, abnormal exits, Agent questions, or (optional) tool calls awaiting approval.
Maintainer and Source Repository: This-is-XiaoDeng / GitHub: This-is-XiaoDeng/dsh-plugin-notify. The plugin directory page is available at SkillHub Plugin Page (a community directory site, with no official affiliation to DeepSeek / High-Flyer).
Core Features¶
Dual Channels, Single Detection¶
The Host performs detection only once during state transitions, delivering the same content to WxPusher and all connected browser pages. If there is no Web face (missing ctx.webServer), the plugin can still push to WxPusher but will not send notification streams to the browser.
Events Triggering Notifications¶
| Event | Source | Display Content |
|---|---|---|
| Session Stop | api-session/status → running: false |
Collapsed session title |
| Abnormal Exit | api-session/error, agent/error |
Error message |
| Agent Question | user-questions/request (observe then delegate) |
First question |
| Pending Approval | approval/request (observe then delegate) |
Tool name |
user-questions/request and approval/request belong to the Cordis waterfall: the plugin only observes and always delegates via next(), without intercepting requests for other answerers.
Noise Reduction and Filtering¶
minRunMs: Stops with a runtime lower than this threshold do not trigger notifications.stopDebounceMs: The Host waits for this duration after the Agent becomes idle before reporting a stop; if the session runs again, the stop is discarded. If an error notification was recently sent for the same session, the stop is also suppressed to avoid duplicate and less precise information.
Browser-side Behavior¶
The Client subscribes to events via SSE, utilizing new Notification(...) (with PNG icon), optional WebAudio dual-tone alerts, and requireInteraction to keep the banner visible until the user closes it. The configuration item browser.onlyWhenHidden defaults to true, allowing the tab to remain silent when visible.
Settings Page and Secrets¶
Edit fields defined in the plugin’s Config schema under Settings → Notifications; all fields are volatile, meaning changes take effect immediately without requiring a restart or plugin remount. The WxPusher appToken is declared as role('secret'): it is written to the profile but not returned via the API. The input box remains empty on interface load, displaying only whether a token has been set.
In terms of implementation, the Host registers /dsh-plugin-notify/events (SSE) and /dsh-plugin-notify/test; there are no additional runtime dependencies other than @deepseek-ai/schemastery, consisting of a single Host file and a single Client file with no build step required.
Environment and Requirements¶
- A DSH Host with the Web face (
@deepseek-ai/dsh-web-app), i.e., a standarddsh webprofile. - Node.js ≥ 20.
- A browser supporting the Notification API (Chrome, Edge, Firefox, Safari 16+).
- A WxPusher account is required if mobile push notifications are needed.
Installation and Activation¶
Via Plugin Manager (Recommended)¶
Add the package spec (registry name, git URL, or absolute path to a local checkout) in the DSH Plugins page, and enable the corresponding bundle:
dsh-plugin-notify
Or point to a local directory:
/path/to/dsh-plugin-notify
The bundle is declared by the plugin’s built-in cordis.patch.yml, so no other manifest changes are needed. If the profile is already running, a reload or restart is required to include the new package in the module resolution table.
Manual Installation in Profile¶
Execute the following in the profile directory (e.g., ~/.dsh/profiles/web):
pnpm add dsh-plugin-notify
Add the bundle to dsh.profile.bundles in that profile’s package.json:
{
"dsh": {
"profile": {
"bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-plugin-notify"]
}
}
}
Configuration and Typical Usage¶
Open Settings → Notifications; fields will be written directly to the plugin entry in the profile. Common items are listed below (refer to the README for the complete list):
| Field | Default Value | Meaning |
|---|---|---|
enabled |
true |
Master switch (both channels) |
events.stopped / error / question |
true |
Whether to notify for corresponding events |
events.approval |
false |
Whether to notify for pending approvals |
browser.enabled / sound / requireInteraction / onlyWhenHidden |
See README | Browser channel behavior |
wxpusher.enabled |
false |
Whether to enable WxPusher |
wxpusher.appToken |
'' |
Write-only secret |
wxpusher.uids / topicIds |
[] |
Receiver UIDs or topics |
advanced.stopDebounceMs |
1200 |
Idle wait before reporting stop |
advanced.minRunMs |
2000 |
Do not report stop for runs shorter than this |
advanced.rootSessionsOnly |
true |
Skip subagent sessions |
To persist to the profile patch, you can write the structure at the same level in YAML, for example:
- id: dsh-plugin-notify
config:
events:
approval: true
wxpusher:
enabled: true
uids:
- UID_xxxxxxxx
WxPusher¶
- Log in at https://wxpusher.zjiecode.com, create an application, and copy the appToken.
- Subscribe by scanning the application QR code with WeChat, and copy the UID from the user list (or use a topic id for mass distribution).
- Fill in the appToken and UID in the settings page and save.
Browser Permissions and Sound¶
The page displays the current Notification.permission: click Request permission when it is default; if denied, you must re-allow it in the browser’s site settings. Sound alerts rely on WebAudio; browsers require a user click or keypress on the page to allow AudioContext to start, and the plugin will unlock it upon the first interaction.
Testing¶
Each channel card has a built-in test button:
- Browser notifications → Send a test notification: Broadcasts a frame to all connected pages and sends a WxPusher message (full-chain probe).
- WxPusher push → Send a test push: WxPusher only; does not trigger system notifications, and allows verification of credentials even if
wxpusher.enabledis still false.
The result is displayed below the button, e.g., Browser: delivered to 1 page(s) · WxPusher: sent or WxPusher: no appToken.
Use Cases and Notes¶
Suitable for developers who need to receive reminders for “stops, errors, questions, approvals” on their mobile and browser when DSH Web sessions are running in the background or on another machine. If only using browser notifications and not WxPusher, a WxPusher account is not required.
Please review the Repository Source Code and the MIT License before installation. The plugin runs under the current DSH process permissions; WxPusher pushes will carry your configured token and message content. Although appToken is a write-only secret, it should be kept securely, and profiles containing secrets should not be committed to public repositories.
The DSH ecosystem follows the principle of “everything is a plugin”; this plugin is distributed via community directories and the npm package name dsh-plugin-notify, existing alongside the official Harness repository, and can be selected according to your needs.
Conclusion¶
dsh-plugin-notify consolidates session state changes into a single detection on the Host side, synchronizing them to WxPusher and browser SSE notifications. It manages event switches, noise reduction parameters, and secrets via a native settings page. If you are already using the DSH Web profile, you can add dsh-plugin-notify via the plugin manager, complete permission and (optional) WxPusher configuration in Settings → Notifications, and verify the channels using the test buttons on each card.
- Directory Page: https://www.skillhub.cn/plugins/This-is-XiaoDeng/dsh-plugin-notify
- Source Code and Documentation: https://github.com/This-is-XiaoDeng/dsh-plugin-notify