Back to directory

dsh-context

Curated pickMaintenance: Active

bowenliang123/dsh-context

Context dashboard tab + /context command showing context-window composition, per-turn history, compaction/prune events, per-message token costs

View on GitHubHomepage
$ dsh plugin --profile web add dsh-context

1,338

stars

34

forks

TypeScript

Language

Apache-2.0

License

2026-08-14

Created

2026-09-08

Last push

Apache-2.0 DeepSeek Harness plugin installed via `dsh plugin add` that adds a Context dashboard tab and `/context` command for context-window composition, history, compaction events and token costs.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-08-21

License

Apache-2.0

01What can it help you accomplish?

  • See exactly what fills the agent's context window right now

    A six-color stacked composition bar scaled against the model's full context window (system prompt, tool schemas, user messages, injected context, assistant replies, tool results), remaining headroom, and the top-5 most expensive tool schemas

    Developers running DeepSeek Harness (dsh) who need to find out which part of the conversation is eating the context budget

  • Track how the context window grows and shrinks across a session

    One stacked bar per model request with Turn/Step granularity, hover tooltips, pinnable full breakdowns (estimated vs. provider-reported tokens), and ✂ markers where compaction or pruning reclaimed tokens

    Engineers debugging long DeepSeek Harness sessions who want to watch compaction and prune events instead of guessing

  • Inspect what any single request was actually assembled from

    Context browser (also via the `/context` command): six collapsible category sections expanding into every element with its token price and actual content — system prompt, tool schemas, message text, reasoning, tool-call arguments and outputs

    Plugin and skill authors who want to verify what context their injections add to each DeepSeek Harness request

02How to install into DeepSeek Harness

Prerequisites

  • A DeepSeek Harness (dsh) installation — the plugin is added from any existing dsh installation

Installation steps

  1. 01

    Install from any DeepSeek Harness installation: `dsh plugin --profile web add dsh-context`

    $ dsh plugin --profile web add dsh-context

  2. 02

    Update later with: `dsh plugin --profile web update dsh-context@latest`

    $ dsh plugin --profile web update dsh-context@latest

  3. 03

    Start the web UI with `dsh web` — no build step, no restart

    $ dsh web

Verify the integration

Not specified by the author

03DSH integration and capability boundaries

DSH integrationNative runtime

Native DeepSeek Harness plugin installed via `dsh plugin add`, adding a Context dashboard tab to the dsh web UI plus a `/context` slash command

  • Context tab dashboard

    any open DeepSeek Harness session in the dsh web UIcontext stats (turns, steps, injections, compactions, prunes), current composition, per-request history, context events, and the model-visible message list

  • `/context` slash command

    `/context` typed in a dsh chat (or picked from the `/` menu)a centered dialog with the Current Composition card and the Context browser — same composition bar, legend, and per-step browsing as the tab, without leaving the chat

  • Context events log

    the session's compaction, prune, injection and model-switch eventsevery event with its token delta, turn/step attribution and timestamp, filterable by category (Inject / Compact / Prune / Switch)

  • Context browser

    Live (next request) or any retained step from the pickerper-element breakdown of what the request was assembled from, down to actual content (system prompt text, tool JSON schemas, message text, reasoning, tool-call arguments and outputs)

    elements older than the loaded chat window page older history in automatically when expanded

04Who is it for? When not to use it?

Good for

  • Developers running DeepSeek Harness (dsh) who need to find out which part of the conversation is eating the context budget
  • Engineers debugging long DeepSeek Harness sessions who want to watch compaction and prune events instead of guessing
  • Plugin and skill authors who want to verify what context their injections add to each DeepSeek Harness request

Not for

  • The dashboard is delivered as a tab in the dsh web UI and must be installed with the `web` profile (`dsh plugin --profile web add`); usage is tied to running `dsh web`.
  • The repository was created on 2026-08-14 and is at v0.19.2, so the plugin is very young and its interfaces may still change.

05Compatibility, maintenance and safety notes

  • Steps before a compaction are reconstructed from the removed-message archive, so their makeup can be only approximate; the card says so when that happens.
  • The dashboard is delivered as a tab in the dsh web UI and must be installed with the `web` profile (`dsh plugin --profile web add`); usage is tied to running `dsh web`.
  • The repository was created on 2026-08-14 and is at v0.19.2, so the plugin is very young and its interfaces may still change.
2026-08-142026-08-19v0.19.2

Apache-2.0 · actively maintained (latest release v0.19.2, 2026-08-20)

06Frequently asked questions

How do I install dsh-context in DeepSeek Harness?

Run `dsh plugin --profile web add dsh-context` from any dsh installation, then start the web UI with `dsh web`. No build step and no restart are needed. Update later with `dsh plugin --profile web update dsh-context@latest`.

Is it a native plugin or an MCP server?

It is a native DeepSeek Harness plugin: after install it adds a Context / 上下文 tab to the dsh web UI and a `/context` slash command inside chat sessions. There is no MCP setup.

What can I see about my context window?

The six-part composition of the current window scaled against the model's full context window, remaining headroom, the top-5 most expensive tool schemas, one stacked bar per model request, every compaction / prune / injection / model-switch event with token deltas, and the model-visible message list with per-message token cost.

Are the token counts exact?

The breakdown shows estimates alongside provider-reported actual prompt/output tokens when available. Steps before a compaction are reconstructed from the removed-message archive, and the card notes when a step's makeup is only approximate.

Does the plugin send my data anywhere?

The README describes pure visualization of context data inside the dsh web UI — browsing history and expanding elements may page older chat history in automatically, but no external service is mentioned.

08Data and sources

  • Author-claimedgithub.com85076ae10c88…

    The best [DeepSeek Harness plugin](https://www.deepseek.com/harness/) for Agent's context insights and management.

  • Author-claimedgithub.com85076ae10c88…

    dsh plugin --profile web add dsh-context

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-08-21. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.