dsh-context: A Context Insight Panel Plugin for DeepSeek Harness

bowenliang123/dsh-context

UI & ExperienceVerified
Listed on 2026-08-20
Page last updated 2026-08-20

A DSH plugin adding a Context Insight panel to the web UI, visualizing what the model's context window is made of and how it evolves.

Make the DeepSeek Harness context window visible with live composition, history, and compaction events.

install
dsh plugin --profile web add github:bowenliang123/dsh-context
Category
UI & Experience
Platform
DSH-Plugin
Author
bowenliang123
Distribution
Plugin

dsh-context Key Features

Live context statsComposition stacked barHistory evolution chartEvent & message tracking

dsh-context Repository

bowenliang123
Publisher
bowenliang123
Repository
bowenliang123/dsh-context
525
Stars
5
Forks
1
Watchers
2
Open issues
LanguageTypeScript
LicenseApache License 2.0
Website
Repo last push2026-08-20 05:03:44
Repo created2026-08-14 16:23:28
Topics
cordis-plugindeepseek-harnessdeepseek-harness-plugindsh-externaldsh-plugindsh-plugins
Default branchmain

dsh-context Repo Summary

dsh-context is a DeepSeek Harness (DSH) plugin for context insight dashboards, maintained by bowenliang123 under the Apache-2.0 license. It answers the core question: "What is the model's context window actually made of, and how does it evolve?" The plugin adds a Context tab to the web UI, providing a live, visual breakdown of context composition, per-request history, compactions, prunes, injections, and model switches. Installation is a single command with no build step or restart required, and it works in any session.

What core features does the dsh-context DSH plugin support?

The plugin offers five visualization modules: Context stats (session overview with turns, steps, compaction/prune recycled amounts, injection counts, model switches, and estimated total tokens compared to provider-reported actuals); Current composition (a six-color stacked bar scaled against the model's full context window, with a gray track for remaining headroom, breaking down system prompt, tool schemas, user messages, injected context, assistant replies, and tool results, plus the top-5 most expensive tool schemas); History (one stacked bar per model request, with Turn/Step granularity toggle, horizontal scrolling, hover tooltips, click-to-pin full breakdown, and ✂ markers for compaction/pruning); Context events (every compaction, tool-output prune, skill/plugin injection, and model switch with token delta, turn/step attribution, and timestamp); and Messages (the exact model-visible message list, newest first, with per-message token cost).

How do I install dsh-context?

Run the following command from any DeepSeek Harness installation:

bash
dsh plugin --profile web add github:bowenliang123/dsh-context

Then start the web UI with dsh web, open any session, and click the Context tab. No build step or restart is needed.

How does dsh-context help diagnose context bloat?

When a conversation starts degrading, the Current composition panel quickly reveals which part consumed the budget—for example, an oversized tool schema or excessive injected content. The History panel shows how the window grows and gets compacted: the README demonstrates a real session that grew to ~563k tokens across 48 turns, then a single compaction recycled −535.5k, and the conversation continued from a fresh, small window. This turns context management from a black box into a diagnosable process.

What about dsh-context's release process and license?

Releases are cut by tagging (git tag vX.Y.Z), and a GitHub Actions workflow automatically builds, tests, and publishes the package to npm via npm Trusted Publishing (OIDC), with no long-lived token and provenance included. The project is licensed under Apache-2.0, last updated in 2026-08, and currently has 46 stars.

See more DSH plugins at dsh-plugin.org

DSH-Plugin FAQ