DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Restart — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@try-works/dsh-restart

Restart

作为 DeepSeek Harness bundle 的自唤醒主机重启:dsh_restart 工具会重启 DSH 主机、记录决策,并在主机重新监听后向每个活跃会话排队发送继续消息。

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

npx -y @deepseek-ai/dsh plugin --profile web add @try-works/dsh-restart@0.1.2
README兼容性版本

兼容性与来源证明

Restart 以 @try-works/dsh-restart 发布,当前版本为 0.1.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.1.2stable
2026/8/19
0.1.1stable
2026/8/18
0.1.0stable
2026/8/18

相关插件

正在加载相关插件…

最新版
0.1.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
36.1 kB
文件数
7
Surface
any
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
43
查看源码 ↗项目主页 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Deepseek Ipptdeepseek-ipptiPolloWork PPT Studio 及其精选幻灯片模板,作为原生 DeepSeek Harness 对话视图。Mnemondsh-mnemon面向 DeepSeek Harness 的可组合三层记忆控制平面:持久化运行时上下文、可搜索的项目文档、可插拔的长期记忆、受保护的策略、WebUI 和无头工具。Codex Ui@michengai/dsh-codex-uiDSH Codex UI — 为 DeepSeek Harness Web 提供 Codex 风格侧栏、工作区会话树、全局搜索和轮次导航Rewind Plugindsh-rewind-plugin同窗口内对话回退并恢复工作区文件

README

dsh-restart

Self-waking host restart as a DeepSeek Harness bundle: a dsh_restart tool that restarts the DSH host, records the decision, and sends a continue message to every active session when the host is listening again.

What it provides

  • dsh_restart tool — restarts the running DSH host. It derives every path and URL at runtime (nothing device-hardcoded):
    • harness dir defaults to the running host's working directory (fs.resolve('.'))
    • web base URL defaults to DSH_WEB_URL, falling back to http://127.0.0.1:<webServer.port>
    • logs dir defaults to $DSH_HOME/tmp
    • sessions = every live session discovered through the session-query corpus (ctx.sessionQuery.listSessions()), plus optional explicit session_id + the calling agent's own session, deduplicated
    • reason (required) is recorded to the decision log and relayed to every woken session as a decision record
  • dry_run: true renders the wake script and returns the plan without touching the host.
  • Wake script — a generated, self-contained PowerShell script (dsh-restart-wake.generated.ps1 in the logs dir) that:
    1. records the decision (before the host dies),
    2. kills the current host tree,
    3. boots a fresh pnpm dsh web,
    4. polls until the host answers,
    5. sends every captured session a continue message via /api/session.prompt in queue mode (which maps to agent.followup — resuming each session's next turn), carrying the decision record.

Requirements

  • A DeepSeek Harness profile that bundles the services this plugin reads: tools, shell, shellEnv, fs (all present in @deepseek-ai/dsh-base). sessionQuery and sessions are optional (read via ctx.get): sessionQuery is the authoritative session lookup, and sessions is its fallback. webServer is optional.
  • Windows host (the wake script is PowerShell; dsh must be on PATH for pnpm dsh web).
  • The dsh_restart tool launches the wake script detached (cmd.exe /c powershell -File ...), so it survives the host process being killed.

Install

Add this package to the profile and its bundles list, e.g. in ~/.dsh/profiles/<name>/package.json:

{
  "dependencies": {
    "@try-works/dsh-restart": "^0.1.0"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@try-works/dsh-restart"
      ]
    }
  }
}

Then pnpm install in the profile and restart the running DSH process. The bundle ships its src/*.ts sources directly (DSH loads them through tsx), mirroring dsh-paper-design and dsh-recursive-mode.

Restart is required for host/bundle changes: the web client-plugin HMR only rebuilds the web shell, not host plugins.

Usage

Ask the agent to restart the host, e.g.:

Restart the DSH host because we applied plugin changes.

The agent calls dsh_restart with a reason; the tool writes the decision record, launches the wake script, and returns the plan. When the host is back, every session active at trigger time receives a continue message (queued as its next turn):

RESTART-CONTINUE [boot=abc12345] host is UP. pid=12804 | count=3 hasRecursive=true | Please continue your work. DECISION RECORD: applying plugin changes

Development

pnpm install
pnpm run build          # type-check (tsc -p tsconfig.build.json)
pnpm run test:unit      # vitest unit tests (template substitution)
pnpm run verify         # in-process boot + dry-run (needs a live shell/fs environment)
pnpm test               # build + verify + unit

Layout

  • src/index.ts — bundle entry: registers the dsh_restart tool on ctx.tools, resolves runtime defaults, writes the script + decision log, launches the wake script detached.
  • src/wake-script.ts — template loader + placeholder substitution (pure, unit-tested).
  • assets/dsh-restart-wake.ps1.template — the wake-script template (placeholder contract in src/wake-script.ts).
  • tests/ — vitest unit tests.
  • scripts/verify-restart.mjs — in-process boot + dry-run verification.
  • cordis.patch.yml — loader patch inserting the plugin into a cordis:group realm.

Notes / gotchas

  • PowerShell's $pid is a read-only automatic variable — the template's kill loop uses $procId and must never assign $pid.
  • The wake script redirects the host's stdout/stderr into their own log files (dsh-restart-host.out.log, dsh-restart-err.log) so the wake log stays clean.
  • The recursive/* event types are unknown to a resumed harness; keep them registered in packages/core/session/src/known-event-types.ts (see the original README.md in the workspace) — don't run gen-persistence-catalog without re-adding them.

License

MIT