Preface¶
When running long tasks in DeepSeek Harness (DSH), a common practice is to keep an eye on the terminal or switch back to the Web session repeatedly to check if the Agent has responded, is awaiting approval, is stuck, or has encountered an error. Terminal BEL can only indicate “activity,” making it difficult to distinguish between completion and a question; pure logs also make it inconvenient to determine from another window which session requires a reply.
The following section introduces the community plugin dsh-state-notifier (maintainer HOPE-LGNF, current version 0.3.1). It accurately identifies five types of states on the host side and provides reminders via synthesized notification sounds and system notifications in the browser. It can fall back to terminal BEL if no ready browser is available; global policies are managed via Cordis configuration, while panel preferences are stored in local localStorage.
What is this¶
dsh-state-notifier is a notification plugin designed for the DSH Web configuration file. It features a distinct set of alert logics for Task Completion, Waiting for Approval, Waiting for Answer, Task Blocked, and Task Error. The plugin declares its dsh scope as >=0.2.0-rc.2 <0.3.0-0; its category is listed as “notify” in the package metadata, and the community directory classifies it under workflow plugins.
In terms of implementation, it reuses the authenticated Fetch long-polling of the official Connection. On the browser side, it coordinates multi-tab sending via Web Locks. Upon disconnection, it can resend the most recent 256 notifications (bounded memory, not a Web Push background service).
Core Features¶
Five Event Types and Completion Criteria¶
- Complete: Requires the turn to end normally with a final text answer; cancellations, empty turns, tool-only calls, and sub-agent turns will not be falsely reported as complete.
- Approval, Question, Blocked, Error: Independent alerts that are not affected by the “minimum duration for completion” threshold.
- Global
eventscan toggle the five types of notifications individually;minDuration(default 10 seconds) applies only to completion notifications.
Browser: Sound and Desktop Notifications¶
- Plays synthesized notification sounds within the local browser. Each event type can be set to “Default, Soft, Bright, or Urgent,” or unified with one click; no need to download WAVs or invoke external players.
- Sends system notifications after user authorization (on Windows, it may go through the Notification Center); clicking the notification returns to the corresponding session.
- By default, notifications display the category and a short session identifier; Question type can display the official question body (multi-line, similar to common IM notifications). It will not stuff task bodies, tool parameters, approval reasons, or error stacks into system notifications.
- Two same-origin tabs coordinate via Web Locks and bounded receipts; configuration changes take effect immediately and sync to other same-origin tabs.
Fallback without a Browser¶
When playback: auto is set, if no ready browser is available, terminal BEL is used; if the terminal cannot ring, it provides diagnostics and still logs the notification.
Differences from Old Plugins (README Notes)¶
The project references the five event types and control concepts of “bell” but reimplements the transport and playback. It does not port bell’s WAV directory, per-event WAVs, PowerShell/Linux players, or Chinese-English switching. It also does not port “ding’s” sound uploads, periodic reminders, or registry protocols.
Installation and Version Requirements¶
Requires Node.js 22.x (22.19+), or Node.js 24+ (README recommends 24). CI is validated on Node 22/24 × Linux/Windows.
Do not install via Git addresses (such as github:owner/repo or the repository URL on the plugin page): The browser artifact dist/client.js is not distributed with Git, and installation via Git may be rejected by pnpm or fail to start. You should use the Release tgz or a local npm pack artifact.
If not in the repository root directory, you can directly install the GitHub Release attachment (which includes the browser build artifacts):
npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add \
"https://github.com/HOPE-LGNF/dsh-state-notifier/releases/download/v0.3.1/dsh-state-notifier-0.3.1.tgz"
If building locally in the repository root directory (where $PWD points to that directory):
npm ci
npm run check
npm pack
npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add "$PWD/dsh-state-notifier-0.3.1.tgz"
npx @deepseek-ai/dsh@0.2.0-rc.2 web
Uninstallation:
dsh plugin --profile web remove dsh-state-notifier
When following the latest release, replace the version number in the URL with latest. After upgrading, apply the compatibility check steps in the repository README’s “Development” section before using it for daily tasks.
Enabling Browser Alerts¶
- Open the dsh Web page, enter Settings -> “General”, or click the bell icon at the top of the session.
- Check “Play Sound”. On the first click, click “Click to Unlock Sound” (browsers require a user gesture to unlock audio).
- Check “Show Desktop Notifications”, click “Click to Authorize Desktop Notifications” as prompted, and allow notifications in the browser site permissions.
- Expand “Permissions and Runtime Info” to view sound, permissions, connection, and host policies.
“Sound Scheme and Preview” allows previewing synthesized sounds for each category. “Notification Appearance” allows changing the bell icon, uploading a local icon, choosing to display session short ID or title in notifications, and toggling “Show Question Text”. Uploaded icons are written only to local localStorage and are not sent to the host.
Sound unlocking and notification authorization are two separate actions; you may need to unlock sound again after refreshing. If notification permission was previously denied, it needs to be changed back in browser site settings.
Windows system notifications are sent by the browser that opened the dsh page on Windows; the host can run in WSL. Remote HTTP usually cannot use system notifications; HTTPS is recommended; localhost and loopback addresses are generally secure contexts. The plugin does not guarantee delivery if the page is closed, the system sleeps, or the browser freezes.
Configuration¶
Global policies are stored only in Cordis configuration. They can be modified in the dsh plugin Config or by editing the profile’s cordis.patch.yml:
- id: state-notifier
config:
enabled: true
playback: auto
minDuration: 10
events:
complete: true
approval: true
question: true
block: true
error: true
| Item | Meaning |
|---|---|
enabled |
Master switch; if off, no new notifications are generated |
playback: auto |
Output via browser if a ready browser exists; otherwise BEL |
playback: browser |
Browser output only; terminal logs are retained |
playback: terminal |
Terminal BEL only; terminal logs are retained |
playback: none |
Log only |
minDuration |
Minimum duration (seconds) for completion notification, default 10 |
events |
Independent switches for the five types of notifications |
Switches in the browser panel, volume, foreground mute, sound schemes per category, icons, and session display methods are stored in that browser’s localStorage and will not overwrite global policies. To mute everything, turn off the host master switch enabled; foreground mute applies to the entire dsh window, not just “the current session”.
When “Show Question Text” is turned off, the question body is not sent to the browser with the subscription response, and the notification retains only the category and session identifier.
Behavioral Boundaries and Applicability Notes¶
- Notifications use bounded memory; if the host restarts, the plugin reloads, or the disconnection exceeds the retention range, the panel will indicate a record reset. The first time the page is opened, only new notifications are received; old tasks are not replayed.
- A send receipt indicates that the browser accepted the API call, not that the user has seen or heard it; crashes, storage failures, or system Do Not Disturb may lead to duplication or omission. Without Web Locks, the panel will prompt to enable only in one tab.
- Suitable for DSH Web users who need to distinguish between “Complete / Waiting for Human / Error” without staring at the terminal for long periods. The plugin runs with the current dsh process permissions. Before installation, please review the GitHub Source Code and the MIT license yourself.
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.
Further Reading¶
- Repository: HOPE-LGNF/dsh-state-notifier
- For architecture, project status, and browser verification steps, see
docs/ARCHITECTURE.md,docs/STATUS.md, anddocs/VALIDATION-browser.mdin the repository.
Through the steps above, provided you fix the dsh version and use a Release tgz, you can connect the five types of task states to browser sounds, system notifications, or terminal BEL, and control the granularity via both Cordis and the panel configuration layers.