DeepSeek Harness Native Windows Notifications Plugin

Introduction

DeepSeek Harness (DSH) runs in the browser. When a conversation turn ends or the agent is waiting for user input, developers need to switch windows to check results or make selections. During multi-task switching, this frequent window switching interrupts the workflow. Local notifications can alert you to state changes in advance, allowing you to complete interactions in the current window.

Below is an introduction to a plugin that displays native pop-up notifications in the Windows Notification Center. It sends a notification when DSH completes a turn, awaits a selection, or waits for tool confirmation. Clicking the notification automatically brings the window to the front and scrolls to the relevant position.

Plugin Overview

huihui3488/dsh-native-toast is a DeepSeek Harness client plugin that provides Windows Notification Center (Toast) functionality. It triggers notifications via agent/turn-stopping, user-questions/request, and approval/request events, supports click-to-navigate and customizable messages. It does not rely on Electron’s Notification API but instead uses PowerShell rendering.

Core Features

Notification Timing

The plugin listens for three events, displaying different default titles for each:

Event Default Title
agent/turn-stopping (turn ended) Task Completed!
user-questions/request (selection needed) Your Selection is Needed
approval/request (confirmation needed) Your Confirmation is Needed

Click Behavior

After clicking the notification, the plugin performs different actions based on the window state:

  • Window is open and visible: brings the window to the front without changing its size or position
  • Another session is open: switches to the corresponding session and scrolls to the target position
  • Window is minimized or hidden: restores and focuses the window, preserving its previous maximized/normal state; launches the app if it is not running
  • Turn ended: scrolls the conversation so the beginning of the latest assistant output is positioned 24 px below the top
  • Selection or confirmation needed: scrolls to the question and focuses the first option, making it the next response

Implementation

The plugin implements click-to-navigate by registering a user-level URL protocol dsh-native-toast:. When enabled, the protocol handler points to powershell/activate.ps1, which writes click information to %TEMP%\dsh-native-toast-click.json. DSH’s Host process monitors this file, and the plugin client polls the local route /api/dsh-native-toast/{pending,report,click,status} to read clicks and execute scrolling.

Deduplication & Throttling

  • Identical content is not re-triggered within dedupeMs milliseconds (default 1500 ms)
  • Consecutive notifications are spaced at least minGapMs milliseconds apart (default 900 ms)
  • Sub-sessions are silent by default; enable notifications via includeSubagents
  • Aborted turns do not trigger completion notifications

Installation & Activation

Run the following command in the terminal to install the plugin:

dsh plugin --profile <profile> add github:huihui3488/dsh-native-toast

Or via the DeepSeek Harness Desktop app: go to “Plugins → Add plugin”, select “Plugins → Add plugin”, and add the plugin directory.

Windows platform: On other platforms, the plugin will activate after installation but will not take effect. Each release also includes a dsh-native-toast-<version>.tgz package for offline installation or version pinning.

Configuration Options

Go to “Plugins → Desktop toast notifications → Configure” or edit the following fields via a configuration patch:

Field Default Description
enabled true Master toggle
onComplete true Notify when a turn ends
completeTitle / completeBody Task Completed! / DeepSeek Harness Completion notification title and body
onQuestion / questionTitle true / Your Selection is Needed Selection notification toggle and title
onApproval / approvalTitle true / Your Confirmation is Needed Confirmation notification toggle and title
includeSubagents false Whether to notify on sub-sessions
appId com.deepseek.dsh AppUserModelID for notification attribution
showLogo / logoPath true / empty Whether to show the DS logo or a custom image
playSound true Play the system notification sound
dedupeMs / minGapMs 1500 / 900 Deduplication window and minimum gap
powershellPath empty Custom powershell.exe path
debugLog false Whether to write each notification to %TEMP%\dsh-native-toast.log
clickToFocus true Whether clicking the notification focuses and scrolls

Preview Notification (Without Real Events)

To preview a notification without waiting for a real event, use the PowerShell script:

powershell.exe -NoProfile -File "<plugin dir>\powershell\toast.ps1" -Title "Task Completed!" -Body "DeepSeek Harness"

Available parameters: -Icon <absolute path>, -AppId <AUMID>, -Sound silent, -Duration long.

Limitations & Notes

  • Windows platform only. Users must keep app notifications enabled and must not be in “Focus Assist” or “Do Not Disturb” mode.
  • Notification attribution to DeepSeek Harness requires that the desktop installer has created a com.deepseek.dsh shortcut in the “Start Menu”; otherwise it falls back to Windows PowerShell.
  • Clicking the notification requires the Web GUI page to be open and the Desktop Shell to have window ownership; a pure CLI Session has no window and cannot be focused.
  • Click actions expire after 30 seconds.
  • Global always-on-top windows from other applications may continue to overlay this application’s window, even if it has been brought to the front.
  • Each notification spawns a PowerShell process (~0.3–0.6 seconds), executed via wscript.exe running powershell/hidden.vbs with no console window appearing. The low notification frequency does not impact the turn experience.

Ecosystem Context

DeepSeek Harness adopts an “everything is a plugin” philosophy, extending functionality through the Cordis framework. This plugin’s directory page and GitHub repository are maintained by the community and have no official affiliation with DeepSeek / High-Flyer.

Conclusion

This plugin integrates the Windows Notification Center with DeepSeek Harness, providing native pop-up alerts when key events occur. Clicking a notification jumps directly to the corresponding session. It is ideal for developers who need to frequently check and respond to DSH status in a local desktop environment.

  • Plugin directory page: https://www.skillhub.cn/plugins/huihui3488/dsh-native-toast
  • GitHub repository: https://github.com/huihui3488/dsh-native-toast
羽毛球分组比赛记分
小程序二维码

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

Xiaoye