dsh-notify: Native Windows Notifications for DSH Task Completion

Introduction

When running long tasks in DeepSeek Harness (DSH), it’s common to minimize the window and work on other things. If you rely solely on watching the interface, it’s hard to know whether the agent is still running through multiple turns, has stopped waiting for you, or the entire job has already finished. The community has practices like “notify on every turn end,” but when goal mode is enabled, a single goal often spans many turns—receiving a notification after each turn just forces you to turn notifications off.

Below we introduce the client plugin dsh-notify by maintainer ztl0001 (market package name dsh-notify-toast). It pops native system toasts in the Windows notification center and is designed to distinguish between “a turn has ended” and “the task is truly done,” striving for one notification per completed thing.

What This Is

dsh-notify is a Cordis plugin for DSH: it watches the host session and agent state, calls the WinRT toast API at the right moments, and pushes the session title, result status, and a summary of the last reply to the Windows notification center.

Differences from Other “Notify on Turn End” Approaches

In DSH, “a turn has ended” is not equivalent to “the task is done.” The plugin combines two types of signals:

Signal Description Problem when used alone
turn/end in session/event Carries the end reason (completed, error, cancelled, etc.) Too noisy to notify every turn under multi-turn goals
idle in agent/status Nothing is driving the agent Doesn’t tell you how it ended

Approach: At turn end, only record the result; when the agent enters idle, wait through settleDelayMs to confirm it isn’t immediately continuing before sending a notification. When a goal is active, intermediate turns stay quiet—only notify once when the goal completes or blocks; the exception is when the agent stops waiting for a human (asking a question, blocking, erroring)—in that case it’s worth interrupting you.

Scheduling is attached to turn/end (the event that defines the result), while idle and running are used to filter and cancel pending notifications, avoiding the case where notifications never get scheduled because the host “reports idle first, then submits turn end.”

Core Features

  • Native Windows notifications without depending on third-party modules like BurntToast; popups are provided by the system’s built-in powershell.exe (Windows PowerShell 5.1).
  • Notification content can include the session title, a status derived from the end reason, and a configurable reply summary (includeSummary, summaryLimit).
  • notifyOn supports every-turn (with a goal active, still only notifies when the whole goal ends or attention is needed), attention (only when the agent stops for a human), never.
  • onlyMainSessions defaults to not notifying on subagent sessions.
  • sound can select a prompt tone by result, be silent, or specify a WinRT toast sound name.

Installation and Enablement

Run in the terminal (replace <your profile> with the actual profile name):

dsh plugin --profile <your profile> add dsh-notify-toast

You can also search for dsh-notify in DSH Settings → Plugin Market for one-click installation.

After installation, configure it in Settings → Plugins, or write it into the profile’s cordis.patch.yml, for example:

- id: dsh-notify
  name: 'dsh-notify-toast'
  config:
    notifyOn: every-turn
    onlyMainSessions: true
    settleDelayMs: 400
    includeSummary: true
    includeCwd: false
    summaryLimit: 220
    sound: kind

Configuration Options

Option Default Description
enabled true Master switch
notifyOn every-turn Notification policy (see above)
onlyMainSessions true Don’t notify on subagent sessions
settleDelayMs 400 Milliseconds to wait after entering idle, to merge consecutive turns
includeSummary true Whether to include title and reply summary
includeCwd false Whether to include the working directory
summaryLimit 220 Max characters in the body
sound kind kind / silent or a specific WinRT toast sound name
appId empty Optional AppUserModelID; falls back to DSH_APP_USER_MODEL_ID etc. when empty
debug false Write the decision process to host logs; enable when troubleshooting “should have notified but didn’t”

Environment Requirements

  • Windows (WinRT toast).
  • Node: ^22.19.0 || >=24.0.0 (consistent with engines in package.json).
  • When notifications don’t appear, common causes are Focus Assist, Do Not Disturb mode, or system notifications being turned off; logs will contain records with the dsh-notify: prefix.

Typical Usage and Troubleshooting

  1. After installation and enablement, run tasks normally in DSH; the window can be minimized, and you’ll receive a toast when the agent is truly idle and the notifyOn rules are met.
  2. If you receive no notifications at all, the README suggests first confirming whether the plugin has entered the loader tree (e.g., check whether include:dsh-notify’s fiberPhase is active in list_plugins), then checking cordis.patch.yml indentation and config structure, and finally enabling debug: true to inspect logs.
  3. When installing locally from source into the host, both dsh.profile.bundles and dependencies must be handled; the repository provides set-bundle-state.mjs and register-local-plugin.mjs, and requires that DSH be fully exited before running—a running host will rewrite the config.

Use Cases and Notes

Suitable for developers who use DSH on a Windows desktop and want system notifications to remind them to come back after long tasks or goals complete.

The plugin runs under the current DSH process permissions. Before installing, review the repository source code and the MIT license yourself. On non-Windows platforms it won’t show notifications; don’t treat the community catalog as an official app store—the package name in the market is: dsh-notify-toast.

Conclusion

dsh-notify uses the combination of turn/end and idle to separate “noisy per-turn notifications” from “missed real completions,” providing configurable DSH task completion reminders on Windows.

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

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

Xiaoye