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
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10703
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10703
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8557
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7523
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5405
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1091
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.