Preface¶
When running long tasks in DeepSeek Harness (DSH), the common practice is to keep an eye on the interface waiting for each turn to end, or to repeatedly open the client on a phone to check progress. If you are away from your computer, approval popups and multiple-choice questions can only be dealt with later upon your return. The dsh-mail-digest plugin described below takes a different path: it sends a Chinese summary of appropriate length to your email after each round of answering concludes; when you need to continue the conversation or allow an operation, simply reply to the email. There is no need to modify configuration files or install additional SMTP dependency libraries—sending and receiving are implemented locally using zero-dependency SMTP + IMAP.
What is this¶
dsh-mail-digest is released by community maintainer Xixixiao2007 and is categorized as a “Networking Tool” plugin in the DSH community directory (currently with 0 GitHub stars). It subscribes to DSH’s end-of-turn events, compressing the round’s answer into a summary email. It also optionally enables a reply channel, allowing you to answer via email, continue the session, or approve single tool operations via reply under the ask permission policy. Configuration is centralized in a local web settings page, with authorization codes stored locally in %USERPROFILE%\.dsh\dsh-mail-digest\config.json.
DeepSeek Harness’s ecological philosophy is “Everything is a plugin”; both the SkillHub directory page and the GitHub repository are community sources and have no official affiliation with DeepSeek / High-Flyer.
Core Features¶
Per-turn Email Digest¶
- An email is triggered when a round of tasks ends. It does not move the full text into the inbox, nor does it truncate at a fixed word count; the length varies depending on the amount of conclusion.
- Summary sources follow this priority: Agent calls the
mail_digesttool to submit → Current model compression → Deterministic fallback concatenation. - Subject examples:
[DSH] ✅ Session Name [DSH-T:k3f9a2x8m1qp]; errors are marked with⚠️, and aborts with⏹️. The token at the end differs for each email and is used for reply verification. - If there are pending permissions to approve, the subject will be marked with
⚠N items pending, and the body will contain a fixed “Permissions awaiting your approval” list (persisted inpending-permissions.json).
Reply to Continue and Answer¶
- Write instructions or options in the body, keep the subject unchanged (including markers like
[DSH-T:...]/[DSH-Q:...]). - For multiple-choice questions, you can write
1. Afollowed by a new line2. B, or a single line1. A 2. B; for single questions, you can directly writeA; if you are not satisfied with the options, just write the content you want. - The incoming mail polling is approximately one round every 15 seconds by default, so replies are not instantaneous; the sender email address must be the configured recipient address, otherwise it will be discarded.
Email Approval (ask policy)¶
- When a tool requires elevation and the policy is
ask, the plugin can send the approval request to your email; the body should contain clear options like1/Allow/Approveor2/Deny. - Single-time permission is
allowed-once; if no reply is received within 10 minutes, it defaults to denial. Interface popups and emails are valid in parallel. - It cannot bypass DSH’s
neverpolicy; if the email box is compromised, the approval capability is exposed as well, which is a real security trade-off.
Mailbox and Local Implementation¶
- Pre-configured for QQ / 163 / 126, or custom SMTP; if no STARTTLS, sending authorization codes is rejected by default. For local relays, you need to check “Allow unencrypted sending” in the settings page.
- Incoming mail passes through three gates: The subject token must have been issued by this plugin, the sender must be the configured recipient address, and
References/In-Reply-Toshould match the originalMessage-IDas much as possible (when missing, it relies on the first two gates).
Rules for the Agent¶
The installation script writes rules related to summaries, replies, and permissions into the managed block of ~/.dsh/AGENTS.md (repeated installation replaces it; uninstallation only deletes this block); there is also a plugin-internal tool description and the repository AGENTS.md. For the full text of the rules, see AGENTS.dsh-mail-digest.md in the repository.
Installation and Activation¶
Execute in a normal PowerShell window (do not use the DSH sandbox, as the sandbox cannot write to ~\.dsh):
# One-click script (works for both install / uninstall)
powershell -ExecutionPolicy Bypass -File .\安装邮件摘要.ps1
powershell -ExecutionPolicy Bypass -File .\安装邮件摘要.ps1 -Uninstall
Or manually in two steps: First, create a junction for @deepseek-ai in the plugin directory pointing to the DSH official package in the npx cache, then execute:
dsh plugin --profile web add "link:$($PWD.Path)"
After installation, restart DSH (quitting the desktop app will restart the backend as well), and open the settings page in a browser:
http://127.0.0.1:3080/dsh-mail-digest
Uninstall (from README):
dsh plugin --profile web remove dsh-mail-digest
Configuration files are not automatically deleted; you need to manually clean up %USERPROFILE%\.dsh\dsh-mail-digest\.
Configuration Essentials¶
The settings page has five sections: Email type, Sender address, Authorization code (not login password), Recipient address (leave empty to send to yourself), and whether to enable the reply channel (depends on IMAP). After saving, click “Send Test Email”; if you want to use replies, click “Test Incoming” (only verifies IMAP login, does not read email content). The interface always displays the authorization code as empty.
| Symptom | Solution |
|---|---|
535 Authorization code error |
Enable IMAP/SMTP in the webmail and generate a dedicated authorization code |
| Subject marker gets spaces inserted after replying via QQ | Client display issue; the plugin can recognize it. Do not manually change the subject |
| No reaction to reply | Keep the subject marker; sender must be the configured recipient address; wait about ten seconds |
Behavior switches (excerpt): Enable summary by default; do not send for sub-agent turns by default; maximum 6 emails per minute; mark successfully processed replies as read by default.
Typical Usage¶
Receive Digest¶
The email body usually contains the session name, workspace, round duration, and a prompt saying “Reply to this email directly to continue the conversation (keep the subject unchanged)”.
Reply to Continue Task¶
After receiving the digest, simply write a one-sentence instruction in the body; for approval emails, reply with one item according to the number.
Local Self-check (No Mail Sending)¶
In the plugin repository root directory:
node smoke.mjs
node test-reply.mjs
node test-bridge.mjs
node test-mime.mjs
node test-smtp.mjs
The README states a total of 328 items; the installation script also includes test-installer.ps1.
Use Cases and Notes¶
Suitable for: Running long DSH tasks and wanting to see progress via mobile email; frequently leaving the computer but still needing to continue conversations or occasionally approve ask permission operations; users of QQ / 163 / 126 or self-hosted SMTP.
Notes:
- The plugin runs with the current DSH process permissions; please review the GitHub Source Code and MIT license yourself before installation.
- Sending failures are not retried; there is an additional Token overhead when the model participates in compressing summaries; if the profile enables
@deepseek-ai/dsh-experimental-auto-reviewand the session is an Auto preset, themail_digesttool may be asked for authorization (the tool itself does not send mail; actual SMTP is on the end-of-turn path and does not go through Auto review). - If conflicting with “Auto review”, you can adjust the session permission preset or remove that experimental plugin.
Conclusion¶
dsh-mail-digest connects “per-turn progress” and “offline continuation / single approval” to your existing mailbox. Configuration is completed on a local web page. The summary emphasizes being self-contained, and replies rely on subject tokens and a sender whitelist to prevent accidental triggering. Version 0.1.0 (see repository package.json).
- Directory Page: https://www.skillhub.cn/plugins/Xixixiao2007/dsh-mail-digest
- GitHub: https://github.com/Xixixiao2007/dsh-mail-digest