dsh-context-usage-guard: Sustaining True Readings in Composer Context Usage Loops During Retries

dsh-context-usage-guard is a DSH client plugin (v0.2.0, MIT license) maintained by icrefin, targeting dsh 0.2.0-rc.2. It withholds all-zero usage samples from failed attempts on the llm/stream, preventing the contextPressure projection from compressing the usage ring to 0% during retries, and injects a style in the browser so that the usage ring percentage uses the same font size as the footer statistics capsule. Installation requires cloning the repository and running scripts/install.sh to generate a tarball, then installing it via Settings → Plugins and restarting. Optional configuration options include enabled and logHeldSamples. Suitable for developers with long sessions who frequently encounter rate-limiting retries; please review the source code and license before installation.

Read More