Introduction¶
When running long-duration tasks with DeepSeek Harness (DSH), the common practice is to stare at the browser waiting for the turn to finish. Once you switch to another tab or application, the task often completes in the background, and you have to rely on your own memory to go back and check. Some environments may pop up notifications at any time, interrupting you even when you are on the page.
The following is an introduction to the community plugin dsh-away-notify (maintainer TianzeLuo): It only sends desktop notifications for events such as turn completion, errors, approval requests, agent questions, and goal completion when you “are not currently viewing the DSH page.” Clicking a notification returns you to the corresponding session. Windows and WSL use native WinRT Toast notifications, while standard Linux desktops use notify-send. The plugin describes itself as having zero runtime dependencies and zero build steps; it is ready to use immediately after dsh plugin add. You can view the source code and documentation on the SkillHub directory page and the GitHub repository.
What is this?¶
dsh-away-notify is a client (web profile) plugin for DSH: The browser side reports “presence” status, the server triggers notifications after determining you have left, and it attempts to align the click landing point with the session where the event occurred. In terms of classification, it belongs to client capabilities, consistent with the “everything is a plugin” DSH ecosystem. The directory site SkillHub includes this as a community collection and has no official affiliation with DeepSeek or High-Flyer.
The current package version is 0.1.0, licensed under MIT, and requires Node >=22.5.
Core Features¶
Triggering and Suppression¶
The README summarizes the toggleable triggers into multiple scenario categories: turn completion, errors / interruptions / output limit reached, waiting for approval, agent questions, and goal completion. There is a cooldown for the same session and same event type; sub-agent sessions do not disturb by default; intermediate turns automatically advanced by /goal can be configured to be silent, only alerting when the goal is completed or blocked.
Presence determination is recorded by tab (one clientId per tab). It is considered “away” and alerts when there are no “fresh + visible + focused” tabs; if it can determine which session is currently being viewed, it only suppresses that session, allowing background sessions to still alert. Switching to another tab or application always triggers an alert. Presence status has a TTL (default config presenceTtlMs: 45000) to avoid permanent silencing after a tab crash or browser closure.
Notification Form and Return Navigation¶
Windows side notifications use scenario="reminder", allowing notifications to persist until clicked or until you switch back to the corresponding session; they are withdrawn per session to avoid accidentally withdrawing notifications for other sessions. Toasts are clickable, prioritizing focusing an existing DSH tab and switching to the corresponding session; when supporting multiple instances, they are distinguished by the title [dsh:<port>]. DSH running inside WSL also sends Toasts via Windows side powershell.exe; pure Linux desktops use notify-send, downgrading to logging only if it is missing.
Other plugins can declare “don’t disturb this session” or modify the click landing point via the awayNotify interface described in the documentation; away-notify does not bind to specific plugin names.
Installation and Activation¶
Installation commands should follow the repository README; WSL / Linux can install directly from GitHub:
dsh plugin --profile web add github:s11phere/dsh-away-notify
If you want to install a locally modified copy, change the spec to the absolute path of the checkout directory, for example:
dsh plugin --profile web add /path/to/dsh-away-notify
Windows native dsh users must first read the repository’s docs/windows.md: If the plugin checkout and $DSH_HOME are on different drive letters, dsh plugin add may silently install a plugin that cannot load while still returning an exit code of 0. An official one-click installation script is provided:
cd <插件检出目录>
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\install-windows.ps1
After installation, restart dsh web and refresh the browser page; new bundles are only loaded into dsh.profile.bundles at startup, and client.js also needs a refresh to load. cordis.patch.yml supports hot-watching, so generally, you do not need to restart to change configuration.
Verify if it is hooked up (without starting the service):
dsh --profile web --dump-config | grep -A2 dsh-away-notify
Typical Usage¶
Notification Channel Self-Test¶
You don’t need to wait for a real turn to finish; you can first confirm the Toast / notification path:
node scripts/selftest-notify.mjs "标题" "正文"
The script will actually pop a Toast and read back the Windows Action Center to confirm. If you want to see plugin-side logs (such as “loaded” or “suppressed”), you can temporarily turn on notifyOnLoad and debug in the profile’s cordis.patch.yml, and turn them off after confirming. For troubleshooting comparisons, see the repository’s docs/troubleshooting.md.
Configuration Overrides¶
Override by id in the profile’s cordis.patch.yml (excerpt of common items; see README for the full list):
- id: dsh-away-notify
config:
onTurnComplete: true
onTurnError: true
onApproval: true
onQuestion: true
onGoalComplete: true
suppressGoalRounds: true
rootsOnly: true
cooldownMs: 10000
presenceTtlMs: 45000
openOnClick: true
persistent: true
dismissOnReturn: true
useProtocolHandler: true
titleTag: true
debug: false
notifyOnLoad: false
Note: appName is currently marked as not wired up in the README; to distinguish notification sources, you should change appId. includeToken writes the token to local notification history; for trade-offs, see docs/security.md.
Use Cases and Notes¶
Suitable for developers who use the DSH web interface for long periods, need to switch away to handle other matters, but still wish to be “disturbed only when leaving the page.” Windows / WSL users should prioritize installation according to the Windows documentation to avoid silent installation corruption across drive letters.
The plugin runs with the current dsh process; notifications and focus helpers will call local shells (e.g., powershell.exe) or registered protocol handlers; please review the source code and MIT license yourself before installation. Opening browser DevTools causes the page to lose focus, and the plugin will judge this as “away,” which is expected behavior as described in the README.
Known limitations and end-to-end verification records can be found in the repository’s docs/known-limitations.md, docs/verification-windows.md, etc.
Conclusion¶
dsh-away-notify connects “Codex-style” leave reminders to DSH: no screen flooding when present, Toasts when away, and clicks attempt to return to the correct session and instance. For installation commands, Windows pitfalls, and troubleshooting, please refer to the GitHub README; for browsing categories and introductions, you can refer to the SkillHub directory page.