DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
S

dsh-shutdown-idle

Shutdown Idle

DSH plugin: runs a power action (shutdown / restart / hibernate / sleep / lock / logoff) once every Agent session and background job has gone idle. The toggle never survives a host restart, and the countdown is always cancellable.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:liaoyuqing/dsh-shutdown-idle#e70ea4546fddb31eac2ed364c70fc4fc68030153
READMECompatibilityVersions

Compatibility and provenance

Shutdown Idle is published as dsh-shutdown-idle and currently resolves to version 1.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/26/2026

Versions

1.1.0stable
10/26/2026
1.0.0stable
10/18/2026

Related plugins

Loading related plugins…

Latest
1.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/26/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in productivity-workflow.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseExperimental Schedule Bundle@deepseek-ai/dsh-experimental-schedule-bundleOptional bundle that adds Schedule, its task page, and time context to the Web compositionClient Ui Task Board@linxin666/dsh-client-ui-task-boardHost-authoritative task board for the DSH Web GUI with real session execution, Host cron scheduling, and optional cross-platform idle-sleep protection; mounted without DSH source changes.Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / pet / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。

README

dsh-shutdown-idle

DSH 插件:开启后,等所有会话都结束(没有任何 Agent 在跑)并保持空闲,自动执行关机(也可选重启 / 休眠 / 睡眠 / 锁定 / 注销)。

English README: README.en.md

安装

dsh plugin add liaoyuqing/dsh-shutdown-idle

或从源码安装:

dsh plugin add link:/path/to/dsh-shutdown-idle

用起来

  1. 打开「设置 → 会话结束后关机」,点 开启。
  2. 正常派活给任意会话;所有会话的回合结束后,插件先等 空闲确认 秒,再进入 倒计时 秒。
  3. 倒计时结束即执行所选动作。期间任何会话重新开始运行,或点界面上的 取消,这次动作都会被撤销。

右上角(浮层右下角)在开启后会常驻一张小卡片,显示当前阶段与剩余秒数,并带「取消」按钮。按住卡片标题即可拖动:松手后位置写进浏览器 localStorage(键 dsh.shutdown-idle.pill.position),下次打开停在原处;拖动过程始终夹在视口内(留 8px 可见),窗口变小也会自动收回视野。从「取消」按钮上按下不会误触发拖动。

判据

  • 会话进行中 = ctx.get('agents').list() 里存在 status === 'running' 的 Agent(与 dshmarket 的更新守卫同一判据)。这一条固定生效,不可关闭。
  • 后台任务 = ctx.get('jobs') 中 status === 'running' 的作业(含各存活会话名下的作业),即 DSH 界面里的「后台任务」;由配置项 considerJobs 决定是否检测,关掉后完全不再统计。
  • 拿不到 agents 服务时按 不空闲 处理:宁可不执行,也不误关机。
  • 「必须观察到会话运行过」默认开启:刚开启且没有任何任务时不会执行动作。

参数

参数默认说明
动作shutdownshutdown / restart / hibernate / sleep / lock / logoff / none(none = 只记录不执行)
空闲确认20 秒全部空闲后先确认这么久,避免回合间隙被误判为结束
倒计时60 秒可取消的执行前倒计时
必须观察到会话运行过是防止刚开启就执行
后台任务也算占用(considerJobs)是关掉后完全不再检测后台任务(shell 作业)

设置页把这几项收在「什么算『还在忙』」区块里:会话在跑固定算忙,下面两个复选框是配置项。

初始值来自本包 cordis.patch.yml 的行 config;界面改动写入 <DSH_HOME>/dsh-shutdown-idle/settings.json 并优先生效(删除该文件即回落到 patch 初始值)。

开关状态不持久化:宿主重启后一律是「关闭」,避免开机即误关机。

接口

方法路径说明
GET/dsh-shutdown/api/state开关、阶段、倒计时、运行中会话/作业
POST/dsh-shutdown/api/config{ enabled?, action?, settleSeconds?, countdownSeconds?, requireActivity?, considerJobs? }
POST/dsh-shutdown/api/cancel取消倒计时并关闭开关
GET/dsh-shutdown客户端半不可用时的兜底页面

平台

动作命令是 Windows 自带的 shutdown / rundll32。非 Windows 平台上,除 none 外的动作会被降级为 none 并在界面标注,不会执行命令。

字段一览

  • host.mjs — Host 半:状态机、HTTP 接口、命令派发、兜底页面。
  • client.js — 浏览器半:设置页分区 + shell.overlay 浮层卡片(可拖动,useDraggable 负责指针捕获、边界夹取与位置持久化)。
  • cordis.patch.yml — bundle 补丁:插入插件行与初始配置。

升级宿主半代码后就地改 host.mjs 并同步 package.json 的 main / exports:config-only 热重载不会重新加载同一路径的模块,改完需要让 Loader 重新 import(重启该 profile,或临时改补丁行里该条目的 id 再改回)。