dsh-windows-notify: Windows Desktop Notifications + Context-Aware Alert Sounds + Click to Return to Chat

Introduction

When working with DeepSeek Harness (DSH), conversations and tool rounds can be numerous, making it easy to miss critical state changes in the window. Existing notification solutions either rely on system banners (which don’t support custom styling) or consume too much focus. The dsh-windows-notify plugin launches an independent popup process outside of DSH, rendering a self-drawn dark-themed card in the bottom-right corner to display events, with distinct notification sounds configured for each scenario. The card contains only a single clickable hint line; clicking it brings the DSH window to the foreground and opens the corresponding conversation. The plugin is maintained by fengnowuyu-beep and falls under the client-side plugin category.

Core Features

Six Notification Scenarios

The plugin provides dedicated notification cards and sounds for the following six DSH events:

Scenario Trigger Point Default Sound
Conversation Complete A reply round ends and the Agent returns to idle (the last entry in the session log is turn/end) complete (gentle chime)
Error agent/error / api-session/error (model request or round failure), body includes an error summary error (low-pitched alert)
Awaiting Approval approval/request (a tool operation requires your approval), body includes the tool name and reason approval (calendar bell)
Awaiting Confirmation: Plan Review user-questions/request with intent.kind = 'plan-review' (confirmation to exit plan mode) confirm (light nudge)
Awaiting Answer: Question for You Remaining user-questions/request (ask_user_question); multiple questions show the total count question (email chime)
Account Login Required deepseek-account/model-sign-in-required login (proximity cue)

The card title reads “Hint Type · Conversation Name” (the conversation name is taken from the DSH session title; if no title has been generated yet, it falls back to the first 8 characters of the session ID). The body displays specific content (tool name and reason, error summary, question text, etc.), and no longer shows the session ID or workspace path.

Card Styling & Behavior

  • The card pops up in the bottom-right corner with a dark background, a colored accent bar + rounded badge, rendered via WPF by scripts/notify.ps1.
  • The card is a Windows “tool window” (WS_EX_TOOLWINDOW), so it does not appear in the Alt+Tab switcher list or the taskbar.
  • It does not steal focus on appearance: the window you are currently typing in is not interrupted.
  • Only two areas on the card are clickable: the hint line (jump) and the ✕ in the top-right corner (dismiss); clicks on the title, body, or empty space are inert.
  • The default persistence is “do not dismiss”: the card stays in the bottom-right corner until manually closed, or you can set an auto-dismiss timeout (3–30 seconds) via the slider on the settings page.

Card Stacking & Session Slots

  • Cards from different sessions each occupy their own layer, stacking upward without overlapping each other.
  • A new notification for the same session replaces its previous layer rather than piling up a column of stale notifications.
  • After a lower layer disappears, upper cards automatically drop down to fill the gap; positions are recalculated every 900 ms based on the number of surviving cards below.
  • If a session’s popup process exits abnormally, that session’s slot is automatically reclaimed.

Click to Jump to Conversation

When the card belongs to a specific conversation (except for “Account Login Required”), an additional line reading “Click to jump to this conversation” appears (hand cursor, highlights on hover). Clicking triggers the following chain:

  1. Restore the DSH window and bring it to the foreground (the popup process holds foreground activation rights, allowing it to legitimately activate the host window);
  2. Write a jump request to ~/.dsh/windows-notify/focus.json;
  3. Dismiss the card;
  4. The host receives the request and pushes it to the browser half via SSE; the page then calls DSH’s uiWorkspace.openSession(sessionId) to open the corresponding conversation.

Only this one line triggers the jump; to dismiss the card, click the ✕ in the top-right corner or wait for auto-dismiss.

Spam Prevention

  • Complete: Only one notification per round per session (deduplicated by the turn/end sequence number in the session log), and only sessions that this process actually observed being launched are counted.
  • Error: Only one notification per session within a 30-second window (the model emits an error event on every retry).
  • Awaiting types: Approval / Review / Question / Login each have a 45–60 second cooldown.
  • Sub-agents: Not notified by default (a sub-task may complete many rounds within a single turn); enable “Notify for sub-agents as well” on the settings page to turn this on.

Installation & Enablement

After installing the plugin, you must enable it in DSH and restart:

  1. Open DSH’s Plugin Management page.
  2. In the “Install” input field, enter the absolute path to this plugin’s directory, then install:
   E:\Data\Project\DeepSeekHarness\DSH-Homemade-Plugins\dsh-windows-notify

The plugin manager will invoke pnpm to install and automatically add this package to the profile’s bundles list (no manual package.json editing required).
3. Enable dsh-windows-notify in the plugin list, then restart DSH (or reload as prompted by the plugin page).
4. Go to Settings → Windows Notifications and click the “Test” button on each item to verify appearance and sounds.

System requirements: Windows 10/11 + Windows PowerShell 5.1 (bundled with the OS). On macOS / Linux the plugin will load but will not display popups.

Typical Usage

Once enabled, the plugin automatically monitors DSH events and triggers the corresponding notifications. On the settings page you can:

  • Toggle notifications for each scenario individually;
  • Change the notification sound for each scenario (6 built-in + 17 system sounds + mute);
  • Preview a sound (audio only, no card popup);
  • Test the notification appearance (actually renders a card so you can see the look and hear the sound).

Use Cases & Notes

Ideal for DSH usage scenarios that require explicit alerts and frequent window switching, such as long-running Agents, multi-session parallel work, and workflows requiring human approval or confirmation.

Notes:

  • The plugin runs with the same privileges as the current dsh process; review the source code and license before installing.
  • Cards only pop up on Windows 10/11 + PowerShell 5.1; on macOS / Linux they will not appear, but the plugin will still load.
  • After installation, confirm that the profile points to a symlink to this directory rather than a copy, otherwise code changes will not take effect.

Outro

dsh-windows-notify provides DSH with non-intrusive desktop notifications and click-to-jump capability through self-drawn cards and an independent popup process. For more details, see the plugin’s directory page and the GitHub repository.

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

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

Xiaoye