DeepSeek Harness plugin

dsh-shutdown

DeepSeek Harness 关机插件:Settings 增加「关机」页,一键优雅退出 DSH 服务(先响应页面再退出进程)。

Jump to install

Source facts

Repository
knlght/DSH-shutdown
Latest update
Aug 14, 2026
Category
Development & Runtime
GitHub stars
3
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/knlght/DSH-shutdown
Plugin: dsh-shutdown
Author: knlght

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-shutdown

<!-- Hero --> <div align="center"> <b style="font-size: 1.15em;">一键结束 DSH 服务</b><br /><br /> Settings「关机」页 · 二次确认 · 优雅退出<br /><br /> <b>关掉浏览器不再留下后台进程</b>。 </div>

<div align="center"> 🌏 <a href="./README.md"><b>中文</b></a> · <a href="./README_EN.md">English</a> </div>

✨ 为什么需要

关闭浏览器不会结束 dsh 的后台服务进程——服务继续占用端口与内存。本插件在页面内提供一键关机入口,无需命令行。

✨ 功能一览

  • 🖥️ Settings「关机」页:侧栏最底部新增「关机」页签
  • 🛡️ 二次确认:点「关闭 DSH 服务」→ 出现「确认关闭 / 取消」双按钮,防误触
  • ✅ 成功反馈:确认后页面立即显示绿色「关闭成功」面板(并尝试自动关闭标签页)
  • 🎨 原生风格:按钮与配色全部引用 DSH 主题 token(--dsw-alias-*),明暗自适应

📦 安装

dsh plugin --profile web add <本仓库 / npm 包名>
# 重启 dsh web 生效

🧠 设计要点

  • 关机端点:/_dsh/shutdown(仅 POST)——服务先返回「正在关闭」响应,500ms 后 process.exit(0) 优雅退出
  • 会话日志为逐事件落盘,空闲时退出安全;正在进行的对话请等待其完成后再关闭
  • 浏览器安全策略下脚本只能关闭自己打开的窗口——手动打开的标签页会保留「关闭成功」面板,两种情况下你都能确认结果

🧩 生态

打上 <a href="https://github.com/topics/dsh-shutdown"><code>dsh-shutdown</code></a> topic 的插件可接入同一生态。欢迎通过 PR 改进本插件。

📄 许可

[MIT](./LICENSE)