DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-power-after-task

Power After Task

适用于 Windows 的 DeepSeek Harness (DSH) 插件:当前代理任务完成后让电脑进入睡眠、关机或重启。默认禁用;可通过紧凑的 composer-dock 控件启用,并查看可随时取消的全界面倒计时横幅。无需依赖项,无需构建步骤。

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-power-after-task@1.0.1
README兼容性版本

兼容性与来源证明

Power After Task 以 dsh-power-after-task 发布,当前版本为 1.0.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

1.0.1stable
2026/10/27

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Client Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。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 包。Archive Manager@michengai/dsh-archive-manager归档、恢复、收藏和永久删除会话,并诊断损坏的会话日志。Remotedsh-remoteDeepSeek Harness 的远程工作助手:连接 SSH(密码/密钥/代理/键盘交互、多跳 ProxyJump),从 ~/.ssh/config 列出主机,选择远程工作区,使用 21 个 rw_* 工具对其进行操作,支持感知冲突的镜像同步、内嵌 PTY t

README

dsh-power-after-task

Windows Sleep / Shut down / Restart after the current agent task finishes — a compact, disabled-by-default DeepSeek Harness plugin.

Nothing happens on its own: the power command only runs after you press Arm, the agent has actually stopped working, and the grace countdown expires. Cancel at any point returns it to off.

Requirements

  • Windows host — power commands are Windows-specific; other platforms are rejected with an error.
  • Web composition (dsh web): the dock control talks to the Host over this plugin's own HTTP route; a Desktop page has no web server, so no control appears there.
  • Node 20+ for the Harness Host. No build step, no dependencies.

Install and enable

Plugin Manager → Install bundle → dsh-power-after-task

The bundle's patch inserts the plugin row with disabled: true, so installing changes nothing else. Enable when you need it via Settings → Plugins → Power after task; the dock entry appears within about two seconds, and disabling the row (which also clears every pending arm) removes it again — no page refresh needed.

UI

One entry in the composer dock, beside Activity and Usage:

  • Idle — just a small power icon.
  • Click — expands inline into two drop-downs (Action, Grace) and an Arm button.
  • Armed — icon shrinks and lights up (brand while waiting, amber while counting), a Cancel button appears; hover shows action + remaining time. No status text by design.

While a countdown runs, a wide semi-transparent ribbon (registered in shell.overlay) shows a large m:ss.mmm timer, a tiny Until sleep / Until shut down / Until restart caption, and a Cancel button. The layer is click-through — only Cancel takes pointer events — and a failed power command keeps the ribbon visible with the error.

All colours are --dsw-alias-* theme tokens, so dark/light follows the Harness theme automatically.

When the task counts as finished

The task is the whole span between your prompt and the agent's turn stop — across steps, continuations, and subagents. It counts as finished when the agent answers, errors out without a result, or you cancel; also if the session is archived/removed while armed. It does not fire while a goal driver or continuation is still running, and any new message puts the countdown back to waiting. Detection uses the session-status signal (api-session/status), not a guess.

Arm → waiting → agent goes idle → grace countdown → power command
      ↑ new activity returns here                Cancel → off

Grace (default 45 s, choices 15 s / 30 s / 1 m / 2 m / 5 m, cap 3600 s) is the cancellable gap between "finished" and "fires" — long enough to rescue a mis-click or unsaved work.

Commands run: shutdown.exe /s /t 0, shutdown.exe /r /t 0, or Sleep via kernel32!ApplicationSuspend (deliberately not rundll32 SetSuspendState, which hibernates when hibernation is enabled; rundll32 is only the fallback).

Agent tool

power_after_task — action: status | arm | cancel | execute, session, power: sleep | shutdown | restart, grace_seconds. execute fires immediately and is not reachable from the HTTP route; the page can only Arm and Cancel.

Configuration

Set in cordis.patch.yml (override with your own patch):

KeyDefaultMeaning
defaultActionshutdownPreselected action: sleep · shutdown · restart
graceSeconds45Countdown after finish; capped at 3600

Security

Arm/Cancel refuse requests that prove they are not this page: non-loopback Host (DNS rebinding), browser-reported cross-site Sec-Fetch-Site, or non-loopback Origin. Requests carrying none of that evidence pass — that is the Harness page transport (it forwards Cookie but not fetch metadata) or a local process, which could run shutdown.exe directly anyway. Route: POST /power-task/arm, POST /power-task/cancel, GET /power-task/state, GET /power-task/debug. See SECURITY.md.

Files

FileRole
index.jsHost half: /power-task route, session watcher, countdown, Windows power commands, tool
client.jsUI half: composer-dock control + shell.overlay countdown ribbon
cordis.patch.ymlPlugin row, disabled by default, with config
locale/en.json, locale/fa.jsonPlugin Manager title/description
icon.svgPlugin Manager artwork

Troubleshooting

SymptomFix
No dock entryRow is disabled — enable it in Settings → Plugins
Arm answers 403Read GET /power-task/debug → lastPost: host, secFetchSite, origin, accepted. A non-loopback host means a proxy or foreign hostname
Ribbon missing after upgradeRefresh the page once to load the new client bundle
… failed in the ribbonCommand rejected — power settings, hibernation/fast-startup, shutdown privileges; Cancel clears state
Nothing firesSession is still running (goal continuation, subagent, queued message)

Development and releases

See CONTRIBUTING.md — checks (npm run check), local debugging, and the staged npm release flow.

License

MIT — see LICENSE.