Introduction¶
When running long sessions in DeepSeek Harness (DSH), you often switch to other applications and wait for results. The official interface can display session status, but when the window is not in the foreground, completions, failures, or token exhaustion often only become apparent when you manually switch back. The community plugin @apodemakeles/dsh-macos-notify (repository apodemakeles/dsh-macos-notify) targets macOS desktop scenarios: it pops up system notifications when the harness window does not have focus, and leaves unread completion dots on the sidebar session rows. This article introduces its capabilities, installation methods, and usage notes.
What This Is¶
@apodemakeles/dsh-macos-notify is a client-side plugin for DSH, maintained by apodemakeles. The current released version is v0.1.2 (distributed via GitHub). On npm, the unscoped package name dsh-macos-notify belongs to a different project; when installing, use the @apodemakeles scope or the github:apodemakeles/dsh-macos-notify source from the README.
The plugin does not make any network requests: session names and turn-end reasons are processed locally.
Core Features¶
System Notifications (Only When Window Loses Focus)¶
It triggers the browser / Electron Notification API only when the harness window is not in the foreground (document.hasFocus() === false). Clicking a notification focuses the window and opens the corresponding session.
| turn/end reason | Notification behavior |
|---|---|
completed, max-tokens, blocked |
Title is the session name, body is a localized “completed” style message |
error |
Title is the session name, body is a localized “failed” style message |
aborted, interrupted, unknown reason |
Silent |
| subagent session | Silent |
Unread Completion Dots¶
Turns that complete while the window loses focus display a small dot on the left side of the session row: green for success, red for failure. This appears even if the session remains in the main view. It is cleared when you click the row, start a new run, or click the system notification. If the official UI already shows a background-completion status dot, the plugin does not add a duplicate.
After startup or reconnection, it does not replay history: the first projection value is only used to establish a baseline.
Settings¶
Settings → Notifications provides a master switch (enabled by default), permission status, and buttons to request permission or send a test notification. The switch is stored in the browser’s localStorage.
Installation and Enabling¶
The plugin runs with the permissions of the current DSH process; before installing, review the GitHub source code and its MIT license.
Desktop App (desktop profile)¶
The desktop profile is managed by the Electron application and cannot use dsh plugin --profile desktop. You need to add the dependency and write it into the bundle the same way as the application plugin manager:
DSH_HOME=${DSH_HOME:-$HOME/.dsh}
PROFILE="$DSH_HOME/profiles/desktop"
pnpm --dir "$PROFILE" add github:apodemakeles/dsh-macos-notify
Add the package name to dsh.profile.bundles in $PROFILE/package.json:
{ "dsh": { "profile": { "bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
"@apodemakeles/dsh-macos-notify"
] } } }
After restarting the application, the plugin should appear under Plugins → Installed, and the switch should appear under Settings → Notifications.
Web profile¶
dsh plugin --profile web add github:apodemakeles/dsh-macos-notify
You need to restart dsh web after running this.
Release archive¶
Each GitHub Release provides apodemakeles-dsh-macos-notify-<version>.tgz, for example:
dsh plugin --profile web add file:/path/to/apodemakeles-dsh-macos-notify-0.1.2.tgz
Typical Usage¶
- Complete the installation and restart DSH as described above.
- Open Settings → Notifications, confirm the master switch is on; for first-time use, click Request permission or Send a test notification, and allow DeepSeek Harness under System Settings → Notifications.
- Keep the harness in the background, wait for a session turn to end with a notification-worthy reason such as
completedorerror; you should receive a system notification, and a green or red dot should appear on the corresponding row in the sidebar. - Click the notification or the session row, and the unread dot should be cleared.
If a macOS Focus mode is enabled and DeepSeek Harness is not added to the allow list, notifications may be silently “delayed”; the in-app unread dot does not depend on Focus mode.
Implementation Notes and Compatibility¶
- Host: Registers a
turn-notifysession projection that foldsturn/startandturn/end.reason, exposing{ turn, reason }to clients. - Client: Listens for session list and projections, then shows notifications after applying the master switch, subagent filter, reason mapping, and focus gating; unread dots are rendered via the official
sidebar.session.row.leadingslot and only display when the official status dot is idle.
Compatibility range (see package.json engines):
- DSH
>=0.2.0-rc.1 <0.3.0; the README notes it has been tested on desktop app0.2.1-rc.2and CLI0.2.0-rc.1. - System notifications depend on macOS and the Notification API; unread dots are cross-platform UI behavior.
- Node
>=22.
Conclusion¶
@apodemakeles/dsh-macos-notify solves “how to know a turn has ended when you are not in the harness foreground”: macOS system notifications plus session-row unread dots, with local logic and a master switch. Community catalog page: SkillHub - dsh-macos-notify; source code and detailed docs: GitHub - apodemakeles/dsh-macos-notify.