Introduction¶
When running DeepSeek Harness for multi-turn conversations or complex tasks, the Agent is executing in the background while the user needs to switch to other work. At this point, a mechanism is needed to know when the task has finished, avoiding frequent UI refreshing or missing critical information. The Task completion notice plugin alerts the user at the end of each turn via sound and Windows desktop notifications.
Plugin Overview¶
This is a DeepSeek Harness client plugin maintained by northsoulxiao (maintainer), version 1.0.1. The plugin listens to DSH persistent session events and sends notifications when turn/start, assistant/message, and turn/end are triggered.
Core Features¶
Event Listening and Notification Content¶
The plugin works through event listening rather than polling, adding no model requests and writing no session logs.
- Normal completion: Title displays
Task completed · <workspace folder>, with the body containing the last reply of that turn (compressed to a single line, max 140 characters) plus elapsed time. - Error termination: Title displays
Task ended with an error, using the system error sound. - Sub-agent turns: Silent by default, to prevent a single task from flooding the desktop with notifications due to multiple sub-agent turns.
Notification Style and Delivery¶
Notifications are sent via a hidden powershell.exe subprocess through lib/notify.ps1:
toast: Windows desktop notification (default).window: A small window in the bottom-right corner that briefly gains focus and auto-closes after 8 seconds.- The notification sender name is determined by the AppUserModelID (AUMID). The plugin uses
com.deepseek.dsh, corresponding to the DeepSeek Harness Start menu shortcut. If that AUMID is missing, it falls back to PowerShell’s AUMID.
Error Handling¶
A notification failure will not interrupt the session; the plugin continues to run.
Installation and Activation¶
Install from the plugin index:
- Open Plugins → Discover in DeepSeek Harness.
- Add the plugin index URL.
- Install Task completion notice.
Install from a release bundle:
plugin_manager install_bundle dsh-task-complete-notice
Install from a local directory:
- Plugins → Add plugin.
- Select the plugin directory or a packaged
.tgzfile.
Configuration¶
Configuration items are located under the config node in the plugin’s cordis.patch.yml and can be overridden in DSH settings.
| Setting | Default | Description |
|---|---|---|
enabled |
true |
Master switch. Set to false to load the plugin but suppress notifications. |
sound |
default |
default plays the system sound, none mutes, other values are absolute paths to a WAV file. |
style |
toast |
toast shows a desktop notification, window shows a small window in the bottom-right corner. |
notifyOnError |
true |
Whether to notify on turns that end with an error or rate-limiting. |
skipSubagents |
true |
Skip notifications for sub-agent turns. |
minTurnDurationMs |
0 |
Only notify when the turn duration exceeds this number of milliseconds; 0 means notify on every turn. |
maxBodyChars |
140 |
Truncation length for the notification body. |
title / errorTitle |
Task completed / Task ended with an error |
Notification title. |
appId |
com.deepseek.dsh |
Application name displayed in Windows notifications. |
Manual Testing¶
Run the following PowerShell commands in the project root directory to test the notification functionality:
$payload = '{"title":"Task completed · test","body":"Preview of the sound and the notification","sound":"default","style":"toast","kind":"info","appId":"com.deepseek.dsh"}'
$file = Join-Path $env:TEMP 'dsh-notice-test.json'
[System.IO.File]::WriteAllText($file, $payload, (New-Object System.Text.UTF8Encoding($false)))
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\lib\notify.ps1 -PayloadFile $file
Test results are logged in %TEMP%\dsh-task-notice.log.
Use Cases and Notes¶
- Windows 10/11 only; on other platforms the plugin remains idle.
- Notifications may be suppressed by Windows Focus Assist / Do Not Disturb, but the sound will still play. If toasts don’t appear, try
style: window. - Sound follows the system volume and system sound settings.
- Each notification spawns a short-lived hidden
powershell.exeprocess (~1 second of CPU work). - The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license (MIT) before installing.
Conclusion¶
The Task completion notice plugin uses an event-driven approach to provide sound and desktop notifications at the end of each DeepSeek Harness turn, helping users stay focused during multi-turn tasks without missing critical information. The plugin uses a hidden PowerShell subprocess to send notifications, does not interfere with session execution, and supports multiple configuration options to adapt to different workflows.
- Directory page: https://www.skillhub.cn/plugins/northsoulxiao/dsh-task-complete-notice
- GitHub: https://github.com/northsoulxiao/dsh-task-complete-notice