Introduction¶
When running long conversations or subtasks with DeepSeek Harness (DSH), if the window is in the background while you are writing other code, you often have to switch back to the UI to realize the current turn has finished. Previous approaches relied on a tray helper process and the DSH_NOTIFY stdout protocol; once the way you launch changes (dsh web, the desktop app, whether a tray is present), the notification pipeline is easy to misalign.
Below is the standard DSH plugin maintained by Hope-Phenom: @hope_phenom/dsh-plugin-notify. It subscribes to session/event inside the Host and sends one desktop notification per turn/end. It does not depend on a tray process and does not require a separate stdout protocol.
What This Is¶
The npm package name is @hope_phenom/dsh-plugin-notify (repository: Hope-Phenom/dsh-plugin-notify), categorized as a client plugin. Summary: it sends a desktop notification when each turn finishes; it is equivalent to the notification capability in the old DSH tray helper (DshNotifyicon), reimplemented as a standalone plugin. License: MIT. Current package version: 0.1.0.
Core Features¶
Events and Triggering¶
- Notify on each
turn/end; optionally also notify for subagents / subtasks. - Built-in “quiet” policy: you can set a minimum turn duration (milliseconds); below the threshold it will not pop up, and there is a hard timeout for the notification subprocess.
Delivery Channel¶
Default Auto: if Python is detected it uses the built-in scripts/notify.py, otherwise it uses scripts/notify.ps1, with no need to manually configure an interpreter first.
You can also force Python, PowerShell, or Custom command (any executable plus an argument template with placeholders, similar to the external command in the old tray helper).
Roughly cross-platform: Windows system balloon / WinRT toast; macOS via osascript; Linux via notify-send. The built-in Python script prefers notifypy, then falls back per platform; the PowerShell script dispatches to the corresponding implementation on Windows / macOS / Linux.
Settings Page¶
Settings → Notifications has four groups: when to notify, delivery channel, notification text, advanced items (timeout, settings file path, send/fail counts, last delivery result). There is Send test, Restore defaults, and Save at the bottom; it supports live preview and re-detecting the channel.
The text and argument templates support placeholders, such as {label}, {sessionTitle}, {turn}, {reason} / {reasonLabel}, {duration} / {durationMs}, {title} / {message}, etc. The argument template is split by spaces; values containing spaces must be quoted; a single placeholder by itself will be passed as a single argument (useful for multi-line bodies).
Configuration uses atomic reads and writes: if the settings file is corrupted it falls back to defaults and provides an explanation, avoiding the whole plugin becoming unavailable.
Installation and Activation¶
Prerequisite: the DSH desktop app or dsh web is running under the desktop profile.
Method A — npm (recommended)
- In the sidebar, go to Plugins → Install → enter the package name
@hope_phenom/dsh-plugin-notify. - After installation, click Enable now (new bundles can be activated via HMR; if the UI does not respond you may need to restart DSH).
- Configure under Settings → Notifications.
Command line example (you must exit the DSH desktop app first, since it locks the profile directory):
& "C:\Users\<you>\AppData\Local\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" `
plugin --profile desktop add @hope_phenom/dsh-plugin-notify
Method B / C — local directory
On the Plugins page, choose a local directory and enter the absolute repository path, or use the same dsh.cmd to run:
& "C:\Users\<you>\AppData\Local\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" `
plugin --profile desktop add "F:\WorkSpace\dsh-plugin-notify"
Note: the path must be absolute; a relative path is resolved against the shell’s current directory, and a bare directory name is treated as an npm package name. When replacing an installed package with the same name, restart the process to load the new JS modules.
Uninstall: via the Plugins page, or:
dsh plugin --profile desktop remove @hope_phenom/dsh-plugin-notify
Typical Usage¶
After installing and enabling, the default Auto channel should deliver “turn ended” notifications in most environments. To verify the current configuration, click Send test at the bottom of Settings → Notifications.
If you already have a Python notification script, you can switch to the Python channel and change the argument template, for example:
{script} {message} --title {title}
The built-in script accepts arguments such as --title, --message, --event, --kind, --session, --turn, --reason, --duration-ms, etc.
To see the command that would be executed on a given platform without actually sending a notification (handy for cross-platform checks):
python scripts/notify.py --dry-run --platform macOS --title T --message M
python scripts/notify.py --dry-run --backend notify-send --title T --message M
pwsh -File scripts/notify.ps1 -DryRun -Platform Linux -Title T -Message M
Use Cases and Notes¶
Suitable for: developers who run DSH for long periods and need a desktop reminder that “this turn has finished”; who want to unify notification behavior across dsh web, the desktop app, and various launch modes with or without a tray.
Notes:
- The plugin runs inside the Host, and the notification subprocess is started with the current DSH process privileges; it is recommended to read the repository source and the MIT license before installing.
- The
desktopprofile can only be managed via thedsh.cmdbundled with the desktop app (the Windows path given in the README); Linux / macOS users should follow the local DSH installation documentation if the CLI path differs. The package name and profile name remain unchanged. - The DSH ecosystem emphasizes “everything is a plugin”; the community catalog skillhub.cn is an independent site and has no official affiliation with DeepSeek / Hundun.
Closing¶
@hope_phenom/dsh-plugin-notify turns “turn ends → desktop notification” into a standard plugin: it subscribes to session events, ships Python/PowerShell delivery and a complete settings page, reducing dependence on the tray and stdout protocols.