dsh-loopx-plugin
loopx-project/loopxLoopX——面向长周期 Agent 的提供商中立、本地优先状态内核与控制平面:在 DeepSeek Harness 执行层之上持久化 Goal、Todo、门禁、证据、配额、恢复与交接状态;插件负责引导安装 CLI 与技能、准入有界的同会话续跑,并为精确绑定的工作循环提供本地 GoalBar。
任务完成后自动关机:右下角按钮开启模式,任务成功完成后进入可取消的倒计时(取消走 shutdown /a),零运行时依赖。
Shut down Windows automatically after DeepSeek Harness tasks complete. Zero-dependency plugin for the DeepSeek Harness web profile.
Run long tasks (batch migrations, model generation, overnight jobs)? Click the "任务完成后关机 / Shutdown after task" button in the bottom-right corner and the computer shuts down once the tasks finish — with a cancellable countdown.
POST /cancel →
shutdown /a) — no reliance on the OS notification that cannot be cancelled.
The banner is anchored to the button's current position.agent/error is skipped (banner notice), mode
stays armed.npm (recommended, published):
dsh plugin --profile web add dsh-shutdown-after-task
or from GitHub:
dsh plugin --profile web add github:virggle/dsh-shutdown-after-task
Restart DSH, then refresh the page (Ctrl+R) if the button does not appear.
Edit the profile's cordis.patch.yml:
- id: dsh-shutdown-after-task
config:
countdownSec: 60 # countdown seconds (10–600, default 60)
marginSec: 5 # extra seconds on the OS `shutdown /t` (0–60, default 5)
onlyOnSuccess: true # shutdown only on a clean batch (false = shut down either way)
| Item | Detail |
|---|---|
| Trigger | after arming, all root sessions go idle |
| Success check | no agent/error in the batch (when onlyOnSuccess: true) |
| Countdown | countdownSec s, live banner, cancel button |
| OS command | shutdown /s /t <countdownSec + marginSec> at countdown start |
| Cancel | GUI button (exits mode) / new task during countdown (keeps mode) |
| State | GET http://127.0.0.1:<port>/api/dsh-shutdown-after-task/state |
$DSH_HOME/dsh-shutdown-after-task.log — mount, arm, trigger, and cancel events.
webServer.tapIndex injects the UI script
into every index response; host HTTP routes back the state and actions.
No client bundle, no build step.agent/status / agent/error (see @deepseek-ai/dsh-agent
runtime-types).shutdown.exe); inert with a log line on other platforms.dsh plugin --profile web remove dsh-shutdown-after-task
MIT