Preface¶
When running long tasks in DeepSeek Harness (DSH), a common practice is to stare at the web interface or repeatedly switch back to the terminal to check the status. When tasks run on a remote server and the local browser is only opened occasionally, it is easy to miss key milestones like “Completed,” “Failed,” or “Requires Approval.” The community plugin dsh-notify integrates browser notifications on the DSH web side and optionally pushes similar events to Slack, allowing you to receive alerts even when you leave the page.
Below is an introduction to what it is, which events it can notify, and how to install and configure it.
What is this¶
dsh-notify is a notification plugin for DeepSeek Harness: when a task ends, fails, or requires attention, it can pop up system-level notifications in the desktop browser currently viewing DSH; after configuring a Slack Incoming Webhook, messages can also be received in Slack even if no browser is connected to DSH.
The repository is iruoy/dsh-notify on GitHub (version 0.2.6 in package.json, license MIT). The plugin includes compiled artifacts, so no local build is required after installation. For the community directory page, refer to the entry on SkillHub; for installation commands, refer to the repository README.
Environment and Dependencies¶
Please confirm before use:
- DSH provides 0.2.0-rc.2 API capabilities.
- Node.js 22.19+ or 24+.
- Browser notifications: Desktop browsers support Notifications, Web Locks, and EventSource, and access DSH via HTTPS or HTTP on localhost.
- Slack notifications: A valid Slack Incoming Webhook URL.
Core Features¶
Dual-channel Notifications¶
- Browser: Notifications appear on the computer currently viewing DSH; when DSH runs on a remote server, you can still receive them as long as the local browser has the DSH page open. Multiple tabs in the same browser configuration will only pop up one notification for the same event; clicking the notification will focus DSH and open the corresponding session. At least one DSH tab needs to remain online.
- Slack: Does not depend on a browser connection, suitable for unattended monitoring or viewing via mobile phones.
The event checkboxes for Browser and Slack are independent of each other; the test button does not depend on current event selections.
Event Types¶
By default, eight types of events are enabled for both channels (sub-agent related events have separate switches, see below):
| Event | 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 resume |
approval |
Approval required |
question |
Question raised |
Browser notifications for subagents and Slack notifications for subagents are disabled by default. On the Slack side, even if sub-agent notifications are enabled, sub-task completions will not be sent; other selected sub-agent events can be sent. Slack’s Include response summaries is disabled by default; when enabled, it attaches up to 1,500 characters of the assistant’s response (which may contain code or sensitive content); the session title is always included. question type Slack notifications only contain the session identifier, not the question body.
Slack Message Content¶
In addition to the event and session title, messages can include the workspace path, human input (up to 1,500 characters, excluding injected instructions and tool results), duration, model/provider, reasoning effort, token usage for the current turn (grouped by model and effort), and an Open in DSH link when DSH base URL is configured.
Optional display of Estimated API-equivalent cost (USD): Estimates the API-equivalent cost for the current turn for models/providers that exactly match openai or anthropic in the public directory of Models.dev (codex maps to openai, claude / claude-code maps to anthropic). No API key required; prices are community-maintained public rates and do not represent actual billing. At startup, if the cache is missing or older than 24 hours, the plugin fetches pricing from https://models.dev/api.json in the background, and writes validation results to pricing.json in the same directory as state.json.
Delivery History and Retry¶
The settings page Recent deliveries displays the latest 20 events along with browser and Slack delivery status. After the browser reconnects, backfilling can be done from the most recent 200 stored events; Slack maintains a pending queue of up to 100 messages that can be retained after a DSH restart. Network errors and rate limits are retried up to 6 times in total.
State, webhooks, etc., are saved in:
$DSH_HOME/dsh-notify/state.json
If DSH_HOME is not set, the default is ~/.dsh/dsh-notify/state.json. Webhooks are not echoed to the browser; the interface only shows whether they are configured.
Installation and Activation¶
Execute the command provided in the README in the environment where DSH is installed (web profile required):
dsh plugin --profile web add github:iruoy/dsh-notify
dsh web
Typical Usage: Settings → Notify¶
Open DSH Web’s Settings → Notify.
Browser Notifications¶
- Click Enable notifications and allow it in the browser permission prompt.
- Check the events that need to trigger browser notifications.
- Click Save settings.
- Click Send test notification to verify.
If permission is denied, notifications must be allowed in the browser site settings; operating system notification settings may also mute them.
Slack Notifications¶
- Paste the Incoming Webhook URL into the webhook field.
- Set DSH base URL to the address for accessing DSH, e.g.,
https://dsh.example.com(if not filled in upon saving, it defaults to the current browser origin). - Check the events to send to Slack.
- After Save settings, click Send Slack test.
To change the webhook: enter the new URL and save; if left blank, the existing webhook is retained. To delete: click Remove webhook then save.
Use Cases and Notes¶
Suitable for developers running longer agentic tasks on DSH who need external alerts for “Completion/Failure/Approval”: monitoring via local browser, on-call via Slack, running DSH on a remote server while browsing the web interface on another machine, etc.
Please note before use:
- The plugin runs with the permissions of the current dsh process, reading and writing the local
state.jsonand making outbound requests to Slack; before installation, please review the source code and the MIT license yourself to confirm that the webhook and summary options comply with your team’s security policies. - Browser notifications indicate that the browser has accepted the delivery; the operating system may still suppress them; sleeping or suspended tabs will delay delivery.
- Slack cost estimates are references from public directories and cannot replace billing reconciliation.
Conclusion¶
dsh-notify connects key nodes in the DSH task lifecycle to the browser and Slack, reducing ineffective polling during long waits. For more information, see the community directory https://www.skillhub.cn/plugins/avontura/dsh-notify and the GitHub repository https://github.com/iruoy/dsh-notify.