dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DSH 邮件通知插件,带一个「离开模式」开关:任务完成、工具等你授权、助手向你提问时发邮件给你;标题与正文都是可自定义的模板。
简体中文 · English
An email notification plugin for DeepSeek Harness (DSH): when you step away from your machine, DSH emails you.
Whether mail goes out at all is decided by the Away Mode button in the session header: tap it before you leave, tap it again when you're back. Zero dependencies, sends directly from your machine over SMTP (QQ Mail / 163 / Gmail / Outlook / self-hosted). All settings live in the DSH settings panel — no CLI flags, no hand-edited JSON.
dsh plugin --profile web add github:Vergil-long/dsh-email-notify
Then:
On Windows you can also double-click 安装邮件通知.cmd from the repo. To install from a local checkout:
dsh plugin --profile web add link:/absolute/path/dsh-email-notify (keep the path free of spaces, or pnpm
fails with ERR_PNPM_SPEC_NOT_SUPPORTED). Uninstall: node scripts/install.mjs --uninstall.
To upgrade: node scripts/update-all.mjs — syncs the plugin code and re-applies the desktop-shell false-notification patch in one go.
The button at the right end of the session header is the master switch:
| Button | Behavior |
|---|---|
Away: on | Every notification you enabled is mailed, whether or not you're watching the UI |
Away: off (default) | Nothing is mailed, ever |
Away: auto (button dimmed) | "Auto mode" is on in advanced settings: old behavior, mail only when you're judged away |
Why not let the plugin guess: the only signal it has is window focus, and "the person left but the window is still open — even focused" is the most common case of all. Auto-detection then assumes you're watching, and you get nothing on your phone. So the decision stays with you. The state persists across restarts.
Subject and body are editable templates with 15 placeholders ({session}, {status}, {summary}, {duration}, …), with a live preview in the settings panel. The default body is short on purpose — something you can glance at on a phone:
Workspace: F:\Space For AI work\harness
Session: dsh-email-notify
Status: completed
Away mode: on
Sent by dsh-email-notify
"Awaiting your answer" mails expand to include the question and options; the task stays paused until you answer in the DSH window.
The basic page has just two boxes: account and credential. SMTP server, notification timing, rate limits and auto mode all live behind the "Advanced ▸" sub-page and work out of the box. Config is stored in ~/.dsh/dsh-email-notify/config.json; the credential never leaves your machine and is never echoed back to the UI.
Full field reference, the complete placeholder table, and the environment-variable option: docs/配置参考.md (Chinese)
| Symptom | Why |
|---|---|
| No mail at all after installing | Away Mode ships off. Turn it on in the session header |
535 error | QQ Mail needs the 16-digit authorization code, not your login password |
| Log says "config incomplete, skipping" | Something is still empty; the panel header lists what's missing |
| Subject has no task name | Since 0.3.0 the sidebar session name is used; "(unnamed session)" means the title hadn't been generated yet |
Literal {session} in the mail | The host half is outdated. Run node scripts/verify-live.mjs, then sync and restart |
| Anything else | See docs/测试与排查.md (Chinese) |
MIT. Built as a human–AI pair: requirements and trade-offs decided by Vergil-long; code, tests and docs written by DeepSeek Harness.