DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Resume On Restart — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
R

dsh-resume-on-restart

Resume On Restart

DSH plugin: Detects when the DSH service restarts, automatically wakes the main agent, and sends a prompt message to resume interrupted work. Depends only on the cordis ctx service and is compatible with the DSH Desktop packaged environment.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:nickkkkkk123123/dsh-resume-on-restart#63281f8bf23dbcc48663fd7bea2c09e3796598b9
READMECompatibilityVersions

Compatibility and provenance

Resume On Restart is published as dsh-resume-on-restart and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
8/28/2026

Versions

0.1.0stable
8/28/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
8/29/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in productivity-workflow.

Codex Ui@michengai/dsh-codex-uiDSH Codex UI — 为 DeepSeek Harness Web 提供 Codex 风格侧栏、工作区会话树、全局搜索和轮次导航 · A Codex-style sidebar, workspace session tree, global search, and turn navigation for DSH WebAcp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseAutomation@michengai/dsh-automationExecute coding tasks on a schedule in an independent DSH Session, with dual-entry management via a Web settings page and Agent.Easyrewritedsh-easyrewriteDSH Web内目前最无感的消息撤回、重编辑插件,原版体验,兼容性强,功能简单可开关,设置丰富,现代化轻量ui框架。The most seamless message recall & re-edit plugin for DSH Web — native experience, strong compatibility, simple toggles, rich settings, modern lightweight UI. DSH Web で最もシームレスなメッセージ撤回・再編集プラグイン——ネイテ

README

dsh-resume-on-restart

DSH 插件:检测 DSH 服务重启后,自动向主 agent 投递一条信息性消息(含中断时长、上次活跃会话等状态摘要),让 agent 自主决定是否继续之前的工作或启动新任务。

解决"DSH 重启后会话中断、工作丢失"的问题——重启后 agent 收到提示,可自行恢复。

特性

  • 🔄 重启检测:通过 marker 文件(记录上次 pid / 启动时间)判断是否发生重启
  • 💬 信息性消息:重启后投递"检测到重启 + 中断时长 + 上次活跃会话"摘要,由 agent 自主决定下一步(而非命令式强制"继续")
  • 🎯 活动追踪:运行期间通过 cordis 事件(agent/session-start、agent/pre-step)追踪最近活跃会话,供重启后参考
  • ✅ 兼容 DSH Desktop:只依赖 cordis ctx 的 agents 服务,不 import 任何 @deepseek-ai/dsh-* 内部包,可在 DSH Desktop 打包环境(app.asar)运行

安装

# 用 dsh CLI 装到桌面 profile(DSH Desktop 默认用 desktop)
dsh plugin --profile desktop add <本目录路径>
# 重启 DSH Desktop 生效

运行逻辑

每次 DSH 启动时:

  1. 读取 marker 文件(~/.dsh/.resume-on-restart/marker.json),记录上次的 pid / lastBootAt
  2. 判断是否重启:当前进程 pid ≠ marker 的 pid → 判定发生重启
  3. 写入新的 marker(更新为当前 pid / 时间)
  4. 若判定为重启,轮询等待主 agent 出现(最长 20 秒),投递信息性消息:
    [resume-on-restart] 检测到 DSH 服务已重启。
    上次运行于 ...,本次于 ... 重启完成。
    中断约 X 秒。
    重启前最近活跃的会话:<session-id>
    如需继续之前的工作,或启动新任务,请自主决定下一步。
    

运行期间通过 agent/session-start 和 agent/pre-step 事件持续记录最近活跃会话,下次重启时消息会包含它。

配置(cordis.patch.yml)

配置项默认说明
enabledtrue插件开关
stateDir.resume-on-restartmarker/状态文件存放目录(相对 DSH_HOME)
targetprimary唤醒目标(primary=主 agent,或指定会话 id)
wakeuptrue是否真正唤醒(false 则只注入不唤醒)
notice''附加到消息末尾的自定义提示
shutdownGraceMs600000关闭前"活跃即视为任务相关"的宽限窗口
ignoredSessionPrefixes['head-']不追踪的会话 id 前缀(如多代理团队的根会话)

开发 / 测试

# 运行单元测试(重启检测、消息构建)
npm test

测试覆盖 lib/detect.js 中的纯函数(重启判定、信息性消息构建),不依赖 DSH 运行时。

License

MIT