DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

dsh-session-resilience

Session Resilience

安全的 DSH 重启、令牌感知的重新连接,以及基于策略的会话恢复

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

npx -y @deepseek-ai/dsh plugin --profile web add github:hasan-aghayev/dsh-session-resilience#f9eda1258b799a9f042dafb98e7cbada8f62313a
README兼容性版本

兼容性与来源证明

Session Resilience 以 dsh-session-resilience 发布,当前版本为 0.1.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/9/16

版本

0.1.1stable
2026/9/16
0.1.0stable
2026/9/12

相关插件

正在加载相关插件…

最新版
0.1.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/16
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Doctor@linxin666/dsh-doctorDSH 配置档案的事务性救援模式,配备受监督的启动器、隔离的恢复容器、确定性修复、健康监控以及本地 Web 恢复控制台Pocketdsh-pocket把 DeepSeek Harness 装进你的口袋:一个包、一个设置页,手机扫码即同步访问电脑上的 DSH(局域网 + 公网,实时同屏)。DSCODE@toddzheng024/dscode-bundle完整的 DeepSeek 编码代理,支持持久化 shell、Ultra 协作和自动权限审查。Auto Reviewdsh-auto-review针对 DeepSeek Harness 审批请求的第二模型 AI 自动审查:只读审查子代理在审批应答链上决定允许或拒绝,并采用故障关闭回退机制和完整的会话日志审计。

README


description: "A DSH profile bundle for safe restart, token-aware reconnect, and policy-based session recovery." kind: "package-bundle"

DSH Session Resilience

English | 中文

Summary

DSH Session Resilience keeps long-running web sessions recoverable when the local DSH host restarts, disconnects, reaches a token limit, or begins repeating the same work. It combines loopback restart and stop controls with a host-owned continuation engine, a token-aware reconnect, four recovery policies, idempotency guards, adaptive backoff, loop protection, and a small live recovery panel.

What makes it different

  • Recovery policies — Safe, Balanced, Long task, and Manual coordinate the recovery window, cooldown, retry cap, scan range, and backoff. Manual keeps every individual control editable.
  • Token-aware reconnect — The browser waits for the replacement host's actual launch URL before reconnecting, instead of reopening an unauthenticated root page.
  • One recovery center — Restart, stop, automatic continuation, loop protection, error classification, notifications, statistics, and paused sessions are managed from one settings card.
  • DSH-native control surface — The settings card uses DSH semantic tokens and compact field density, with a custom module rail and numbered control groups instead of a second visual theme.
  • No false success — A restart is not reported as ready until the replacement host is reachable and its fresh launch URL has been found.
  • Small model surface — The model receives only restart_dsh and shutdown_dsh; recovery policy and browser controls stay outside the model prompt.
  • Local-first operation — Restart markers, helper logs, and control routes are local to the DSH host. The plugin has no analytics or remote service.

Install

Package install

Install the package into the environment used by the DSH profile, add dsh-session-resilience to the profile's bundle list, and run the profile's normal reconcile step.

The bundle patch inserts the Host entry and the web-client entry. The package includes prebuilt lib files so a GitHub installation does not depend on a local TypeScript build.

GitHub install

This repository is intended to be the source of truth for a public release. Pin an exact commit when adding it to a profile. Do not use a moving branch in a production profile.

The repository metadata is already configured for this public GitHub repository. Submit one entry for its public URL to the awesome-dsh-plugin catalog after the local checks pass. The catalog validates the bundle manifest and generates the market data used by dsh-market; npm publication is not required for Git-based installation.

Controls

The web sidebar keeps two compact controls beside the status indicator:

  • Restart records active root sessions, starts a replacement DSH host on the configured port, waits for its tokenized launch URL, and lets the browser reconnect.
  • Stop stops the active DSH host without starting a replacement process.

The settings card remains available when automatic recovery is disabled, so a user can still perform a deliberate manual restart or stop.

Recovery policies

PolicyIntended useDefault behavior
SafeShort or sensitive tasks5-minute handoff, 2 consecutive resumes, smaller scan
BalancedEveryday work10-minute handoff, 3 consecutive resumes, moderate backoff
Long taskBuilds, imports, and long agent sessions30-minute handoff, 8 consecutive resumes, wider scan
ManualFine tuningUses the individual controls in the card

The policy is explicit configuration, not a hidden fallback inside the runtime. When Manual is selected, the individual fields are authoritative. The initial Manual values match the Balanced values and preserve the behavior of an existing configuration.

Safety behavior

The continuation engine resumes only machine-interrupted, transiently failed, or token-limited turns. User aborts and policy-blocked turns are not resumed automatically. Before a continuation, the idempotency guard can tell the model to verify a tool whose result is unknown or avoid repeating a tool that already succeeded.

Permanent failures such as authentication, balance, missing-model, and context-limit errors are skipped and can be surfaced through browser notifications. Repeated failures use adaptive backoff and stop at the configured limit. The loop guard can cancel and redirect a turn that repeats identical tool calls or assistant text.

Settings

Open Settings → Plugins → DSH Session Resilience. The card uses staged edits: values are validated locally and written only after Save. Reset on an individual field removes its user override and returns to the deployment default.

The card includes:

  • restart handoff and reconnect window;
  • continuation text and output-limit text;
  • tool-result safety guard;
  • interruption grace period and cooldown;
  • boot/reconnect scan and transient-error classification;
  • retryable provider patterns and adaptive backoff;
  • browser notifications and verbose logging;
  • loop guard thresholds;
  • today's counters and paused-session controls.

Model Experience

Restart and shutdown tools

What the model sees

The model can call restart_dsh when the user asks to restart DSH or the current task explicitly requires it. It can call shutdown_dsh only for an explicit stop request. Both tools accept an empty object. Restart results include the instance, previous process, port, captured root sessions, and helper log paths.

Token effect

The two tool definitions and their result text use the normal tool-call and tool-result tokens for the active model request. Automatic recovery adds the configured continuation message only after a qualifying interruption.

KV Cache effect

The plugin adds no fixed system-prompt prefix. Its model-visible contribution is limited to the two tool definitions, their results, and a continuation message when recovery is triggered.

Compatibility and limitations

  • Designed for a DSH web profile with the published @deepseek-ai/cordis and @deepseek-ai/dsh-tools peer packages.
  • Tested against DeepSeek Harness 0.1.5-rc.2 and Node 22.19+; package metadata accepts DSH >=0.1.0-rc.7 <0.2.0.
  • The replacement process uses the profile's normal DSH web launch path and configured port; the plugin does not choose a GPU, model, or port.
  • Restart recovery requires a root browser session that reconnects within the selected handoff window.
  • A process that is killed before it writes the restart marker cannot provide a session handoff.
  • The browser must be allowed to reconnect to the local DSH launch URL. Browser policy, an external proxy, or a host-level process manager can still prevent recovery.
  • Provider-specific errors may need a narrow custom retryable pattern. Broad patterns can repeat requests and should be avoided.

Development and release

The repository commits prebuilt lib artifacts because DSH GitHub installation does not assume a local TypeScript toolchain. Run the complete package check:

npm run pack:check

The verification script checks the standalone package identity, bundle patch, required publication files, and JavaScript syntax. The artifact tests cover client registration, the detached restart helper, and the local status-bridge safeguards. The GitHub workflow repeats the package check for every push and pull request. Version tags matching v* run the release workflow, which checks that the tag matches package.json, creates the package archive, and attaches it to a GitHub Release.

For the DSH Plugin Market submission, use a public repository whose root contains this package.json, cordis.patch.yml, README, license, and prebuilt lib files. Add one data/plugins/hasan-aghayev__dsh-session-resilience.yml entry to the awesome-dsh-plugin catalog and follow its validation pull request. After the catalog entry is merged, the market picks it up automatically. For reproducible installation, use dsh plugin add https://github.com/hasan-aghayev/dsh-session-resilience and pin the selected commit in the profile. A GitHub Release archive is also produced for each version tag.

License and attribution

MIT. This project is an independent community plugin and is not affiliated with DeepSeek AI. It uses the documented DSH plugin extension points and does not modify the DSH agent loop.