dsh-windows-notify: Push DSH Pending Confirmation, Answered, and Task Completion to System Notifications on Windows

Introduction

When running agents with DSH, authorization confirmations, ask_user_question prompts, and the end of a task turn often occur in the background. If the window is obscured by other applications, these can easily be missed. While email and chat software have system notifications, DSH sessions typically lack desktop alerts of the same caliber. This article introduces the community plugin dsh-windows-notify (maintainer 3493750852), which converts three types of key milestones into system tray notifications on Windows and supports clicking to return to the DSH window.

What is this

dsh-windows-notify is a Host-only plugin for DSH: it is installed solely on the host side, has no frontend interface, requires no network connection, and carries no additional dependencies. It listens to DSH waterfall events and invokes Windows notifications when user action is required or when a task turn ends; it does not alter the decision logic for authorization or Q&A.

In terms of classification, it is a client-side plugin. The current GitHub star count is 0; the npm package version is 1.0.2, licensed under MIT (see package.json in the repository).

Core Features

When notifications pop up

Notification you see Trigger Timing Event Source
Action Required A tool is requesting authorization and is waiting for your click approval/request
Answer Required The model asked an ask_user_question and is waiting for your selection user-questions/request
Answered You clicked allow/deny, or finished selecting options When the above two requests return
Task Complete / Task Error The current turn ended, and the turn exceeded taskEndMinSeconds turn/end + agent/error from session/event

To avoid disturbance, the README outlines several rules, for example: if a request is automatically handled by the host within interactionDelayMs (default 1.2 seconds), no notification is issued; turns shorter than taskEndMinSeconds (default 8 seconds) do not trigger a task end notification; subagent turns do not trigger notifications by default; and pending requests prevent the event from being treated as a task end.

Notification Appearance and Click Behavior

On Windows 10/11, these appear as standard system notifications featuring the DSH application icon (resolved from the running DeepSeek Harness.exe, consistent with the taskbar), title, body, and an optional system chime. Example text includes “Action Required / Bash: Executing command npm install” and “Task Complete / … · Duration 2 min 13 sec”.

Clicking the notification brings the DSH window to the foreground (restoring it if minimized); this is implemented via the desktop shell’s single-instance lock and the application’s own focus entry point. The notification remains clickable on screen and in the Notification Center for approximately 8 seconds (related to dwellSeconds); afterwards, the process responsible for receiving clicks has exited. If only the browser Web GUI is used without the desktop application, it falls back to opening the GUI address in the browser. This can be changed to url or none via clickAction.

The icon and click target are resolved from the running process, rather than hardcoding installation paths. Since the DSH Web UI lacks a session-level URL, clicking cannot navigate directly to a specific background session; task completion notifications may include the session title for reference.

Installation and Activation

In a DSH session, instruct the agent to use install_bundle from plugin_manager with the package name dsh-windows-notify. This installs from npm into the current profile and configures the necessary lines. You can also install it manually and then use install_bundle pointing to the package name to enable it:

npm install dsh-windows-notify

From Source

  1. Place the repository in any local directory (the README example uses git clone from the GitHub address).
  2. Instruct the agent to use install_bundle to install the absolute path of that directory.
  3. Verify: Send any message; you should receive a “Task Complete” notification when the turn ends; clicking it should return to the DSH window.

The plugin runs with the permissions of the current DSH process; it is recommended to review the repository source code and MIT license before installation.

Configuration

The toggles are located under config for the corresponding plugin line in cordis.patch.yml (or you can modify the same keys in the DSH configuration). Restart DSH to apply changes. Common options are as follows (see README for the full table):

Key Default Description
enabled true Master switch
confirm true Notify when confirmation/answer is needed
answered true Notify after you answer
taskEnd true Notify when task ends
taskError true Notify when task ends with error
sound true Play system chime
language zh Text language, zh or en
taskEndMinSeconds 8 Do not notify if duration is shorter than this
interactionDelayMs 1200 Only count as “truly waiting” if pending longer than this
hideWhenSubagent true Do not notify on subagent end
clickAction focus focus / url / none
selfTest false Change to true and reload plugin to immediately trigger a self-test notification
debug false Write decision process to %TEMP%\dsh-windows-notify.log

Typical Usage and Self-Test

No separate “API call” is needed after installation: simply run a normal DSH session. System notifications will pop up according to your configuration when confirmation is needed, selection is required, you finish answering, or a long task ends/errors.

If you do not receive notifications, the README suggests first setting selfTest to true and reloading the plugin. If the issue persists, enable debug to check the log and see if the PowerShell shim ran successfully for the full duration. You can also manually test a notification by calling notify.ps1 via PowerShell in the plugin directory (the payload is base64-encoded UTF-8 JSON); an exit code of 0 indicates the process is normal.

Applicable Scenarios and Notes

  • Suitable for: Long-term use of the DSH desktop application or Web GUI on Windows, where you want to receive to-do reminders even when switching to other windows, and return to DSH with one click.
  • Not suitable for: Non-Windows environments (the plugin supports Windows only); expecting deep links to specific sessions via notifications (session-level URLs are currently not supported).
  • Permissions & Security: The plugin does not connect to the network, but it launches an independent PowerShell process to display notifications; please read the GitHub repository source code before installing. The DSH community plugin directory is an independent site and has no official affiliation with DeepSeek / Hithink RoyalFlush.

Conclusion

dsh-windows-notify maps “Waiting for confirmation,” “Waiting for answer,” “Answered,” and “Task end/error” within DSH to Windows system notifications, while minimizing disturbance through deduplication, minimum duration thresholds, and subagent filtering. Directory page: skillhub.cn/plugins/3493750852/dsh-windows-notify; Source code and full configuration instructions: github.com/3493750852/dsh-windows-notify.

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

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

Xiaoye