DSH 重启插件:可配置的重启方式(Node 原生/旧 PowerShell 适配)、重启后自动继续的提示词、可选看门狗自动拉起。
Restart DSH: configurable restart method (Node native / legacy PowerShell), post-restart continue prompt, optional watchdog auto-relaunch.
安装
dsh plugin --profile web add dsh-restart从 npm 安装预构建包
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
重启整个 DeepSeek Harness 进程的插件,用于重新加载插件与配置(profile 的 cordis 组合、settings 等)。host + client 双半,装进 profile 的 bundle 后即可用。
功能
- 模型工具
restart_harness:让 agent 直接安排一次进程重启(可选delayMs)。 /restart斜杠命令:在 UI 里手动触发重启。- 配置卡片(设置 → 插件 → 插件配置 → 「DSH 重启」):可视化编辑以下设置,改动即时写入
settings.yaml:legacyRestart— 旧 PowerShell/WMI/taskkill 重启方式(默认关闭,用 Node 原生方式)。continuePrompt— 重启后自动继续时注入给 agent 的提示词。watchdogEnabled— 崩溃/关闭时自动拉起 DSH(默认关闭,需谨慎)。watchdogCooldownMs/watchdogPollMs— 看门狗冷却与轮询间隔。
- 「立即重启」按钮:卡片内的同源重启端点。出于安全考虑,仅接受来自环回地址(127.0.0.1 / localhost)的同源 POST 请求;经反向代理/远程访问时该按钮会被拒绝(403)。
安装
- 把包加入 profile 依赖并挂进 bundle:
// profiles/<profile>/package.json
{
"dependencies": { "dsh-restart": "..." },
"dsh": { "profile": { "bundles": ["...", "dsh-restart"] } }
}
- 重启 DSH(
/restart或restart_harness),刷新页面后即可看到卡片。
构建
pnpm install
node scripts/link-dsh-workspace.mjs --source <path-to-deepseek-harness>
pnpm run build
host 半由 tsc 输出到 lib/index.js(@deepseek-ai/* 保持外部依赖);client 半由 tsdown 打成单文件 lib/client.js。
原始 README: https://github.com/anweat/dsh-restart/blob/main/README.md ↗
同类插件
查看全部 →
k8e
k8e.sh — 开源 Agentic AI 沙箱矩阵

hol-guard
开源AI代理防病毒:运行时拦截风险工具、秘密访问、提示注入、恶意软件包、MCP服务器、插件和技能。

anolisa
ANOLISA(Agentic Nexus Operating Layer & Interface System Architecture):具备运行时、安全性、可观测性和 Tokenless 响应压缩能力的 Agentic OS,可降低 Token 使用量与成本。

mobius
首个自我演进的开源 Agent OS:连接你的团队、AI agent、设备与算力

deepseek-harness-desktop
DeepSeek Harness Tauri 桌面版 | Only 5mb installer, zero environment setup. Windows / macOS / Linux.

open-managed-agents
开源Claude管理代理API实现和自托管Claude标签式代理运行时。即插即用;在Cloudflare Workers/Durable Objects或Node.js上运行。Apache 2.0。