dsh-context-meter
Manifest validMoves the context-occupancy ring out of the lonely dock row below the composer card into the composer tool row, beside the quick-prompt trigger. The same ring and percentage from the contextPressure p
dsh-context-meter
The context-occupancy ring, moved out of the dock row under the composer card and into the composer tool row — right beside the prompt-chips lightning trigger.
The shipped DeepSeek Harness UI renders its ContextMeter in its own row below the
composer card ([data-composer-dock]), where it takes ~26px of vertical space even
when it is the only thing in that row, and disappears while a turn is running.
This plugin hides that instance and renders an equivalent cell in the
conversation.input.left slot instead:
- the same ring and percentage, fed by the
contextPressureprojection; - stays visible while generating, so the position never jumps;
- a cumulative cache-hit badge (e.g.
缓存命中 96%) beside the reading, from thetokenUsageprojection, with a token-breakdown tooltip; - clicking opens the system prompt / tools / conversation breakdown
(
contextBreakdown), with~used / windowin tokens.
The shipped dock row below the composer card (context meter plus the
activity / usage stat pills) is hidden — its facts now live in the tool
row and the header clock.
Requirements
- DeepSeek Harness with the Web UI,
engines.dsh>=0.2.0-rc.1 || >=0.2.1-rc.1 || >=0.2.2-rc.1. - No other plugin required. Works well next to
dsh-prompt-chips.
Install
dsh plugin add link:/path/to/dsh-context-meter
or add it to the profile by hand:
// <profile>/package.json
{
"dependencies": { "dsh-context-meter": "link:/path/to/dsh-context-meter" },
"dsh": { "profile": { "bundles": ["...", "dsh-context-meter"] } }
}
then refresh the page.
Maintenance note
The shipped meter is hard-coded inside the InputBar skeleton and is not a slot
occupant, so it cannot be moved through configuration. Its wrapper carries the
CSS-module class oSKTwq_root (ContextMeter.module.css); the plugin hides
[data-composer-dock] .oSKTwq_root. A DSH upgrade may rename that prefix — search
the packaged client bundle for ContextMeter.module.css and update
SHIPPED_METER_CLASS in client.js.
License
MIT
Comments
Loading…
Similar plugins
by xlcg10086
Live context-compaction threshold control (20%-80%) for the DeepSeek Harness composer. | DSH ????????????????????
★ 2
MIT
JavaScript
Oct 28, 2026
dsh plugin --profile web add dsh-compact-thresholdby Nyco1d
One-click prompt optimizer next to the composer, with a side-by-side diff panel and per-mode settings.
★ 0
MIT
JavaScript
Nov 6, 2026
dsh plugin --profile web add dsh-prompt-optimizer-nyco1dContext fullness bands, the per-session compaction threshold derived from the model window, per-step cost computed from cache read and cache write rates, cache-hit, DeepSeek balance with the peak/off-
★ 0
dsh plugin --profile web add dsh-context-governorby joao-paulo-santos
Prompt composition manager for DSH: live census of every system-prompt section with suppress and replace, custom system prompts, and a persona library with a picker right in the chat composer
★ 0
MIT
JavaScript
Sep 30, 2026
dsh plugin --profile web add dsh-granular-promptA DeepSeek Harness plugin that tells you to wrap up and start a new session before the session gets too long: badge + one-shot banner from the official contextPressure projection, and from 45% occupancy it auto-drafts a machine-facts handoff block into your working directory. Zero context tax, bilingual zh/en.
★ 1
MIT
JavaScript
dsh plugin --profile web add @2jumpsina/dsh-context-guardby var-lin
Drag-and-drop reordering, official/third-party dividers and a stash panel for the buttons DSH renders in the sidebar, the sidebar footer, the conversation tabs, the composer dock and Settings. Only di
★ 1
MIT
TypeScript
Nov 6, 2026
dsh plugin --profile web add dsh-plugin-layout-organizer