Introduction¶
When running long tasks in DeepSeek Harness (dsh), a common pain point is not knowing when they end, forcing you to repeatedly switch back to the window to check. System toasts require you to be sitting at your computer; Web Push or PWA usually requires a public-network tunnel and HTTPS, along with the risk of exposing dsh to the public internet; third-party push services like PushPlus, Bark, ntfy, and Telegram require account registration, real-name verification, or a VPN.
Email is a channel that most people already have, is globally reachable, and does not depend on third-party push accounts. However, plain email notifications tend to pile up your inbox with duplicate “task completed” emails after leaving a task running overnight.
Below is the community plugin dsh-mailbox-notify (maintainer wuuuuu123-32): it sends emails when a task ends, an approval is stuck, or a question is blocked; before sending a new notification, it uses IMAP to clean up old notifications with a fixed prefix from the inbox; it has zero dependencies, listens on no ports, and only reads a local config file.
What Is This¶
dsh-mailbox-notify is a task notification plugin for DeepSeek Harness (current package version 1.3.2, MIT license). It sends mail through user-configured SMTP, deletes old mail via IMAP, and optionally uses ntfy as a supplementary channel. The plugin does not click approvals on your behalf or write business files—it only listens to session events and sends notifications according to rules.
Categories (SkillHub): notification, Host, productivity; the run scope is host. Requires Node >=20, dsh >=0.1.0-rc.5.
Core Features¶
Email Notifications and Old Mail Cleanup¶
- Supports any SMTP mailbox (QQ, 163, Gmail, Outlook, self-hosted, etc.); both 465 implicit TLS and 587 STARTTLS forms work.
- Notification email subjects uniformly carry a
[dsh-notify]prefix (can be changed viamailTag); before sending each new notification, it searches and deletes only the previous email with the same prefix inside INBOX, without scanning other folders. - The body includes the session title, session ID, and workspace; the subject also includes a snippet of the session title (up to 40 characters), making it easy to distinguish between parallel tasks in a mobile email list.
Approval and Question Timeout Reminders¶
In dsh permission approvals, approval/asked and approval/decided appear in pairs in the log. The plugin starts timing from asked; if no decided appears within the default 60 seconds (approvalTimeoutMs), it sends a reminder. The body explains the session, tool, reason, and elapsed wait time; multiple timed-out approvals within 3 seconds are merged into the same email. Set approvalTimeoutMs to 0 to disable.
In standard mode, ask_user_question is detected via tool/call and its paired tool/result (paired by message.source.callId); in PTC mode, it recognizes tool/ptc-dispatch-start and tool/ptc-dispatch (by subCallId). The timeout defaults to 60 seconds as well (questionTimeoutMs), and the email includes the original question text and candidate options. Approval and question reminders do not depend on the notifyOn setting.
When “Task-Type” Notifications Are Sent¶
With the default notifyOn: "goals":
| Situation | Send? |
|---|---|
| Error / interruption | Always |
| Goal completed / blocked | Always |
Single turn duration ≥ longTaskMs (default 3 minutes) |
Yes |
Single-turn tool calls ≥ minToolCalls (default 5) |
Yes |
| Ordinary short Q&A, chit-chat | No |
For a quieter setup, set notifyOn: "errors" (only errors; approval/question reminders remain); to receive notifications for every turn, set "all". Same-type successful notifications have debounceMs (default 60 seconds) debounce to prevent spam.
Other¶
- Optional ntfy (
channel:ntfyorboth); the phone must be able to connect to the corresponding push environment. - SMTP/IMAP is implemented manually with
node:tls, with no extra dependencies like nodemailer; it listens on no ports. - After configuring
link, a “Handle: …” link can be appended at the end of the email, making it easy to jump back to dsh on the phone to click approvals.
Installation and Activation¶
The package is not published to npm; install from GitHub (command from the README):
dsh plugin --profile <your profile> add github:wuuuuu123-32/dsh-mailbox-notify
<your profile> is usually desktop (desktop app) or web (dsh web). After installation, restart dsh (for the desktop version, quit DeepSeek Harness from the tray and open it again; for dsh web, restart the process).
If installation stalls at git+ssh, you can first run:
git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"
For local development, you can link a directory: dsh plugin --profile <profile> add link:<local path>.
Configuration¶
Copy the plugin’s config.example.json to ~/.dsh/mailbox-notify.json (Windows: C:\Users\<username>\.dsh\mailbox-notify.json), and fill in the SMTP/IMAP and recipient address. Example for QQ Mail:
{
"channel": "mail",
"mail": {
"host": "smtp.qq.com",
"port": 587,
"starttls": true,
"user": "your-email@qq.com",
"pass": "your SMTP authorization code",
"to": "your-email@qq.com"
},
"imap": {
"host": "imap.qq.com",
"port": 993
},
"link": "https://your-dsh-address/"
}
Pick one of the two port/encryption combinations: 587 + "starttls": true (recommended in the README), or 465 + "starttls": false. The README notes that on 2026-10-12, direct TLS on QQ’s port 465 may report wrong version number; if you don’t receive mail, you can first test SMTP separately with the bundled node test-mail.mjs.
pass should be the mail provider’s SMTP authorization code (not the login password). QQ Mail requires enabling POP3/IMAP/SMTP in the web settings and generating an authorization code; IMAP usually uses the same switch as SMTP.
Common config options also include: notifyOn, longTaskMs, minToolCalls, cleanupOld, approvalTimeoutMs, questionTimeoutMs, debugTrace, etc.; environment variables can override some of them (e.g. DSH_NOTIFY_CHANNEL, DSH_NOTIFY_SMTP_USER, etc.—see resolveConfig in the source for the full list).
Typical Usage¶
- Install the plugin as described above and restart dsh.
- Write
mailbox-notify.json, making sure the SMTP sending account and the IMAP deletion account match, or thattois the mailbox you want to monitor. - Run a longer task or trigger a permission approval in dsh; if the approval is not handled in the GUI within 60 seconds, you should receive an email with the subject
[dsh-notify] 🔐 awaiting approval. - When troubleshooting, set
"debugTrace": trueand check the mounts, events, and send results in_trace.logunder the plugin directory.
Example notification body (completion type):
[dsh-notify] ✅ Done · Optimize the notification format of the email reminder plugin
Session: Optimize the notification format of the email reminder plugin #8eda7b93
Workspace: D:\dsh\config
Called tools 12 times
Took 3min 20s
Handle: https://your-dsh-address/
Time: 2026-09-19 23:17:51
Use Cases and Notes¶
Suitable for: developers who want to receive dsh task results via their own email without installing a third-party push app; people who are often away from their computer but can receive email on their phone; scenarios where passive reminders are needed when approvals or ask_user_question get stuck.
Notes:
- The plugin runs with the current dsh process privileges and will connect to the SMTP/IMAP you configured (and optionally ntfy.sh); before installing, it is recommended to browse the source code and MIT license of the GitHub repository to confirm that the network egress policy is acceptable.
- Authorization codes are sensitive; do not commit them to version control; the config file stays only on the local machine under
~/.dsh/. - IMAP cleanup only touches INBOX emails with the
mailTagprefix; under concurrency or sync delays, multiple notification emails may briefly coexist in the inbox. - The DeepSeek Harness community plugin directory (SkillHub) is an independent site with no official affiliation with DeepSeek / High-Flyer; the facts in this article are based on the repository README and
package.json.
Conclusion¶
dsh-mailbox-notify unifies two kinds of needs—“moments when a task is worth interrupting you” and “approvals/questions stuck”—into the email channel, and uses IMAP to control the number of notification emails. If you are already using dsh and have an SMTP mailbox, you can follow the README installation command to connect it, then verify the channel and trigger conditions with test-mail.mjs and debugTrace.