DeepSeek Harness Plugin

Refreshing-CZQ/dsh-session-health

Stars ★ 0 Category UI Enhancements Added 2026-12-01

Session health light: estimates when a conversation is no longer safe to continue, adapting thresholds to the active model's context window by watching context occupancy, turns per window, per-turn growth and tool failure rate.

Install

# from a prebuilt release tarball

dsh plugin --profile web add -w "https://github.com/Refreshing-CZQ/dsh-session-health/releases/download/v1.0.0/dsh-session-health-1.0.0.tgz"

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:Refreshing-CZQ/dsh-session-health

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

Session health light: estimates when a conversation is no longer safe to continue, adapting to the active model's context window.

会话健康灯:估算当前对话还能不能安全继续,随所用模型的上下文窗口自动适配阈值。

安装 Install

dsh plugin add dsh-session-health

或从 awesome-dsh-plugin 插件市场安装。

用法 Usage

  • 会话侧栏显示一盏健康灯:绿 / 黄 / 红,附「还可约 N 轮」的提示。
  • 灯的判定综合四条轴:上下文占用、窗口内用户轮数、每轮增长、工具失败率。
  • 阈值跟随模型窗口自适应(256k 与 1M 路线的压缩点不同),换模型自动重算。

判定规则 Rules

轴 黄线 红线 能否单独判红
上下文占用 红线再往前 12 个点 min(80%, 1 − 64k/窗口) 能
窗口内用户轮 20 轮 × (窗口/262k) 28 轮 × (窗口/262k),最多 4 倍 能
每轮增长(≥3 轮生效) 10% 18% 最多黄
工具失败率(≥20 次调用) 15% 20% 最多黄

License

MIT © 2026 Refreshing-CZQ

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.