Introduction¶
When running long-duration agent tasks with DeepSeek Harness (DSH), developers often run into the “forgot to check progress” problem. Existing log or console outputs rely on someone actively watching them—once a window gets covered or the terminal is minimized, information is easily missed.
The dsh-turn-toast plugin listens to DSH session events and triggers a desktop notification at the end of each task turn. It doesn’t rely on the model “remembering to call” something; instead, it is driven by host events, popping up a card in the bottom-right corner of the screen with a notification sound to alert the developer that the current turn has completed.
Plugin Positioning¶
This is a DSH client plugin running on Windows, designed to display a desktop notification at the end of each task turn. It was developed by maintainer zheng-builds, is currently at version 0.1.1, and is licensed under the MIT License.
The core value of the plugin lies in shifting from “passively watching logs” to “active desktop notifications,” reducing the continuous demand on a developer’s attention.
Core Features¶
- Event Listening: Monitors DSH’s
turn/endsession event and triggers a notification after each conversational turn ends. - Text Extraction: Extracts the first sentence from the last assistant reply in that turn, truncated to
maxChars(default 40 characters). - Desktop Popup: Uses PowerShell + WPF to render a card. It auto-closes after
secondsand can be dismissed early by clicking. - Notification Sound: Plays
assets/notify.wavby default (a three-note ascending arpeggio, synthesized, royalty-free). You can swap in a custom WAV file or disable it withsound: false. - Fullscreen Protection: Calls the Win32 API
SHQueryUserNotificationState. When the return value is 2/3/4 (busy, D3D fullscreen, presentation mode), the popup is skipped to avoid interrupting games or presentations. - Focus Detection:
onlyWhenUnfocused(enabled by default)—the popup only appears when the DSH window is not in the foreground, so you only get notified while using other applications. - Sub-session Filtering:
turn/endevents generated by sub-agents do not trigger notifications, preventing multiple popups for a single task.
Installation and Enablement¶
Run the following command in your terminal to install the plugin:
dsh plugin add github:zheng-builds/dsh-turn-toast
After installation, edit the cordis.patch.yml file and add or modify the following configuration under the corresponding plugin’s config node:
- insert:
- id: turn-notify
name: dsh-turn-notify
config:
enabled: true # Master switch
seconds: 6 # Display duration in seconds
onlyWhenUnfocused: true # Only pop up when DSH is not in the foreground
maxChars: 40 # Maximum length of the notification text
sound: true # Whether to play a notification sound
soundFile: '' # Custom WAV path; leave empty to use the bundled assets/notify.wav
Save the configuration and restart DSH to activate the plugin.
Typical Usage¶
Once the plugin is enabled, DSH automatically checks the following conditions at the end of each conversational turn: whether the plugin is enabled, whether the system is in a fullscreen application, whether DSH is in the foreground, and whether it is a sub-session. When all conditions are met, a card pops up in the bottom-right corner displaying a one-sentence summary of the assistant’s reply, accompanied by a notification sound.
To customize the notification sound, place a WAV file in DSH’s assets directory and specify the soundFile path in the configuration. If you don’t want any sound, simply set sound: false.
Use Cases and Notes¶
- Ideal for agent tasks that run for extended periods with multiple conversational turns, reducing the need to constantly monitor the terminal window.
- Requires a Windows 10/11 environment and depends on the system-bundled PowerShell 5.1+.
- The plugin runs with the current DSH process permissions. It is recommended to review the source code and license before installation.
- Windows only (the script relies on WPF and Win32 APIs).
Conclusion¶
dsh-turn-toast uses desktop popups and notification sounds to explicitly deliver turn-completion information to developers. It doesn’t alter DSH’s core workflow; instead, it provides feedback at the right moment through a “host-event-driven” approach. If you frequently need to monitor task progress during development, this plugin can reduce how often you have to manually check.