Introduction¶
When running long tasks in DeepSeek Harness (DSH), the interface is not necessarily always in the foreground. You want to know when the round has truly ended and what the final output was without switching back to the window, rather than getting notifications popping up in the middle of streaming output or tool calls.
Below is the community plugin dsh-turn-notifier (maintainer Xm-Coding). It mimics the logic of Codex’s agent-turn-complete: after Harness submits turn/end, it posts a notification to the macOS Notification Center. The body takes the text summary of the last assistant message in the current round; clicking the notification opens the corresponding session on the Client side. The plugin is classified as a workflow; the repository currently has 0 GitHub stars; license is MIT (version 1.1.0 see package.json in the repo).
Platform and Dependencies (Original Text): Only supports macOS; requires DeepSeek Harness 0.2.1-rc.2 to 0.2.x, Node.js >=24.9 (the desktop runtime is built-in). The notification helper includes built-in Apple Silicon and Intel executables; no Xcode or terminal-notifier is required.
What is this¶
dsh-turn-notifier is a macOS Host plugin for DeepSeek Harness: when the current round of a session normally ends (or handles limits, errors, stops according to configuration), a system notification pops up locally; notifications are disabled by default for sub-agent completion, manual stop, and errors, but can be enabled via configuration. The processing is done locally; the plugin readme states it does not send network requests, perform telemetry, or log the notification body.
- Directory Page: https://www.skillhub.cn/plugins/Xm-Coding/dsh-turn-notifier
- Source Code: https://github.com/Xm-Coding/dsh-turn-notifier
Core Features¶
Notification Timing and Content¶
- True Round Completion: Waits for Harness to terminate after
turn/endbefore notifying; does not notify during streaming output or tool calls. - Body and Subtitle: The body contains the final assistant reply text (default max 240 Unicode characters, truncated with
…if exceeded); the subtitle shows completion status and session title (uses current working directory name if no title orshowSessionTitle: false, title truncated if > 60 characters). - Icon and Delivery: Uses the native helper included with the plugin (legacy
NSUserNotification), with AppleScript as a fallback; the native helper retains the notification in the Notification Center for about 10 seconds after delivery; banner duration is determined by macOS notification settings. - Open Session: The Host records the session corresponding to the notification; the Client receives the action via the dynamically injected
remote.turnNotifierand callsuiWorkspace.openSession(README claimsregisterClient/claimActionare verified in headless GUI). - Default Restraint: Notifications for sub-agents, stops, and errors are disabled by default; can be enabled separately via
includeSubagents,notifyOnCancel,notifyOnError. - Retry and Language: Temporary send failures retry up to 3 times with 1/2/4 second backoff; no retry for missing assistant, unsupported platform, etc. Status text comes from
locale/,localesupportsauto | zh | en.
Default Notification Timing (Summary)¶
| Situation | Default Notification |
|---|---|
| Current round completes normally | Notify, body is final assistant reply summary |
| Reached output limit for this round | Notify, subtitle shows “Output limit reached for this round” |
| Streaming output or tool calls | Do not notify |
| Sub-agent completes | Default do not notify |
| This round is manually stopped, by a parent task, or a hook | Default do not notify |
| Session closed or stopped due to Harness exit | Do not notify |
| Error occurs in this round | Default do not notify |
Installation and Enabling¶
Before installing, please review the repository source code and the MIT license yourself. The plugin runs with the permissions of the current DSH Host process. Please combine the following configuration items with system notification preview settings when dealing with sensitive replies.
Install from GitHub (Recommended)¶
Official desktop (desktop profile):
dsh plugin --profile desktop add github:Xm-Coding/dsh-turn-notifier
Regular dsh web:
dsh plugin --profile web add github:Xm-Coding/dsh-turn-notifier
Custom profile, replace <profile> with the actual name:
dsh plugin --profile <profile> add github:Xm-Coding/dsh-turn-notifier
You can also add github:Xm-Coding/dsh-turn-notifier on the DSH plugin page, or directly enter the repository address. Installation requires access to GitHub; if it does not take effect immediately, fully exit and reopen Harness.
Allow System Notifications¶
The native helper might not necessarily pop up a permission request. If notifications are not appearing, open System Settings → Notifications → DeepSeek Notifier, confirm that notifications are not disabled, and select banner or alert and sound as needed. The AppleScript fallback also uses the DeepSeek Notifier name.
Configuration¶
The default configuration is in the repository cordis.patch.yml. When overriding, please write a complete config object for dsh-turn-notifier in the cordis.patch.yml of the current profile (overwriting with the same name replaces the entire configuration; do not only write a single field).
| Field | Default Value | Description |
|---|---|---|
enabled |
true |
Whether to enable notifications |
includeSubagents |
false |
Whether to notify sub-agent sessions |
includeMessage |
true |
Whether the body contains the final assistant text or error info; false only shows status |
showSessionTitle |
true |
Whether the subtitle shows the session title; false shows the working directory name |
notifyOnError |
false |
Whether to notify when an error occurs in this round |
notifyOnCancel |
false |
Whether to notify when stopped manually, by a parent task, or a hook |
title |
DeepSeek Harness |
Notification title |
soundName |
Glass |
macOS alert sound; empty string for mute |
maxCharacters |
240 |
Character limit for the body, allows 40–2000 |
locale |
auto |
auto falls back to Chinese, or zh / en |
Typical usage: disable alert sound, enable error notifications, and do not display the reply body in notifications:
- id: dsh-turn-notifier
name: 'dsh-turn-notifier'
config:
enabled: true
includeSubagents: false
includeMessage: false
showSessionTitle: true
notifyOnError: true
notifyOnCancel: false
title: DeepSeek Harness
soundName: ''
maxCharacters: 240
locale: auto
Apply the result of Harness hot-loading after modification; if it doesn’t take effect, restart once.
Use Cases and Considerations¶
Who is it for: Developers using DSH desktop or dsh web on macOS who often leave the window and need local reminders when “the round ends”.
Privacy: The body is read from the session history, truncated in memory, and handed to the local helper; the projection cache does not store message text. The lock screen or notification center might preview content; for sensitive scenarios, you can set includeMessage: false or showSessionTitle: false (it may still show status and the working directory name, so it is not completely anonymous).
Uninstall: Replace <profile> with the actual profile:
dsh plugin --profile <profile> remove dsh-turn-notifier
No notification after installation: Confirm it is installed in the current profile, restart Harness, and check system notifications and Focus mode. If the Host log shows [dsh-turn-notifier] notification failed with code=HELPER_MISSING, you can rebuild the assistant by running npm run build:native or native/build-macos-notifier.sh in the repository as indicated in the README.
Conclusion¶
dsh-turn-notifier aligns “the round truly ended” with the macOS Notification Center: by default, it only includes the final reply summary in the notification, and supports sound, length, language, and error/stop strategies. The DSH ecosystem emphasizes “everything is a plugin”; the SkillHub directory is a community site with no official affiliation with DeepSeek / Synthflow. For more information, see the SkillHub Directory Page and the GitHub Repository.