helloxkk/dsh-scope

Context visibility for DeepSeek Harness: a Codex-style /context lens in the session header with a segmented system/tools/messages composition bar, per-bucket session totals and KV-cache hit rate, plus a ZCode-style usage panel in the sidebar footer with a lifetime summary, a 52-week token-activity heatmap and per-model daily trends.

dsh-scope adds context visibility to DeepSeek Harness through two UI contributions. A Context Lens in the session header shows live context-window occupancy with a segmented system/tools/messages composition bar, per-bucket session totals and a KV-cache hit rate. A Usage panel in the sidebar footer (ported from ZCode's 应用用量) shows a lifetime summary strip (total and peak tokens, longest session, current and longest streaks), a 52-week token-activity heatmap with daily/weekly/cumulative modes, a last-7d/last-30d range switch, a per-model daily trend chart and a model-usage donut with a percentage list. Both read the projections the platform already computes and mount through the platform's slot registry, so light and dark themes are both correct with zero media queries.

Usage & Billing ★ 3
View on GitHub ↗

Install

dsh plugin --profile web add dsh-scope

Copied verbatim from the README's Install block, which follows it with dsh web # restart dsh to load the plugin. Requires dsh ≥ 0.1.0-rc.6 on your PATH.

Compatibility

Requires dsh ≥ 0.1.0-rc.6 on your PATH. All context data flows through the official token-meter session projections via useProjection (no RPC, no custom wire protocol); the usage panel is fed by the plugin's own loopback-only aggregation endpoint, which refuses non-loopback callers and non-GET methods and reads no provider credentials.

Details

Alternatives

940842546/dsh-usage-billing · kelearns/dsh-token-usage · KIDLi1412/dsh-token-heatmap

More plugins in Usage & Billing

Browse more in Usage & Billing

Guides for Usage & Billing plugins