dsh-windows-notify: Turning DSH session events into clickable native toast notifications on Windows that bring you back

Introduction

When running long tasks, waiting for approvals, or responding to structured questions in DeepSeek Harness (DSH), you often aren’t staring at the interface constantly. While system notifications can alert you that it’s “time to come back,” their value is significantly diminished if clicking them only opens the app without switching to the specific conversation. The dsh:// deep link in the desktop version of DSH is primarily used for window focus and does not inherently carry session parameters; many notification solutions face similar limitations in browser scenarios.

Here, we introduce the community plugin dsh-windows-notify (maintainer yschdxm). It utilizes native Windows Toasts to cover common conversation events and implements a closed loop of “Click notification → Focus Harness → Jump to that conversation.” The plugin is categorized as a client, with the current npm package version 2.0.1, and is open-source (MIT) on the GitHub repository yschdxm/dsh-windows-notify.

What is this

dsh-windows-notify is a standard DSH bundle: the Host side listens for conversation and account events and triggers Windows Toasts, while the Client side polls for pending navigation requests within the Web GUI and calls openSession. The implementation relies on Windows’ built-in PowerShell 5.1 and WinRT. The README explicitly states there are no npm runtime dependencies and no third-party binaries.

In short: Native Windows notifications + Click to return to the corresponding conversation (Supported for both the desktop app and the Web GUI in a browser).

How to locate the conversation after clicking a notification

The README uses a flowchart to illustrate the plugin’s self-built navigation chain, avoiding the “focus only, no conversation switch” issue:

Toast Click
  └─ Windows Protocol dshfocus://focus?u=<focus-url>
       ├─ launcher.ps1  GET  <-  host /plugins/dsh-windows-notify/focus?session=<id>&t=<token>
       │                       (Records pending navigation request, valid for 5 minutes)
       └─ Start-Process 'dsh://open'  → Focus/Restore Desktop App
                                              │
  client.js (In-page) polls /pending ◄──────────┘
       └─ ctx.get('uiWorkspace').openSession(sessionId)   ← Actually switches to that conversation

Key behaviors (all from the README):

  • Desktop App is open: Focuses the window and switches the conversation.
  • App is minimized or in the tray: dsh://open restores and focuses it, then switches the conversation.
  • App is not running: Clicking starts the App; the pending navigation request is retained for 5 minutes and automatically triggers navigation after the page loads.
  • Pure browser (Web GUI): The Client side uses the relative path /plugins/..., which is equally effective.

The config option openOnClick: false disables click navigation, retaining only standard notifications.

Core Features

Notification Form and Identity

  • Native Windows Toast: PowerShell 5.1 + WinRT.
  • Notification Identity: Prioritizes the application AUMID com.deepseek.dsh; the notification title displays as “DeepSeek Harness” with the app icon. Falls back to PowerShell’s AUMID if unavailable (at which point it may display as Windows PowerShell; the README explains this in the troubleshooting section).

Covered Events

Trigger scenarios listed in the README include:

  • Conversations: Task completion, errors, output limits, manual stop, interruption, blockage.
  • Interactions: Approval waiting; structured questions (including plan confirmation).
  • Account: Login required, login expired; conversation-level errors.

Noise Reduction and Deduplication

  • Silence on Target Continuation: No disturbance during automatic goal continuation; alerts only when the goal completes or is blocked.
  • Subagent Muting: Filters by origin === 'subagent' / delegationDepth > 0; top-level conversations forked from others still trigger notifications (default notifySubagentTurns: false).
  • Deduplication: Only pops up once for the same conversation and reason within 2 seconds.

Observability

  • Toasts output toast shown only when Show() succeeds; failures are written to %TEMP%\dsh-windows-notify\notify.log with a console warning.
  • Startup self-checks toast.ps1, launcher.ps1, powershell.exe; channel status can be viewed via GET http://127.0.0.1:<port>/plugins/dsh-windows-notify/health (loopback only).

Optional configurations: Silent (silent), body length (maxBodyChars, default 260), debug logging (debug), etc. See the configuration section below.

Installation and Activation

The plugin is installed via DSH’s dsh plugin add. The README provides three methods, with npm being the recommended path:

# Method 0 (Recommended): Install from npm official source
dsh plugin --profile <profile> add @yschdxm/dsh-windows-notify

# Method 1: Plugin Manager (GUI) → Install bundle → Select repository directory
# Method 2: Install from GitHub via command line
dsh plugin --profile <profile> add github:yschdxm/dsh-windows-notify

For local link development, clone the repository and execute dsh plugin --profile <profile> add link:<local-path> (The README example path is link:F:/dev/dsh-windows-notify).

After installation, it is recommended to restart the Harness once (Desktop version: select “Restart App and Host,” or quit and reopen); the Client side takes effect on the next page load.

Environment and Compatibility (from README):

  • Test Environment: DeepSeek Harness Desktop 0.2.1-rc.2, Windows 11 26100, Node 24.
  • package.json requires Node >=20, DSH >=0.2.1-rc.1 <0.3.0.
  • Supports Windows 10/11 built-in Windows PowerShell 5.1.

The plugin runs with the current DSH process privileges; you can review the source code and MIT license on GitHub before installation to assess whether to include it in your profile.

Configuration

Override settings by row ID in the profile’s cordis.patch.yml (or any post-patch layer); omitted fields use default values:

- id: dsh-windows-notify
  config:
    appId: com.deepseek.dsh   # AppUserModelID for Toast attribution
    silent: false             # true = Silent mode
    notifyTurnEnd: true
    notifySubagentTurns: false
    notifyErrors: true
    notifyApproval: true
    notifyQuestions: true
    notifySignIn: true
    openOnClick: true         # false = Disable click navigation (Standard notification only)
    protocol: dshfocus        # Custom protocol used for clicks
    maxBodyChars: 260
    log: true                 # Writes to %TEMP%\dsh-windows-notify\notify.log
    debug: false              # Logs every conversation event and notification success

Typical usage requires no extra commands: after installing the bundle and restarting the Harness, simply running conversations in the background will trigger Toasts for corresponding events. If you prefer less disturbance, set silent: true or disable specific notify* switches as needed.

Diagnostics and Troubleshooting

File/Entry Purpose
%TEMP%\dsh-windows-notify\notify.log Startup self-checks, channel status, notification failures, focus request/consumption records (JSON lines)
%TEMP%\dsh-windows-notify\launcher.log Protocol parsing after click, host requests, focus method (app/browser)
GET http://127.0.0.1:<port>/plugins/dsh-windows-notify/health Channel status, port, pending navigation count (Loopback only)

Summary of FAQs from the README:

  1. No popup: Windows Settings → System → Notifications, ensure “DeepSeek Harness” allows notifications and Do Not Disturb is off; check toast-failed in notify.log.
  2. Click does nothing: Check if HKCU\Software\Classes\dshfocus points to this plugin’s launcher.ps1; check launcher.log.
  3. Only focuses, doesn’t switch conversation: Ensure the Client side has loaded (restart Harness) and check for focus-consumed in notify.log.
  4. Notification shows as Windows PowerShell: The fallback branch was triggered; check if the application shortcut for com.deepseek.dsh exists.

To uninstall, aside from removing the bundle in plugin_manager, clean up the protocol registration as per the README:

Remove-Item 'HKCU:\Software\Classes\dshfocus' -Recurse -Force

Use Cases and Notes

Suitable for developers using the DSH desktop version or browser Web GUI on Windows 10/11 who want system Toast reminders for events like conversation end, approvals, questions, and login status changes, with one-click return to the corresponding conversation.

Points to note:

  • Windows platform only; relies on local PowerShell 5.1 and the plugin HTTP route provided by the Harness Host.
  • The custom protocol dshfocus writes to the current user’s registry (HKCU); cleanup according to documentation is required upon uninstallation.
  • The DSH ecosystem emphasizes “Everything is a plugin”; the community directory SkillHub Plugin Page is an independent site and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

If you frequently run DSH tasks on Windows, dsh-windows-notify binds “reminders” and “returning to the correct conversation” into a single click path, offering comprehensive configuration and logging entries. For further information, visit the SkillHub Directory Page and the GitHub Repository.

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

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

Xiaoye