dsh-desktop-notifications: Native Windows Notifications for DeepSeek Harness

Introduction

DeepSeek Harness (DSH) adopts an “everything is a plugin” design philosophy, allowing users to run sessions in the background. When a session requires human intervention (e.g., approval, answering questions) or encounters an error, critical information can easily be overlooked if the terminal window is not pinned.

The dsh-desktop-notifications plugin aims to solve this problem. It provides native Toast notifications for DSH on the Windows platform, ensuring you never miss important events.

Plugin Positioning

This is a Windows desktop notification plugin designed to handle various background events of DeepSeek Harness (dsh). Maintained by developer FANLS05 and licensed under MIT.

It addresses the issue of being unable to perceive “Approval Requests,” “User Questions,” “Run Completion,” or “Error Prompts” in real-time when running DSH in the background.

Core Features

The plugin offers the following core capabilities:

  1. Event Coverage
    Supports native notifications for five core scenarios: Approval Requests, User Questions, Run Completion, Execution Errors, and Login Expiration prompts.
  2. Conversation Name Priority
    The first line of the notification is fixed as the session title (retrieved from the session log). When multiple sessions are running simultaneously, you can quickly distinguish the source by the title.
  3. Instant Response
    For “Approval” and “Question” events, notifications are triggered the moment the request arrives. A delay can be added via configuration if needed.
  4. Markdown Immunity
    Notification text automatically strips Markdown emphasis markers (e.g., **), code spans, and link syntax, retaining only plain text to ensure a clean display.
  5. Audit Logging
    Every notification sent is recorded in the ~/.dsh/dsh-desktop-notifications.log file, making it easy to troubleshoot why a specific notification did not appear.
  6. No Hard Dependencies
    The plugin relies on no complex build tools or native modules; it runs using purely ESM modules and a PowerShell script.

Installation and Activation

Ensure your DSH has a desktop profile enabled and that your environment includes Node 20+.

The installation command is as follows:

dsh plugin --profile desktop add github:FANLS05/dsh-desktop-notifications

After installation, find the dsh-desktop-notifications entry in DSH’s plugin manager and ensure it is enabled.

Configuration

The plugin supports configuration via config files or the GUI.

1. Via Config File

Edit your desktop profile file (usually ~/.dsh/profiles/desktop/cordis.patch.yml) and add a config block under the desktop-notifications entry:

- id: desktop-notifications
  config:
    notifySubagent: true     # Notify when subagent ends
    notifyWorkflow: true     # Notify when workflow ends
    sound: false             # Turn off notification sound
    stripMarkdown: false     # Keep Markdown as is (default is auto-cleanup)
    approvalDelayMs: 1500    # Approval delay 1500ms
    questionDelayMs: 1500    # Question delay 1500ms
    notifyOnMount: true      # Send a check notification on startup

2. Via GUI

Open Settings → Plugins, expand the dsh-desktop-notifications package, and click the configuration button for the desktop-notifications entry to modify the above options in the form.

Notes

  1. Windows Only: This plugin is supported on the Windows platform only.
  2. Process Dependency: The DSH desktop process is an Electron tool process and lacks a built-in Notification API. The plugin must spawn a PowerShell subprocess to publish notifications.
  3. Language Limitation: Currently, the second line of text in the notification is in Chinese (matching the author’s UI language).
  4. Environment Requirements: Requires DSH to have a desktop profile configured and an environment with Node 20+.

Summary

dsh-desktop-notifications is a practical tool for background development with DSH on Windows. It leverages the native Windows Toast mechanism to clearly present conversation names, event types, and error information in the bottom right corner of the desktop.

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

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

Xiaoye