DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

dsh-session-handoff

Session Handoff

DeepSeek Harness 的会话交接与上下文管理:结构化交接文档(导出/恢复/状态)、主动上下文裁剪(acp_* 工具 + 压力横幅)、会话管理(丢弃/恢复/彻底清除)、为同一模型跨供应商/计划设置模型路由,以及可选的 OpenViking 记忆 / archify

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

npx -y @deepseek-ai/dsh plugin --profile web add github:snow-The/dsh-session-handoff#fea253f551f33492fbc9245663bec6a115baabc4
README兼容性版本

说明

DeepSeek Harness 的会话交接与上下文管理:结构化交接文档(导出/恢复/状态)、主动上下文裁剪(acp_* 工具 + 压力横幅)、会话管理(丢弃/恢复/彻底清除)、为同一模型跨供应商/计划设置模型路由,以及可选的 OpenViking 记忆 / archify 图表集成。核心功能零依赖(官方压缩 API + Node 内置模块);检测到记忆/图表功能时可增强体验。

兼容性与来源证明

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

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

版本

0.17.15stable
2026/8/20

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

README

dsh-session-handoff

Session handoff & context management for DeepSeek Harness — built because the existing session-management and context-pruning plugins were written before the latest DSH update and don't cover the full workflow.

Why

Long sessions (like a 170k-line r32 session) hit context limits, trigger repeated automatic compaction, and stall. Switching to a fresh session loses all progress. This plugin fixes both halves — and more:

  1. Handoff — export a structured, portable handoff document so a fresh session can continue seamlessly.
  2. Active context pruning — compress spent history before the context window fills (official compaction API, model-authored summaries).
  3. Session management — trash / restore / purge / list sessions.
  4. Model routes — every registered route (official API, Ark, custom, vision-toolkit wrappers) is orderable and switchable; each route can pin its own model and reasoning effort (provider:model:effort), or follow the chat's current selection. No model id is hard-coded.
  5. ACP thresholds — tune compaction limits without touching YAML.

Tools

Module A — Handoff (zero dependencies)

ToolPurpose
handoff_statusCompact session overview: turns, messages, tool usage, checkpoints, context pressure
handoff_exportParse the session into a structured Markdown handoff under <workspace>/.dsh-handoff/ + a ready-to-run handoff package (OpenViking archive command, archify diagram command — only when those enhancers are present)
handoff_resumeLoad the latest handoff document in a fresh session and continue

Also /handoff command.

Module B — Active Context Pruning (official compaction API)

ToolPurpose
acp_statusUsage, surface seq map, limits (soft/hard pressure level)
acp_compressReplace an inclusive surface seq range with your summary (ctx.compaction.compactRegion)
acp_decompressRead the original text hidden by a checkpoint (read-only)
acp_searchSearch visible + hidden compacted history
acp_configShow the active thresholds (soft/hard limits, preserveRecent, minTokens, nudge)
acp_set_limitPersist new thresholds into settings.yaml (new sessions take them)

Plus a system-prompt pressure banner that nudges the model to compress past the soft/hard limit (60% / 70% defaults), and a compaction.summarize interception so model-authored summaries are used.

Module C — Session management

ToolPurpose
session_listList sessions (optionally including the trash)
session_trashArchive + move a session's artifact into the plugin trash (recoverable; refuses running sessions)
session_restoreMove it back and unarchive
session_purgePermanently delete artifact + trash entry

Trash entries persist as JSON under $DSH_HOME/dsh-session-handoff-trash/ (keeps the newest 10; oldest overflow auto-purged).

Module D — Model routes (same model, many vendors)

ToolPurpose
model_routesList every route serving deepseek-v4-flash: provider, baseURL, key env + family (ark-/sk-), default marker (incl. vision-toolkit- variants), vision wrapper variant
model_switchPoint agent-default-model at a route (persisted to settings.yaml; new sessions use it). Optional vision:true selects the vision wrapper variant; warns when the key family is missing

Built for users sharing one model id across official DeepSeek and Volcano Ark plans: model_routes shows what is configured, model_switch deepseek uses the Ark lane, model_switch deepseek-official --vision uses the official lane with the vision wrapper.

Module E — Web client (GUI)

The plugin ships a hand-written client bundle (client/index.js, no build step) that registers a Settings section "模型路由 / Model Routes" in the web GUI, mirroring the host tools as clickable controls:

  • Model routes panel — every route in the live model directory (the same list the chat dialog offers, incl. any vision-toolkit wrappers), with the current chat-context selection shown (session.requestContext()). No vision model is configured here — the chat dialog's own model list is the source of truth; ordering is yours.
  • Auto failover (priority list) — drag-to-reorder the routes, delete or add entries, save the priority. When the active model is unreachable or out of quota (QUOTA / RATE_LIMIT / SERVER / TIMEOUT / TRANSPORT / EMPTY_RESPONSE / AUTH / credential / adapter errors), the next route is tried automatically and work continues — user interruptions never switch. Backed by GET|POST /dsh-session-handoff/failover and the agent/request-error + agent/request waterfalls.
  • Session handoff — export the current session into <workspace>/.dsh-handoff/handoff-<session>.md with one button (POST /dsh-session-handoff/export).
  • Compaction thresholds — soft/hard limit sliders (17-90%) persisted into settings.yaml's session-handoff: section (GET/POST /dsh-session-handoff/acp). A "固定推荐 65/90 / Fixed 65/90" button fills the sane default for the 1M-window model directly (no per-session computation in the GUI; the acp_recommend tool still offers the cost-model estimate for agent use).

Host routes share the exact same logic as the tools (enumerateRoutes, switchProvider, readAcpSection/writeAcpConfig, exportHandoffForAgent), so the GUI and the agent tools can never drift.

Soft enhancers (detected, never required)

  • OpenViking: when viking_* tools are present, handoff_export embeds a ready viking_remember command in the handoff package.
  • archify: when @tt-a1i/archify-dsh is installed, the handoff package includes an archify render command for a progress diagram.

Core works with neither installed.

Install

dsh plugin --profile web add github:snow-The/dsh-session-handoff
# restart dsh web

Usage

In the old session:

handoff_export   → writes .dsh-handoff/handoff-<session>.md (+ handoff package)

In the new session:

handoff_resume   → loads the handoff; continue the work

Before heavy work in long sessions:

acp_status       → check pressure
acp_compress {start} {end} {summary}   → prune spent ranges
acp_set_limit    → tune soft/hard limits proactively

Switching vendors for the shared model:

model_routes                       → see the routes
model_switch deepseek              → use the Ark lane
model_switch deepseek-official     → use the official lane
model_switch deepseek --vision     → ...with the vision wrapper

Development

# unit tests (run from a profile dir so @deepseek-ai/* resolves)
node --test test/

License

MIT

相关插件

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

Memsearch Dsh@zilliz/memsearch-dsh适用于 DeepSeek Harness 的 MemSearch 插件:在多个代理之间共享 Markdown 记忆,支持捕获、步骤前上下文注入、记忆召回技能和技能候选审核面板。Reme@agentscope-ai/reme面向 TypeScript 代理的 ReMe 客户端和记忆集成Stratagate Dshstratagate-dsh最近的对话依然鲜活。较早的对话会逐渐淡化为摘要,而不是被遗忘。StrataGate 为 DeepSeek Harness 提供六层、随时间衰减的记忆,同时将持久的事件和关系沉淀为知识图谱。将你在其他 AI 中的记忆带来Meow Memorymeow-memoryDeepSeek Harness 的跨会话项目记忆:七层 SQLite 记忆、首轮快照注入、每条消息的关键词命中、memory_remember/search/project 工具、带 reflection-fold UI 的自动反思,以及由空闲触发的梦境整合