Introduction¶
When running DeepSeek Harness (DSH) on the Windows desktop, the native Windows Toast notifications have fixed shortcomings: they automatically collapse into the Notification Center after a few seconds, clicking them fails to restore an already-running DSH window, and notifications must be re-sent repeatedly to remain visible, causing flickering and a fragmented experience. The dsh-notify plugin bypasses these limitations by using an always-on-top WinForms window that never auto-dismisses and never steals focus to host notifications, keeping statuses like task completion, authorization requests, and waiting-for-input always visible until you act on them.
What It Is¶
dsh-notify is a client-side plugin for the DSH desktop client, published by maintainer jklin6632-dot. It displays DSH’s key statuses in a persistent card pinned to the bottom-right corner: end of a conversation turn, a tool requesting authorization, and an Agent waiting for user input. The card stays on screen until you click it or switch back to the DSH window.
Core Features¶
- Persistent display: Does not auto-close by default (
autoCloseMs: 0), does not pop up repeatedly, does not wander around, and is not collapsed into the Notification Center by the system. - Click to return to DSH: Clicking the card body brings the DSH window to the foreground, then the card auto-closes within 1 second.
- Close button: Clicking the ✕ in the top-right corner dismisses only the card without changing window focus.
- Clear on focus: Once DSH gains focus is detected, the card closes within 1 second.
- Foreground suppression: When
skipWhenFocused: true, no new card is shown if DSH is already in the foreground. - Single-card queue: When a new notification arrives, the old card is dismissed rather than stacking multiple cards.
- Non-activating: The window uses
WS_EX_NOACTIVATEandShowWithoutActivation, so it won’t interrupt what you’re typing.
Installation & Enablement¶
The plugin requires the DSH desktop version and PowerShell 5.1 (bundled with Windows). There are two installation methods.
Plugin Manager (Recommended)¶
- Clone or copy the plugin directory to a fixed location, e.g.
D:\plugins\dsh-notify. - In DSH: Plugins → Install Local Plugin, and select that folder.
- Restart DSH. The plugin’s main module is imported only once at startup; hot reloading is not supported.
Manual Installation (Junction Link)¶
$src = "D:\plugins\dsh-notify"
$dst = "$env:USERPROFILE\.dsh\profiles\desktop\node_modules\dsh-notify"
New-Item -ItemType Junction -Path $dst -Target $src -Force
Then add "dsh-notify" to dsh.profile.bundles in %USERPROFILE%\.dsh\profiles\desktop\package.json, and restart DSH.
Configuration¶
Edit the config: block in cordis.patch.yml, then restart DSH. Available configuration options:
| Option | Default | Description |
|---|---|---|
enabled |
true |
Master switch |
onTurnEnd |
true |
Notify when a conversation turn ends |
onApproval |
true |
Notify when a tool requests authorization |
onQuestion |
true |
Notify when the Agent calls ask_user_question |
muteSubagents |
true |
Suppress turn-end notifications from subagents |
skipWhenFocused |
true |
Do not show a new card when DSH is in the foreground |
notifyOnLoad |
true |
Show a “Notifications enabled” card on startup |
minIntervalMs |
1200 |
Minimum interval between cards (prevents spam) |
autoCloseMs |
0 |
Auto-close delay; 0 means stay until manually dismissed |
appPattern |
'*DeepSeek*' |
Process-name pattern for detecting whether DSH is in the foreground |
If the DSH desktop process name differs from the default DeepSeek, you can change the match pattern via appPattern. It supports PowerShell’s -like syntax, e.g. '*Harness*' or 'electron*'.
How It Works¶
The plugin consists of two main parts:
index.js: The Host module, which listens to DSH’ssession/eventevents:turn/end: A turn has ended. The card displays “Task complete,” appending a suffix if the end reason contains “error” or “cancelled.”approval/asked: A tool is requesting authorization. The card displays “Authorization required” along with the tool name.tool/callwithask_user_question: The Agent is waiting for a response. The card displays “Waiting for your answer.”-
turn/start: User return is detected; the card is immediately removed.
The plugin trackssubagent/start/subagent/endto suppress subagent turn-end notifications, then passes the title and content topopup.ps1via environment variables. -
popup.ps1: Responsible for creating the window. It creates a borderless, topmost, non-activating WinForms window anchored to the bottom-right corner (380×104, dark theme). The window has a 1-second timer that auto-closes it if DSH gains focus; clicking the card invokes a Windows API call to restore the DSH window, then dismisses the card.
Applicability & Notes¶
- Windows platform only; the card depends on PowerShell and WinForms.
- If the system script execution policy restricts PowerShell, the card will not launch.
- Changes to the Host code require a DSH restart to take effect.
- The plugin runs with the privileges of the current DSH process. It is recommended to review the source code and license before installing.
Summary¶
dsh-notify addresses the notification experience issue of DSH on Windows. It uses a controllable, persistent notification card to keep key statuses always visible—uninterrupted by focus changes and not swallowed by the system. After installation, you can fine-tune which scenarios trigger notifications, whether to suppress them when DSH is in the foreground, and how they integrate with your existing workflow.