dsh-windows-notifier: Pop up Windows native notifications when DSH session needs you

Introduction

When running agents in DSH (DeepSeek Harness), tasks often continue to execute in the background: a turn finishes, it asks you a question, or a tool call awaits your approval. If the window isn’t in the foreground, it’s easy to miss these moments where “control is returned to you,” forcing you to repeatedly switch back to the browser or keep an eye on the terminal.

A common approach is manual polling of the session list or relying on built-in reminders from desktop apps—but DSH’s plugin model allows hooking a listener into the host layer to convert in-process events into system notifications. Below is an introduction to the community plugin dsh-windows-notifier (maintainer: ADkun, Category: Client): it monitors relevant events across the entire DSH process on Windows, alerts you via system Toasts, and supports clicking the notification to open the DSH Web GUI.

What is this

dsh-windows-notifier is a Windows-native notification plugin for DSH: it pops up a Windows system notification whenever any conversation returns control to you. It listens for events across the entire DSH process, so you will be notified even for conversations running in the background without having to constantly watch a specific session window.

When it notifies

The plugin determines the title and body based on events dispatched by DSH. The first line of the notification body is the conversation title (taken from the DSH session title; falls back to the working directory name if the title hasn’t been generated yet), and the second line is a status description or specific content (question, tool name, error message, runtime duration, etc.).

Scenario Notification Title Trigger Event
Task completed, ready to continue conversation Conversation Completed agent/status → idle
Agent asks you a question (ask_user_question) Your Input Needed user-questions/request
An action is awaiting your approval Approval Needed approval/request
An error occurred in a step/turn Conversation Error agent/error
Current turn was aborted (optional, off by default) Turn Aborted agent/status + turn/end: aborted

Multi-agent & Background Delegation: With waitForSubagents enabled by default, the dispatcher will not falsely report “Conversation Completed” while sub-agents are still running; a completion notification is only sent after all sub-agents have finished. By default, it does not pop up a completion notification for “turn finished” in sub-agent/workflow sub-sessions (to avoid notification spam); however, sub-sessions will still notify if they require questions, approvals, or report errors. If you also want to listen for the end of sub-sessions, you can enable includeSubagents in the configuration.

Clicking the Notification: Can open the DSH Web GUI (automatically reads the current Web service port, or can be specified via launchUrl). The GUI currently does not have session-level routing, so clicking it opens the homepage.

How it works (Briefly)

The DSH process host composition mounts the plugin line dsh-windows-notifier. The plugin observes two channels simultaneously:

  1. internal/dispatch —— Publishes dispatches before scope filtering. Using { global: true } allows seeing events from all scopes, making it a reliable entry point for monitoring any conversation (including background ones).
  2. Direct Listeners for agent/status, user-questions/request, approval/request, agent/error —— A fallback mechanism.

Both channels deduplicate the same payload using a WeakSet to avoid duplicate notifications. The actual pop-up is handled by a short-lived powershell.exe calling scripts/toast.ps1, displaying the Toast via WinRT Windows.UI.Notifications; there are no additional npm dependencies, and it does not block the Q&A/approval waterfall chain.

Installation and Activation

DSH loads third-party packages via cordis.yml and profile plugin dependencies. Since version 0.2.0, the package includes a bundle patch; once installed and selected, it automatically inserts the plugin line id: windows-notifier, name: dsh-windows-notifier into the profile, so you generally do not need to write this line manually.

Note: The desktop profile cannot be managed via the CLI dsh plugin command (it is exclusively managed by the Electron app); please install/upgrade via the Desktop Plugin Market. Installing the package is not the same as selecting it: if the dependency is installed but the package is not in dsh.profile.bundles, the plugin will not take effect.

Syncing from this repository to a profile (README tested path)

Run the following in the root directory of the cloned or extracted repository:

# Default: Install into every profile that has a package.json
powershell -NoProfile -File scripts\sync-to-profile.ps1

# Install into a specific profile only
powershell -NoProfile -File scripts\sync-to-profile.ps1 -Profile web

The script will npm pack to generate a tarball and run dsh plugin --profile <profile> add "file:<absolute path to tgz>" for each target profile, verifying that dsh.profile.bundles contains dsh-windows-notifier.

Installing from GitHub to a specific profile

Example format provided in the README (Backend is pnpm, requires pnpm on PATH):

dsh plugin --profile web add github:ADkun/dsh-windows-notifier

After installation, you need to restart the DSH process (or follow your profile’s loading method) for the host to re-import the plugin. Changes to code within src/ also require a restart; profiles with patchReload: live support hot-reloading for config: changes.

Do not write the plugin line into the machine-level $DSH_HOME\cordis.patch.yml. This layer is applied after individual profile patches and may overwrite configurations you saved in the UI, causing the Host to refuse saving (with a prompt indicating the config was overwritten by the home patch).

Configuration (Optional)

You do not need to write config: in the line itself; schema default values for each switch are in src/settings.js. Per-profile configuration is written in $DSH_HOME\profiles\<profile>\cordis.patch.yml, for example:

- id: windows-notifier
  name: 'dsh-windows-notifier'
  config:
    logFile: 'D:\dsh\dsh-windows-notifier\.dsh-windows-notifier.log'

The README also mentions items like launchUrl, waitForSubagents, includeSubagents; please refer to the settings/schema within the repository for specific default values and descriptions.

Typical Usage

  1. Install and confirm the bundle is selected in the target profile (e.g., web) as described above, then restart DSH.
  2. Use DSH as usual on Windows: system notifications should appear when foreground or background sessions require input, approval, completion, or encounter errors.
  3. To verify the Toast chain, a script is provided in the package (see scripts.toast in package.json):
npm run toast

(Execute in the plugin package directory; equivalent to node scripts/send-test-toast.mjs.)

Use Cases and Caveats

Who it’s for: Users running DSH on Windows who often let agents run long tasks in the background; developers who prefer system notifications over constantly watching the Web interface.

Environment Limitations: Windows only (depends on PowerShell and WinRT Toast). Linux/macOS users should choose other client-type plugins or solutions.

Security and Trust: The plugin runs with the permissions of the current dsh process and can read in-process session events and launch PowerShell to pop notifications. Please read the MIT License and the source code before installing, and only install from trusted sources. The community directory SkillHub has no official affiliation with DeepSeek / High-Flyer and is an independent inclusion in the “everything is a plugin” community ecosystem.

Conclusion

dsh-windows-notifier unifies several types of events in DSH where “you need to come back” into Windows-native notifications, while also handling false positive suppression under background sessions and multi-agent delegation. If you run DSH on Windows, it is worth adding to your profile and giving it a try.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye