Preface¶
When agents in DSH (DeepSeek Harness) complete long-running tasks, results often remain trapped in sessions or logs. If you are away from the terminal, it is difficult to get alerts, reports, and job conclusions delivered promptly to your mobile phone or desktop notifications. The common approach is to write separate scripts to call Webhooks, emails, or third-party push APIs, and then attach an additional layer to the toolchain. dsh-ntfy, introduced below, condenses this path into a single tool call: send a message to an ntfy topic, and any subscribed client or application will receive the push notification. The plugin is stateless, does not persist files, and has no additional runtime dependencies, making it suitable for on-demand mounting on existing DSH profiles.
What is this¶
dsh-ntfy is an out-of-tree plugin for DSH, maintained by xuan25. It is categorized as a “Networking Tool” in the SkillHub Plugin Directory. It exposes the ntfy tool to the agent: a single call publishes title, body, etc., to configured ntfy channels, corresponding to topics on the ntfy server. Job results, alerts, and reports can reach user devices or any application and feed subscribed to that topic. It can be used with ntfy.sh or a self-hosted ntfy service.
Core Functions¶
According to the repository README, the current version (package.json is 0.1.0) has the following capabilities:
- Single Tool Push: The plugin registers the
ntfytool, with verbs includingsendandchannels; it also provides adsh-ntfyskill explaining full parameters, limitations, and troubleshooting. - Multi-channel, Single Target per Call: Multiple channels are declared via environment variables or cordis config; each
sendtargets only one channel. - Flexible Server: Defaults to
https://ntfy.sh, but allows specifying a base URL for a self-hosted ntfy server for each channel. - Optional Authentication: Supports Basic (USER + PASS pair) or Bearer TOKEN. The two cannot be mixed (e.g., using TOKEN with USER/PASS).
- Long Body Chunking: When the body exceeds 4096 UTF-8 bytes, it is sent in sequential chunks; if a chunk fails, subsequent chunks are aborted, and the result indicates the number of delivered chunks, requiring explicit resending for the remainder.
- Zero Local State: Creates no files; configuration comes from process environment variables and an optional cordis patch layer.
Installation and Activation¶
Install using the official command under the target dsh profile (do not use the github:owner/repo format not appearing in the documentation):
dsh plugin --profile <name> add dsh-ntfy
Configuration is layered in three ways: built-in defaults, NTFY_* environment variables, and an optional cordis config patch. Environment variables take effect at process startup; you must restart the host for changes to env to take effect. The plugin itself does not write configuration files.
Environment Variables¶
Each channel is declared by NTFY_<NAME>_TOPIC (required); <NAME> contains only uppercase letters and numbers, the channel name is its lowercase form, and must match ^[a-z][a-z0-9-]{0,31}$ (no underscores, cannot start with a number). The topic string acts as an addressing credential, with charset [-_A-Za-z0-9]{1,64}.
| Variable | Required | Meaning |
|---|---|---|
NTFY_<NAME>_TOPIC |
Yes | Declares channel <name> |
NTFY_<NAME>_SERVER |
No | Service base URL, default https://ntfy.sh |
NTFY_<NAME>_USER + NTFY_<NAME>_PASS |
No (pair) | Basic authentication |
NTFY_<NAME>_TOKEN |
No | Bearer token, cannot be used with USER/PASS |
NTFY_DEFAULT_CHANNEL |
No | Channel name used when send does not specify a channel (case-insensitive) |
Example:
NTFY_DEFAULT_CHANNEL=dash
NTFY_DASH_TOPIC=dsh-alerts-Kx7pQm
Channels with non-standard naming will be discarded at startup with a warning, without affecting the overall startup. Invalid topics, half-configured Basic auth, or co-existing tokens and Basic auth will also only trigger warnings.
cordis patch (Optional)¶
You can write camelCase config (e.g., defaultChannel, channels mapping) using the plugin id dsh-ntfy in the profile’s cordis.patch.yml, user global ~/.dsh/cordis.patch.yml, or --patch override layers. Priority is: Patch delivered value > Environment variable > Built-in default; patch replaces the config segment entirely by ID without deep merging, so you must write all fields to be retained when overriding a field. If the environment supports live patch reload, changing the patch triggers a plugin reload; otherwise, it takes effect on the next restart.
- id: dsh-ntfy
config:
defaultChannel: dash
channels:
dash:
server: https://ntfy.example.com
Typical Usage¶
Typical invocation by the agent or you in the harness is as follows (parameters are subject to the skill documentation):
ntfy { verb: "send", body: "deploy finished", title: "CI", priority: "high" }
ntfy { verb: "send", body: "nightly backup done", channel: "backups" }
ntfy { verb: "channels" }
First use channels to view currently available channels, then specify body, optional title, priority, channel, etc., in send.
Use Cases and Notes¶
Who is it for: Developers who need to push short messages to mobile ntfy clients, self-hosted monitoring, or any consumer subscribed to a topic when DSH tasks end or encounter exceptions; multiple channels can distinguish business lines like CI, backups, and alerts.
Limitations (from README):
- ntfy.sh allows about 250 messages/day for guests; self-hosted server limits are customizable; the plugin does not perform client-side rate limiting.
- Single body limit is 4096 bytes (chunk size), title 1 KB, tags 512 bytes.
- Messages cannot be recalled once sent (no update/clear/delete interface).
Security and Permissions: The plugin runs under the current dsh process permissions and initiates HTTP requests to the configured ntfy server; the topic acts as a credential, so use sufficiently random, hard-to-guess topic names, and securely store TOKENs or passwords. Before installation, please review the GitHub Source Code and the MIT license yourself to ensure compliance with your requirements.
The DSH ecosystem emphasizes “Everything is a Plugin”; SkillHub is a community directory site and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-ntfy condenses ntfy pushes into a single ntfy tool call within DSH. Configuration relies on NTFY_* and optional cordis patches, with no local state files. If your agent needs “device reachability upon task completion,” you can install it by profile, configure the topic, and then directly send within your workflow.
- Plugin Directory: https://www.skillhub.cn/plugins/xuan25/dsh-ntfy
- Source Code & Docs: https://github.com/xuan25/dsh-ntfy