Introduction

When running long conversations in DeepSeek Harness (DSH), the context window gradually fills up with system prompts, tool definitions, and message history. As the window approaches capacity, you often have to rely on intuition to decide whether to manually run /compact, and it’s unclear how many tokens each component occupies before and after compression or how much a particular conversation session might cost.

Claude Code has a /context command that breaks down the context composition for you. In the DSH ecosystem, context-vista, developed by maintainer GooodWei, serves as a client-side plugin: it provides a /context slash command and maintains a draggable mini floating card on the right side of the chat area, using a ring chart to display real-time token usage, compression benefits, and estimated costs.

What Is This

context-vista is a DSH plugin developed for DeepSeek Harness, categorized as a client-side plugin. Its core purpose is to let you see the structure of context window usage and estimated costs at any time during long sessions, without having to sift through logs or perform manual calculations.

The plugin is currently at version 0.1.0, licensed under MIT, and open-sourced on GitHub (with approximately 12 stars at the time of data collection). SkillHub directory page: https://www.skillhub.cn/plugins/GooodWei/context-vista.

Core Features

The following details are based on the capabilities listed in the README.

/context Slash Command

Entering /context and pressing Enter in the DSH Web client displays a card containing:

  • A ring chart of context composition: system, tools, messages, remaining space
  • An occupancy progress bar
  • Cumulative session usage and estimated costs

Right-Side Floating Card

A mini ring chart floating card is positioned on the right side of the chat area, updating in real-time without needing to input a command. You can drag it up and down by holding the title bar, and its position is automatically remembered. Click the arrow in the top-right corner to collapse or expand it.

The bottom of the floating card features a “Compress Context” button. Clicking it triggers /compact, with the same effect as manually entering the command. During compression, the button displays “Compressing…” and is disabled to prevent repeated triggers.

Cost Estimation and Custom Pricing

The plugin includes built-in DeepSeek official pricing (in RMB ¥, covering peak and off-peak periods). The amounts are estimates only and do not represent actual bills.

To override or add pricing, edit ~/.dsh/settings.yaml. Changes are hot-reloaded, requiring no DSH restart. Currency units and peak/off-peak definitions follow the API route, allowing each route to be specified individually.

Installation and Activation

Prerequisites include having pnpm installed locally (used internally by dsh plugin add). If dsh is installed globally, npx @deepseek-ai/dsh in the following commands can be shortened to dsh.

npx @deepseek-ai/dsh plugin --profile web add github:GooodWei/context-vista
npx @deepseek-ai/dsh web

The first command adds the plugin to the Web configuration; the second launches the DSH Web client.

Typical Usage

Viewing Context Composition

After starting DSH Web, enter the following in the input box:

/context

Press Enter to open the ring chart card. Compare the proportions of system, tools, and messages to decide whether compression is needed.

Triggering Compression from the Floating Card

When the right-side floating card shows high occupancy, click the “Compress Context” button at the bottom. The plugin will call /compact, and during compression, the button displays “Compressing…” and is disabled to avoid repeated triggers.

Custom Pricing (Simplest Example)

In ~/.dsh/settings.yaml, specify model unit prices (per million tokens) for a given API route:

context-vista:
  pricing:
    "https://api.deepseek.com":
      models:
        deepseek-v4-pro:
          peak:    { hit: 0.3, miss: 9, output: 27 }
          offpeak: { hit: 0.15, miss: 4.5, output: 13.5 }

The outer key can be the provider route name or baseURL. Model prices can be a flat rate { hit, miss, output } or tiered by peak/off-peak { peak, offpeak }. Unmatched models fall back to built-in defaults (models with flash in the name use the flash tier; otherwise, the pro tier). Wildcards (*) are supported for route or model names.

Applicable Scenarios and Notes

Who Is It For

  • Developers who frequently run long conversations in DSH Web and need to monitor context window usage
  • Users who want a similar visualization to Claude Code’s /context experience within DSH
  • Scenarios requiring rough cost estimation based on routes and models

Notes Before Use

DSH operates on the principle of “everything is a plugin”; community directories like SkillHub are independent sites and not officially affiliated with DeepSeek / High-Flyer. Please review the source code and license before installation.

The plugin runs with the current dsh process permissions. Cost figures are derived from configuration and built-in default pricing and are for reference only. When multiple routes and models coexist, it is recommended to fully specify frequently used routes in settings.yaml to avoid estimation inaccuracies.

Conclusion

context-vista consolidates context window token allocation, compression entry points, and cost estimation into the /context command and the right-side floating card, making it suitable for continuous observation of window usage during long DSH Web sessions. Directory page: https://www.skillhub.cn/plugins/GooodWei/context-vista; source code and full configuration details: https://github.com/GooodWei/context-vista.