Passer au contenu principal
R

dsh-session-health

refreshing-czq/dsh-session-health

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.

Installer

dsh plugin --profile web add github:refreshing-czq/dsh-session-health

README

dsh-session-health

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

Plugins associés