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.

Session Health — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
S

dsh-session-health

Session Health

DeepSeek Harness session health reminder plugin: draggable floating button, three-factor health score (context usage/compression/cache hit rate), token/time/step/compression analysis, and one-click handoff generation for degraded sessions

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

npx -y @deepseek-ai/dsh plugin --profile web add github:CJL-1995/dsh-session-health#34694eeb8fba5b91509c881574e05e3a6b2df9ac
READMECompatibilityVersions

Compatibility and provenance

Session Health is published as dsh-session-health and currently resolves to version 1.0.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
8/24/2026

Versions

1.0.0stable
8/24/2026

Related plugins

Loading related plugins…

Latest
1.0.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
8/23/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 memory-context.

Contextdsh-contextA DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.Weknora@wxg-prc-cpg/dsh-weknoraWeKnora knowledge retrieval tools for DeepSeek Harness (dsh): semantic search, document reading and RAG/agent answers over your own knowledge bases.Memsearch Dsh@zilliz/memsearch-dshMemSearch plugin for DeepSeek Harness: shared markdown memory across agents, with capture, pre-step context injection, memory-recall skill, and a skill-candidate review panel.Memory@furongjun1999/dsh-memoryLingshu (Lingshu·líng shū) DeepSeek Harness plugin: a complete brain—long-term memory/knowledge flywheel/self-awareness/recursive reflection integrated with DSH, with conversations automatically distilled into the md_cg cognitive graph (md documents)

README

dsh-session-health

DeepSeek Harness 插件:「会话健康度提醒」(Session Health Monitor)。

在右下角提供一个可拖动的悬浮按钮,点击后在按钮上方弹出当前会话的健康度报告,帮助你判断是否需要写 handoff、重开新会话。

效果预览

健康状态下的会话健康度报告面板
健康(90%):只展示各项指标
亚健康状态下的面板,额外出现生成 handoff 按钮
亚健康(45%):额外出现「生成 handoff 并重开会话」按钮

点击按钮后,总结 prompt 会被送入当前会话,由 Agent 生成 handoff 文件并回报落盘路径:

点击按钮后 Agent 生成 HANDOFF.md 并返回文件路径

功能

  • 可拖动按钮:长按(约 260ms)拖动定位,快速点击在按钮上方弹出报告面板
  • 健康度评分(0–100%,绿/黄绿/橙/红四档):三因子加权
    • 上下文占用(40%)
    • 压缩次数(30%)
    • 缓存命中率(30%)
  • 上下文窗口使用情况:红=已用 / 绿=未用的进度条 + 百分比 + 窗口大小
  • 压缩次数 + 距上次压缩折线图(下降趋势,横轴=压缩序号,纵轴=距上次压缩的轮次)
  • 每轮调用趋势折线图:每轮工具调用总次数 / 累计平均工具调用、每轮步骤总次数 / 累计平均步骤
  • Token 消耗:未缓存输入 / 缓存读 / 输出 / 推理 / 总计(整会话累计)
  • 耗时:LLM 生成 / 工具执行 / 活跃总耗时
  • 步骤明细:倒序(最新在上),含每步耗时与调用的工具
  • Token 大户 / 耗时大户:按 tool 排名
  • 亚健康一键生成 handoff:健康度 < 60 时显示「生成 handoff 并重开会话」按钮,自动把总结 prompt 发入当前会话

健康度算法

健康度 = 100 − 上下文占用扣分(40%) − 压缩次数扣分(30%) − 缓存命中率扣分(30%)
  • 上下文占用:占用率 > 30% 后线性扣分,100% 扣满 40 分
  • 压缩次数:0–5 次线性扣分,≥5 次扣满 30 分
  • 缓存命中率:< 50% 直接扣满 30 分(50%–100% 线性,100% 不扣)
  • 分级:≥80 健康 · 60–79 尚可 · 40–59 亚健康 · <40 不健康

安装(DSH bundle)

本插件是一个 DSH bundle(dsh.bundle.patch + dsh.client),通过 dsh plugin 安装到 profile:

# 从 GitHub 安装(发布后)
dsh plugin --profile web add github:CJL-1995/dsh-session-health

# 或从本地目录安装
dsh plugin --profile web add file:/path/to/dsh-session-health

安装后重启对应的 web profile(重启 dsh web 进程),右下角即出现「会话健康度提醒」按钮。

架构

  • Host(index.js):通过 sessionProjections 注册 sessionHealth projection,把会话事件增量折叠成健康度报告(纯 fold,状态为 plain JSON),由框架自动同步给客户端。
  • Client(client.js,window.__ModuleLoader__ 加载):注册到 shell.overlay,从 useSessions().byId[current].projectionValues.sessionHealth 响应式读取报告并渲染。
  • 发消息:客户端 sessions.binding(id).session.prompt([{type:'text', text}], 'queue') 发送 handoff prompt。

文件结构

  • index.js — Host 半边(projection 单元)
  • client.js — Client 半边(ModuleLoader bundle)
  • cordis.patch.yml — bundle patch 层(插入插件行)
  • package.json — bundle 元数据(dsh.bundle.patch / dsh.client)
  • assets/ — 文档配图
  • README.md — 本文档

License

MIT