mpinaev/dsh-context-governor
dsh-context-governor adds a session context panel to the DSH web UI: prompt size, window, cost per step, cache-hit bands, the compaction threshold, DeepSeek account balance and the peak/off-peak tariff - plus a handoff button - all from measurement and arithmetic, with no model calls and zero tokens spent.
dsh-context-governor is a session context indicator for the DSH web UI. A chip in the session header opens a panel showing prompt size and window, the cost of the current step, cache-hit bands, the compaction threshold, the DeepSeek account balance and whether the peak or off-peak tariff applies - with a handoff button beside the model selector. Everything shown is measurement and arithmetic rather than model output, so the panel is free to leave open: the README is explicit that there are no generation requests for review, summarization or background work, and zero tokens are spent. The same panel is available in English, Chinese and Russian, and the README frames the value as knowing exactly how close a long session is to compaction before it happens instead of discovering it afterwards.
Install
dsh plugin --profile web add dsh-context-governorCopied verbatim from the README's "As a package" install block. The README also documents dsh plugin --profile web add github:mpinaev/dsh-context-governor and a local cordis.patch.yml form. npm package dsh-context-governor at 0.3.0 (registry check 2026-10-16; the registry repository field resolves back to this repo).
Compatibility
The README states the plugin never calls a model and spends no tokens: it reads tokens and the window from harness projections, computes cost from the configured rates and fetches the balance over HTTP. Its only contact with the LLM layer is resolveModelInfo for window and limits, it does not touch history, the system prompt or the prefix cache, and the network is used only for the harness account service / api.deepseek.com/user/balance plus a local git status on a handoff click. Installed as a package the host half is read at startup, so restart dsh web and reload the page. npm test runs a smoke test against a stub harness with no network.
Details
- Repo: mpinaev/dsh-context-governor
- Category: Agent Capabilities
- Stars: 2
- Version: GitHub repo mpinaev/dsh-context-governor (2*); npm package dsh-context-governor at 0.3.0 (registry check 2026-10-16; the registry repository field resolves back to this repo). MIT licensed; JavaScript; created 2026-09-29. Supported DSH versions: 0.1.7-rc.2 through <0.2.0 verified live, 0.2.0-rc.1 through <0.3.0 declared and probed weekly by CI. English README with Russian and Chinese translations.
Alternatives
030611/dsh-telemetry-redactor · 173787247/dsh-wsl-env · acnlabs/dsh-plugin-acn