Preface¶
When running agent tasks in DSH, a common requirement is to push “task failures, pending approvals, or tool errors” to a mobile phone or IM (Instant Messaging) client. While the community already has many plugins that “forward upon receiving an event,” most are solely responsible for delivery and do not address the more tricky questions: Should a duplicate failure be resent? Should you be woken up at 2 AM? Can twenty alerts be consolidated into one? Should messages be dropped if the channel is briefly unavailable?
Below, we introduce dsh-notify-relay maintained by Archaofan (GitHub: Archaofan/dsh-notify-relay, SkillHub Category: Networking Tools). Its positioning is a rule hub for outbound notifications: Lifecycle events are first processed through strategies such as deduplication, Do Not Disturb (DND), and digest batching. Then, they are routed to Bark, ServerChan, Telegram, WeCom, Feishu, DingTalk, ntfy, or generic webhooks. Delivery failures trigger backoff retries, and the queue remains recoverable after a process restart. The plugin has zero runtime dependencies and requires no build step.
What is this¶
dsh-notify-relay is a web-side plugin for DeepSeek Harness: It monitors DSH lifecycle events (task completion/failure/abort/block, request failure, approval queries/decisions, tool failure, etc.) and centralizes decision-making regarding “whether to send, when to send, and which channels to send to.” It then calls thin adapter layers for each channel to dispatch messages.
Maintainer: Archaofan.
Community Directory Page: https://www.skillhub.cn/plugins/Archaofan/dsh-notify-relay
Source Code & Documentation: https://github.com/Archaofan/dsh-notify-relay
Compared to “simple forwarding” plugins, the README emphasizes that the product value lies in the rule layer: dedup, quiet hours, digest, mute, per-channel filtering, secret redaction, and ensuring that approval events are not held back by Do Not Disturb or digest settings (to prevent tasks from stalling until the next morning).
Core Features¶
Rule Layer¶
| Capability | Function |
|---|---|
| Dedup | Fingerprints (kind, session, title, body) to suppress duplicate pushes within a 1–1440 minute window |
| Quiet hours | Supports cross-midnight intervals (e.g., 22:00 → 08:00); duplicate notifications can be dropped or sent via digest |
| Digest | Held notifications are merged into a single message every N minutes; manual flush is also available |
| Mute | Temporarily block everything (including new fingerprints) via /notify mute <minutes> |
| Approval pierce | Approval requests are not held by quiet hours or digest |
| Retry | Failed deliveries enter a persistent outbox with backoff 30s → 1m → 2m → … → 30min; no data loss on restart |
| Routing | Each channel can set event filters (e.g., Telegram only receives failures) |
| Redaction | Secrets are masked as •••••••• in API responses and do not appear in delivery logs |
The package.json description also mentions: severity mapping to native fields for each channel (e.g., Bark level/call, ntfy Priority, DingTalk isAtAll), single-channel circuit breaking, jittered backoff, and outbound self-check alerts. Specific behaviors are subject to the documentation of the current version in the repository.
UI & Observability¶
- Settings Page: Settings → Outbound relay — Master switch, eight event toggles, dedup window, quiet hours (start/end/mode), digest interval, delivery language, pending retry queue, channel editor.
- Channel Editor: Add/delete/modify channels; name, type, endpoint, secret, event filter; Test sends a real delivery to that channel.
- Sidebar Bottom: Status pill (on/off, recent delivery result); click to open the recent delivery log.
- Delivery Log: Includes records where the rule layer decided not to send and the reasons (dedup / muted / quiet-hold / digest / no channel), facilitating troubleshooting of “was it actually sent or not.”
The UI language follows DSH; the language of the text pushed to mobile/IM is controlled separately by the language config (zh / en).
Supported Channels¶
| Kind | Key Configuration Points |
|---|---|
bark |
Bark server URL; iOS push, group set to dsh-notify-relay |
serverchan |
SendKey (ServerChan) |
telegram |
Bot token + chat id; task completion types can be silent |
wecom |
WeCom Bot webhook key, markdown |
feishu |
Feishu webhook token, interactive card |
dingtalk |
Access token, optional sign secret; markdown; critical can @everyone |
ntfy |
Topic (optional custom server), JSON publish |
webhook |
Any URL, generic JSON POST; optional custom header for secret |
The default event filter for each channel is * (all). Unknown channel kinds are discarded during the validation phase to prevent new version configurations from crashing the startup; unrecognized secret fields within known kinds are preserved to avoid accidental credential deletion.
Slash Commands (Bypassing the Model)¶
/notify status/notify test [channel]/notify mute <minutes>//notify unmute/notify flush//notify retry
Installation & Activation¶
The README states it has been verified on DSH 0.1.6-alpha.2 and 0.1.7-rc.2; the engines.dsh in package.json is >=0.1.6-alpha.1 <0.1.7 || >=0.1.7-alpha.1 <0.2.0-0. Please use the commands provided in the material for installation; do not splice repository names yourself.
Install from GitHub for the production profile:
dsh plugin --profile web add github:Archaofan/dsh-notify-relay --ignore-scripts
Or from a local tarball (the README example filename is dsh-notify-relay-0.3.3.tgz):
dsh plugin --profile web add file:./dsh-notify-relay-0.3.3.tgz --ignore-scripts
It is recommended to keep --ignore-scripts: The plugin has no install scripts and no runtime dependencies, so skipping scripts is faster and safer.
After installation, restart DSH (or reload the Web App) and open Settings → Outbound relay to complete configuration.
If the second installation reports ERR_PNPM_MISSING_TARBALL_INTEGRITY¶
This is a known issue with pnpm when the lockfile lacks the tarball integrity. The first installation usually succeeds; this may be triggered when installing a second plugin in the same profile. The fix provided in the README is to delete node_modules and pnpm-lock.yaml under the corresponding profile directory and then reinstall (deleting only the lockfile is insufficient). The path looks like <DSH_HOME>/profiles/<profile>/.
Typical Configuration¶
The fastest path is via the official settings page. You can also directly edit <DSH_HOME>/storages/notify-relay/config.json; it is validated upon loading, and invalid values fall back to defaults instead of crashing.
Example skeleton (fields are based on the README):
{
"enabled": true,
"language": "en",
"events": {
"task.done": false,
"task.failed": true,
"task.aborted": true,
"task.blocked": true,
"request.failed": true,
"approval.asked": true,
"approval.decided": false,
"tool.failed": true
},
"dedup": { "windowMinutes": 10 },
"quiet": { "enabled": false, "start": "22:00", "end": "08:00", "mode": "digest" },
"digest": { "enabled": false, "intervalMinutes": 30 },
"deepLink": "",
"channels": [
{
"id": "phone",
"name": "My phone",
"kind": "bark",
"url": "https://api.day.app/YOUR_KEY",
"secrets": {},
"events": ["*"]
}
]
}
quiet.mode is either digest (merge and send after holding) or drop. In the channel editor, secrets are displayed in a masked format; saving without modifying the secret will not clear the existing token.
Typical workflow:
- Install the plugin and open Outbound relay, then enable the master switch.
- Check the events as needed (e.g., enable failures, approvals, tool failures; disable task completion).
- Add Bark/Telegram etc. in the channel editor, set the endpoint and secret, and verify with Test.
- Enable dedup window, quiet hours, and digest as needed; approval events will automatically pierce the hold.
- Run a task or execute
/notify test; confirm “Sent” or “Suppressed by rule” and the reason in the delivery log.
Use Cases & Precautions¶
Who it is for
- Running DSH tasks unattended for long periods, requiring mobile/IM alerts but wanting to avoid being spammed by duplicate failures.
- Multi-channel diversion: For example, Bark receives everything, while Telegram only receives failures and approvals.
- Developers who need to distinguish between “no channel configured” and “blocked by dedup/Do Not Disturb” in the logs.
Please note before use
- The DSH ecosystem is “everything is a plugin”; community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer.
- The plugin runs with the current DSH process privileges and will send task titles, body text, etc., to configured external endpoints. Before installation, please read the source code and the MIT license, and assess the risks regarding keys and data export yourself.
- External channel credentials are stored in the local configuration; although there is redaction in the API and logs, you should still restrict access to the DSH host and backup files.
Conclusion¶
dsh-notify-relay extracts “whether to send, how to send, and where to send” from various channel plugins into a layer of rule hubs and supplements it with delivery logs and failure retries. It is suitable as the default entry point for DSH outbound notifications. For further details, please refer to the repository README and the Chinese documentation README.zh.md.