Preface¶
When running long tasks or remote sessions in DeepSeek Harness (DSH), users often do not watch the interface continuously. When a task ends, fails, requires approval, or asks a question, the absence of alerts forces users to repeatedly refresh the page or rely on memory to check back. The community plugin dsh-notify (maintained by iruoy) addresses this need: built on top of the DSH 0.2.0-rc.2 API, it pushes session events to browser desktop notifications and Slack Incoming Webhooks, with toggles available for each event type in the settings page. For the browser channel, even if DSH runs on a remote server, notifications are received on the local computer as long as a DSH tab is open; for Slack, delivery continues even without a browser connection.
Below is an introduction to the plugin’s positioning, capability boundaries, installation steps, and configuration essentials. Facts are subject to the GitHub repository README; in the current materials, the package version is 0.2.6 and the license is MIT.
What is this¶
dsh-notify is a Web-side plugin for DSH: it listens to Harness session lifecycle events and sends structured notifications to the browser and/or Slack. The repository includes compiled artifacts, so no local build is required after installation.
Maintainer and repository: github:iruoy/dsh-notify; SkillHub directory page: https://www.skillhub.cn/plugins/iruoy/dsh-notify (community directory, with no official affiliation with DeepSeek / High-Flyer).
Environment and Dependencies¶
Before installation and operation, the requirements in the README must be met:
- DeepSeek Harness with 0.2.0-rc.2 API support.
- Node.js 22.19+ or 24+ (consistent with
enginesinpackage.json). - Browser Notifications: Desktop browser support for Notifications, Web Locks, and EventSource; the site must be served over HTTPS or HTTP on localhost.
- Slack Notifications: A valid Slack Incoming Webhook URL.
Core Features¶
Dual-Channel Notifications¶
- Browser: Pops up system-level notifications on the computer viewing DSH (permissions are determined by the browser and operating system together).
- Slack: Sends messages via Webhook; configurable DSH base URL allows messages to include an Open in DSH link.
The event checkboxes for the two channels are independent; eight main event types are enabled for both channels by default.
Event Types¶
| Event | Notification Meaning |
|---|---|
completed |
Task completed |
error |
Task failed |
aborted |
Task aborted |
blocked |
Task blocked |
max-tokens |
Token limit reached |
interrupted |
DSH reports a turn interruption during recovery |
approval |
Approval requested |
question |
Question asked (Slack side contains only the session identifier, not the question body) |
Notifications for sub-agents are separately opt-in and disabled by default. Even if the sub-agent option is enabled, Slack will not send notifications for sub-task completion; other selected sub-agent terminal/approval events may be sent. Slack’s Include response summaries is disabled by default; when enabled, it attaches up to 1,500 characters of the assistant’s reply (which may contain code or sensitive content).
Slack Message Content¶
In addition to the event and session title, messages may include: working directory path, human input (up to 1,500 characters, excluding injected instructions and tool results), duration, model/provider, reasoning effort, and token usage per turn (grouped by model/effort; marked as partial if missing). If a base URL is configured, a link to open the session is attached.
Estimated API Cost (Slack)¶
For providers/models in the public Models.dev directory that exactly match openai and anthropic, Slack notifications can display an Estimated API-equivalent cost (USD); codex maps to openai, and claude / claude-code map to anthropic. Prices are community-maintained public list prices, not billing or subscription fees; no API key is required. At startup, if the cache is missing or older than 24 hours, the plugin fetches data in the background from https://models.dev/api.json and checks for updates hourly; valid prices are persisted to pricing.json in the same directory as state.json.
Delivery History and Retries¶
The Recent deliveries section in the settings page displays the latest 20 events and their browser/Slack delivery status.
- Browser: Upon reconnection, missed notifications can be resent from the last 200 stored events; if multiple tabs share the same profile, each event pops up only once; clicking a notification focuses DSH and opens the corresponding session.
- Slack: A persistent queue holds up to 100 pending messages and survives DSH restarts; network/rate-limit/server errors allow up to 6 attempts in total, respecting the retry interval returned by Slack.
Installation and Activation¶
In an environment with an existing DSH Web profile, use the commands provided in the README (do not rewrite repository paths manually):
dsh plugin --profile web add github:iruoy/dsh-notify
dsh web
After installation, open Settings → Notify in the Web UI to configure.
Typical Usage¶
Browser Notifications¶
- Click Enable notifications and allow the request in the browser permission popup.
- Check the event types that should trigger browser notifications.
- Click Save settings.
- Click Send test notification to verify delivery.
At least one DSH tab must remain open to receive browser notifications. If permission was previously denied, it must be re-allowed in the browser site settings; system notification settings may also mute alerts.
Slack Notifications¶
- Paste the Incoming Webhook URL into the Webhook field.
- Set DSH base URL to the address used to access DSH, e.g.,
https://dsh.example.com(if left blank upon saving, the current browser origin is used by default). - Check the events to send to Slack.
- After Save settings, click Send Slack test.
To change the Webhook: enter the new URL and save; leave blank to retain the existing Webhook. To delete: click Remove webhook and then save.
The test button is independent of event checkboxes and can be used alone to verify the channel.
State Storage and Remote Access¶
Settings, Webhooks (stored server-side only; the browser side only displays whether it is configured), pending delivery queues, and history are written to:
$DSH_HOME/dsh-notify/state.json
If DSH_HOME is not set, the default is ~/.dsh/dsh-notify/state.json. The state file permissions are restricted to owner read/write only.
Use Cases and Notes¶
Suitable for: Developers running DSH locally or remotely who need alerts for task terminal states, approvals, or questions; teams wishing to aggregate session summaries and (optional) token/estimated cost information in Slack channels.
Notes:
- The plugin runs under the permissions of the current dsh process; please review the source code and MIT license yourself before installation.
- Browser notifications only indicate that the browser has accepted the display request; the operating system may still suppress them; sleeping machines or suspended tabs will delay delivery.
- The Slack summary option may leak task details; Webhooks and
state.jsonshould be properly protected. - When upgrading the plugin, the README describes a cancellation policy for completion events in old version queues that cannot distinguish between main/sub-agents. If you rely on Slack queued delivery, please refer to the Delivery history and retries section in the README for expected behavior after the upgrade.
Conclusion¶
dsh-notify connects eight standard DSH session events to the browser and Slack, and centrally manages permissions, events, sub-agents, and Slack summary strategies in the settings page; it is suitable for workflows where “the Harness is remote, and the user receives messages on their local machine or in IM.” For more details and updates, see GitHub: iruoy/dsh-notify; for the directory index, see the SkillHub Plugin Page.