Preface¶
When running Agents with DSH (DeepSeek Harness), a common scenario is: the page is in the background, you are in a meeting, and the AI pops up a “Needs your selection” or “Needs your approval” prompt. By the time you return to the browser, you have already missed a round. DingTalk custom bots can only send messages, not receive them, so you cannot click directly in the group chat, but they can at least push “Time to make a decision” or “This round is finished” to your phone. The following introduces the community plugin dsh-dingtalk-notify (Maintainer: LapStdy, Category: Networking Tools), which monitors these nodes within DSH and sends them to a DingTalk group via Webhook, providing a configuration panel under Settings → DingTalk Notification.
What is this¶
dsh-dingtalk-notify is a pure JavaScript DSH plugin with no build step. It passively observes session events on the host side: when user selection is required (including plan approval), an operation is intercepted for approval, or a task turn ends (completed / error / interrupted), it assembles a message according to your rules and calls the DingTalk group bot Webhook. The notification body will prompt “Please return to the DSH page to act,” serving as a reminder rather than a replacement for the popups and approval flows inside DSH; sending failures are only logged and do not affect the AI’s continued work.
Runtime requirements: DSH ≥ 0.1.5-rc.1, Node ≥ 18. Current repository version 0.2.4, License MIT.
What gets pushed and when¶
The plugin can be toggled separately by event type. By default, it does not send completion notifications for “turns lasting less than 5 seconds” to avoid spamming.
| Timing | Approximate Title in DingTalk |
|---|---|
| AI requires you to choose (incl. plan approval) | DSH needs your selection |
| An operation was intercepted and requires approval | DSH needs your approval |
| A task turn ends | Task complete / error / interrupted |
Gating determines “whether to actually send this.” Each open DSH page reports online status approximately every 45 seconds; the default mode away means if someone is currently watching the DSH page, it won’t send, only sending when the person walks away or only the phone is watching. There is also mobileOnly (send only when only mobile is online) and always (always send). The “Send test message” in the panel is not subject to gating restrictions and is used to verify the Webhook link separately.
Message Detail Level can be selected as “Brief” or “Detailed” in the panel: Brief is a one-liner plus the session name; Detailed includes the question body, options, tool names, elapsed time, reply summary, etc.
Installation and Enablement¶
The plugin runs with the current DSH process permissions. Before installing, it is recommended to browse the source code and LICENSE on GitHub to ensure sensitive items like Webhooks and signing secrets are only written in local configurations.
Web Version (Command Line / dsh web)¶
dsh plugin --profile web add github:LapStdy/dsh-dingtalk-notify
After installation, restart dsh web (the settings panel scans the plugin roster at startup), then open Settings → DingTalk Notification.
Desktop (DeepSeek Harness App)¶
Desktop plugins are managed exclusively by the Electron app and cannot be installed via dsh plugin --profile desktop ... from the command line. Within the app:
- Click Plugins in the left sidebar
- Click Add Plugin
- Paste
github:LapStdy/dsh-dingtalk-notifyor the full repository address, and click Install - After installation, restart the desktop app, then open Settings → DingTalk Notification
Installing from GitHub does not require additional build authorization.
Typical Usage: From DingTalk Bot to Testing¶
Installing the plugin is only half the job; whether it can send to the group depends on the DingTalk side bot and security settings.
1. Add a Custom Bot to a DingTalk Group¶
Enter the target group → Group Settings → Bots → Add Bot → Custom (via Webhook). After naming, proceed to security settings.
2. Security Settings (Choose One)¶
- Sign (Recommended): Copy the secret starting with
SECand fill it into the DSH panel “Sign Secret”. - Custom Keywords: For example, fill in
DSH; DingTalk only allows messages containing this word in the body. This plugin’s titles are fixed withDSH, so filling inDSHwill pass.
After completion, copy the Webhook URL (format: https://oapi.dingtalk.com/robot/send?access_token=...). The Webhook and signing secret are equivalent to posting credentials; do not leak or commit them to public repositories.
3. Fill in and Test in the DSH Panel¶
Open Settings → DingTalk Notification:
- Webhook URL: Paste the address from the previous step
- Sign Secret: Paste
SEC...in signing mode; leave blank in keyword mode - Click Send Test Message —— This action always sends really and is used to verify the link
Receiving a test message in the group indicates connectivity. If it prompts Send Failed 310000, it is mostly due to keyword or signing mismatch; switching to “Custom Keyword” and filling in DSH is a common fix. If it shows Skipped, it means it was skipped by logic such as gating, Do Not Disturb, or missing Webhook, which is not a send failure; use the test message to bypass gating and check the Webhook.
Configuration persists in ~/.dsh/dingtalk-notify/config.json. Saving in the panel or manually modifying the file takes effect immediately without restart (modifying plugin source code under lib/ requires restarting dsh web).
Configuration Points¶
A configuration template is automatically generated on first run. Common keys are as follows (see the repository README for the full list):
| Key | Default | Description |
|---|---|---|
enabled |
true |
Master switch |
webhook |
"" |
Bot Webhook (Required) |
secret |
"" |
Sign secret; leave blank for keyword mode |
detailLevel |
detailed |
brief / detailed |
gating |
away |
away / mobileOnly / always |
notifyOnQuestion / notifyOnApproval / notifyOnTurnEnd etc. |
See README | Whether to notify for each event |
minTurnSeconds |
5 |
Turns shorter than this many seconds do not send completion notifications; 0 means send for every turn |
dndEnabled / dndFrom / dndTo |
Optional DND | Can silence during time slots; whether to still notify on errors is controlled by dndExceptErrors |
atMobiles / atAll |
Optional @ | Need to fill in mobile numbers in advanced settings to @ in the body |
Sending diagnostics: ~/.dsh/dingtalk-notify/log.ndjson (one JSON per line: sent / skip / error); the “Diagnostics” section in the panel shows recent decisions and skip reasons.
Scenarios and Caveats¶
Suitable for those who leave DSH running for long periods but do not want to constantly watch the browser: selection, approval, and long task completion are reminded via DingTalk, then you return to the DSH page to operate.
Points to note:
- DingTalk bots cannot receive messages, so approvals cannot be completed in the group; the plugin design is reminder + return to page operation.
- If using tools like dsh-pocket to expose DSH to the LAN and the proxy does not have authentication enabled, interfaces other than the loopback may be accessible by devices on the same network; when exposing the proxy, enable authentication or restrict listening, see the README “Panel Interface” section.
- If other responders (like
dsh-auto-review) take over the “Needs your selection” directly, there might only be completion notifications without selection notifications; the diagnostics area will have records.
Temporary deactivation: Turn off the master switch in the panel, or set enabled to false. To uninstall the web plugin:
dsh plugin --profile web remove dsh-dingtalk-notify
Closing¶
dsh-dingtalk-notify pushes “Time to intervene” and “This round ended” from DSH to DingTalk groups, using gating, Do Not Disturb, detail levels, and diagnostics to reduce false positives and troubleshooting costs. The DSH ecosystem emphasizes “Everything is a plugin”; the community directory is maintained by an independent site and has no official affiliation with DeepSeek / High-Flyer.
- Directory Page: https://www.skillhub.cn/plugins/LapStdy/dsh-dingtalk-notify
- Source Code & Documentation: https://github.com/LapStdy/dsh-dingtalk-notify