DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Auto Shutdown — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
A

@873360545/dsh-auto-shutdown

Auto Shutdown

仅限 Windows 的 DSH 插件:在 Settings → General 中提供一个开关,可在当前对话结束时关闭电脑,并显示原生倒计时对话框,单击即可取消关机。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:873360545/dsh-auto-shutdown#a2af408455e31a0acf4021e3383d1384dcb7aebc
README兼容性版本

兼容性与来源证明

Auto Shutdown 以 @873360545/dsh-auto-shutdown 发布,当前版本为 0.3.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/19

版本

0.3.0stable
2026/10/19

相关插件

正在加载相关插件…

最新版
0.3.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/19
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 productivity-workflow 分类下经过校验的插件。

Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Experimental Schedule Bundle@deepseek-ai/dsh-experimental-schedule-bundle为 Web 组合添加 Schedule、其任务页面和时间上下文的可选捆绑包Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / git-graph / pet / remote-web-ui / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Ab Ocrdsh-ab-ocr--- description: "外部 ocr 工具:逐页识别扫描的 PDF 或图像,仅在处理完最后一页后按顺序合并页面,并使用模型确定的标题级别保存为一个 Markdown 文档。" kind: "package-reference" ---

README

dsh-auto-shutdown

中文说明 · Windows only · works with DeepSeek Harness ≥ 0.2.1

A DeepSeek Harness plugin that adds one switch in Settings → General: turn it on, and the computer shuts itself down when the next conversation finishes — with a native Windows dialog that can cancel the pending shutdown with a single click.

Install

dsh plugin add github:873360545/dsh-auto-shutdown

Or install a prebuilt tarball from a GitHub Release:

dsh plugin add https://github.com/873360545/dsh-auto-shutdown/releases/latest/download/dsh-auto-shutdown.tgz

Then restart the Harness (Host restart is enough) and look for the plugin entry auto-shutdown in the profile.

Use

  1. Open Settings → General and find “Power off after the conversation finishes”.
  2. Turn it on.
  3. Finish a conversation: when that turn ends, the plugin
    • resets the switch to off (it is a one-shot trigger, never re-armed by a reboot),
    • schedules shutdown.exe /s /t <delaySeconds>,
    • opens a desktop countdown dialog.

The dialog offers:

ButtonResult
Cancel shutdownruns shutdown /a; the machine stays up
Keep shutdown / close / countdown reaching zerothe planned shutdown happens

You can also cancel from any terminal with shutdown /a.

Configuration

All three fields are editable live from the Settings page and the Plugins page — no restart.

FieldDefaultMeaning
enabledfalseThe switch. It is set back to false right before a shutdown is scheduled, so the trigger fires exactly once.
delaySeconds60Shutdown delay in seconds (5–86400). The dialog countdown mirrors it.
popuptrueWhether to show the cancel dialog at all.

Safety notes

  • No administrator rights are required; shutdown /s /t is available to the logged-in user.
  • Only a root conversation can trigger it: turns of subagents/teammates are ignored, and if another agent is still running the trigger waits for the next turn boundary.
  • DSH_AUTO_SHUTDOWN_DRYRUN=1 in the Host environment logs the two commands instead of running them — useful for testing the wiring.
  • DSH_AUTO_SHUTDOWN_POPUP_LOG=<file> makes the dialog append its user actions to a file.
  • The dialog only ever runs shutdown /a; it never schedules anything.

How it works

  • Host half (lib/index.js): listens to the agent/turn-stopping event, filters to root agents, latches once, writes enabled = false through the Settings service, then spawns shutdown.exe. It is a validated Cordis plugin (Config with volatile fields), so the switch is a real Settings document write.
  • Cancel dialog (lib/popup.js + assets/notify.ps1): a detached Windows PowerShell 5.1 WinForms window with a countdown (always-on-top when ≤ 120 s). Its copy is passed as argv and the script itself stays ASCII-only, so a non-UTF-8 code page cannot mangle Chinese text.
  • Client half (lib/client.js): registers one settings.general.item row that renders the switch from ctx.configForms, i.e. from the Host's own configuration form.

Development

# schemastery is only resolvable through a junction when testing outside the profile
New-Item -ItemType Junction -Path node_modules\@deepseek-ai\schemastery `
  -Target "C:\Users\<you>\AppData\Roaming\DSH\data\versions\<version>\node_modules\@deepseek-ai\schemastery"

$env:DSH_AUTO_SHUTDOWN_DRYRUN = '1'
node test-dry-run.mjs        # host logic: filtering, disarm, argv, one-shot
node tests/popup-test.mjs    # real window: self-close, cancel path, failure path, shutdown /a
Remove-Item -Recurse -Force node_modules

tests/popup-test.mjs uses -SimulateCancel -TestCancelCommand 'cmd /c exit 0' style test switches, so it never touches a real pending shutdown.

Layout

FileRole
lib/index.jsHost plugin: event trigger, disarm, spawn shutdown.exe
lib/popup.jsCancel-dialog argv builder + launch (shared with the tests)
lib/client.jsSettings row with the switch
assets/notify.ps1Windows PowerShell/WinForms countdown dialog
cordis.patch.ymlInserts the Host entry auto-shutdown
locale/*.jsonPlugin list title/description

License

MIT


中文说明

Windows 专用。为 DeepSeek Harness 增加一个设置开关:打开后,下一次对话完成时自动关机, 并在关机前弹出一个原生 Windows 对话框,点一下即可取消本次关机。

安装

dsh plugin add github:873360545/dsh-auto-shutdown

安装后重启 Harness(重启 Host 即可),插件条目为 auto-shutdown。

使用

  1. 设置 → 通用 → 找到「对话完成后自动关机」,打开开关。
  2. 正常结束一次对话,此时插件会:
    • 把开关自动复位为关闭(只触发一次,重启后不会突然关机);
    • 执行 shutdown.exe /s /t <延迟>;
    • 弹出倒计时对话框。
  3. 对话框里点「取消关机」→ 执行 shutdown /a,电脑保持开机;点「继续关机」/ 直接关窗 / 倒计时归零 → 按计划关机。也可以在终端随时执行 shutdown /a 取消。

配置项(均可在设置里实时修改,无需重启)

字段默认值说明
enabledfalse开关。排定关机前会自动写回 false,保证只触发一次。
delaySeconds60关机延迟秒数(5–86400),也是弹窗倒计时时长。
popuptrue是否弹出取消窗口。

注意事项

  • 不需要管理员权限。
  • 只有根会话能触发:子 Agent / 团队成员回合会被忽略;若还有其它 Agent 在运行,会推迟到下一次回合边界。
  • 设 DSH_AUTO_SHUTDOWN_DRYRUN=1 可只打日志、不真的关机;设 DSH_AUTO_SHUTDOWN_POPUP_LOG=<文件> 可记录弹窗里的用户操作,便于排障。
  • 弹窗只会执行 shutdown /a,不会自己排定任何关机。

许可

MIT