- Главная
- Плагины
- Улучшения UI
- dsh-session-health
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.
Установка
dsh plugin --profile web add github:refreshing-czq/dsh-session-healthREADME
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
Похожие плагины
Z
dsh-web (dsh-task-board)
zhu1090093659/dsh-web
10.7k11 часов назадУлучшения UIApache-2.0
Z
dsh-web (dsh-web-all)
zhu1090093659/dsh-web
10.7k11 часов назадУлучшения UIApache-2.0
C
dsh-TUI
ccch1mneyyy/dsh-tui
8.5k7 часов назадУлучшения UIMIT
Z
dsh-web-ui (dsh-task-board)
zhu1090093659/dsh-web-ui
6.3k3 месяца назадУлучшения UIApache-2.0