Preface¶
When DeepSeek Harness (DSH) runs in the background and requires user input—such as answering a question, approving an action, or confirming a plan—or when an Agent completes a task round or encounters an error, the current window does not automatically come to the foreground. Developers must manually switch to the application to review and handle the prompt, which interrupts their current workflow. The dsh-notify plugin addresses this by displaying a topmost notification card when DSH is not in the foreground, and supports clicking through to jump to the corresponding session.
What It Is¶
dsh-notify is a desktop notification plugin for DeepSeek Harness, provided by maintainer WangShuangTong. On Windows, the plugin displays notification cards via a self-drawn topmost window. Clicking “Open DSH” brings the DSH window to the front and switches to the relevant session. The web client uses the browser’s native notification system instead.
Core Features¶
- When DSH is not in the foreground:
- Question / Approval / Plan confirmation: Immediate popup showing the session name, question content, or tool/reason;
- Task round completed: Popup showing the session name; multiple sessions completing at the same time are merged into a single notification;
- Agent error: Popup showing an error summary.
- Clicking “Open DSH”: Brings the DSH window to the front + switches to the corresponding session.
- No interruption when DSH is in the foreground; sub-agent sessions are not notified; the same request will not trigger duplicate popups.
- The web client uses the browser Notification API; clicking can switch sessions.
- A self-test notification is displayed on first load to confirm the notification channel is available.
Installation & Enablement¶
GitHub Installation (Recommended)¶
- In DSH Desktop, open “Settings → Plugins → Add plugin”.
- Enter the GitHub specification:
github:WangShuangTong/dsh-notify
- After installation, enable the bundle (Enable).
- If prompted to restart, quit Desktop from the tray and restart it.
Each Release includes a self-contained tarball. You can choose to install via a local path or the tarball. The lib/ directory contains build artifacts and is committed to the repository, so no local build is required for GitHub installation.
Local Directory / Tarball Installation¶
git clone https://github.com/WangShuangTong/dsh-notify.git
cd dsh-notify
pnpm install
pnpm run build
pnpm pack # Optional: generates a self-contained tarball dsh-notify-0.1.0.tgz
In “Add plugin”, enter an absolute path: a directory (installed as link:, changes take effect immediately) or a tarball (a self-contained snapshot; code changes require re-packing and reinstallation).
Manual Equivalent Installation (Fallback)¶
Edit %USERPROFILE%\.dsh\profiles\desktop\package.json:
- Add
"dsh-notify": "link:C:/path/to/dsh-notify"todependencies(or thefile:path for a tarball); - Append
"dsh-notify"todsh.profile.bundles;
Run pnpm install --ignore-scripts in the profile directory, then restart Desktop.
It is recommended to back up the profile manifest before installation. The
desktopprofile is exclusively managed by the Electron application; the CLI commanddsh plugin --profile desktop addmay be rejected. Prefer using the plugin management page.
Configuration¶
Default values are defined in cordis.patch.yml. You can override them by id: dsh-notify in the profile’s cordis.patch.yml:
- id: dsh-notify
config:
notifyOnAsk: true
notifyOnDone: true
notifyOnError: true
sound: true
onlyWhenUnfocused: true
announce: true
askAutoCloseMs: 60000
doneAutoCloseMs: 15000
transport: auto
debug: false
| Key | Default | Description |
|---|---|---|
notifyOnAsk |
true |
Notify on questions / approvals / plan confirmations |
notifyOnDone |
true |
Notify when a task round completes |
notifyOnError |
true |
Notify on Agent errors |
sound |
true |
Play a system alert sound when a popup appears |
onlyWhenUnfocused |
true |
Only notify when DSH is not in the foreground |
announce |
true |
Show a self-test notification on first load (once per version) |
askAutoCloseMs |
60000 |
Duration (ms) question popups remain visible; 0 = until clicked/dismissed |
doneAutoCloseMs |
15000 |
Duration (ms) completion/error popups remain visible |
transport |
auto |
auto / popup / browser; Windows Desktop automatically uses popup |
debug |
false |
Exposes globalThis.__DSH_NOTIFY_DEBUG__ debug hooks |
Troubleshooting¶
- Filter for
[dsh-notify]in the browser console (press F12 in Desktop). The startup terminal should show[dsh-notify] host ready. globalThis.__DSH_NOTIFY_LOADED__indicates the client plugin has been loaded.- With
debug: true, you can use__DSH_NOTIFY_DEBUG__.simulate('ask' | 'done' | 'error' | 'self-test', { sessionId, title, question })to manually trigger popups. - If a popup does not appear: confirm that the DSH window is truly not in the foreground (
document.hasFocus()returns false), and check the Host logs.
Known Limitations¶
- Popups are not system notifications and do not appear in the Windows Notification Center.
- Popups appear in the bottom-right of the primary display by default; multi-monitor window positioning is not yet implemented.
- Only Windows uses the self-drawn popup; other platforms fall back to browser notifications.
- Multiple web tabs may trigger duplicate notifications.
- Clicking “Open DSH” depends on the Host being able to locate the Electron main process window. Minimized windows will be restored; windows hidden to the tray will attempt to restore, but if the system denies it, click the tray icon manually.
Ecosystem Background¶
The DSH philosophy is “everything is a plugin.” The community plugin directory is independent of DeepSeek / High-Flyer and has no affiliation with the official team.
Conclusion¶
dsh-notify solves the notification and session-switching problem when DSH runs in the background, using topmost notification cards. It is well suited for development/debugging scenarios or long-running Agent sessions. Learn more at: GitHub | Community Directory.