Apache-2.0 的 DeepSeek Harness 原生外掛,透過 `dsh plugin add` 安裝,為 dsh web UI 增加 Context 儀表板分頁與 `/context` 指令,透視上下文視窗組成、演進歷史、壓縮事件與 token 成本。
DSH 整合
原生執行環境
作者聲明
安全稽核
未稽核
最後核實
2026-08-21
授權條款
Apache-2.0
01它能幫你完成什麼?
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
02如何將外掛接入 DeepSeek Harness?
先決條件
- A DeepSeek Harness (dsh) installation — the plugin is added from any existing dsh installation
安裝步驟
- 01
Install from any DeepSeek Harness installation: `dsh plugin --profile web add dsh-context`
$ dsh plugin --profile web add dsh-context
- 02
Update later with: `dsh plugin --profile web update dsh-context@latest`
$ dsh plugin --profile web update dsh-context@latest
- 03
Start the web UI with `dsh web` — no build step, no restart
$ dsh web
驗證整合成功
作者未說明
03DSH 整合程度與能力邊界
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 UI→context 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 events→every 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 picker→per-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
04適合誰?何時不該用?
適合
- 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
不適合
- 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.
05相容性、維護與安全提醒
- 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.
Apache-2.0 · actively maintained (latest release v0.19.2, 2026-08-20)
06常見問題
如何在 DeepSeek Harness 中安裝 dsh-context?
在任一 dsh 安裝環境執行 `dsh plugin --profile web add dsh-context`,接著執行 `dsh web` 啟動 web UI,不需要建置步驟,也不必重新啟動。之後可用 `dsh plugin --profile web update dsh-context@latest` 更新。
它是原生外掛還是 MCP?
是 DeepSeek Harness 原生外掛:安裝後會在 dsh web UI 新增 Context / 上下文 分頁,並在工作階段內提供 `/context` 斜線指令,不需要任何 MCP 設定。
可以看到上下文視窗的哪些資訊?
目前視窗的六段式組成(依模型完整上下文視窗比例縮放)、剩餘空間、最占 token 的前 5 個工具 schema、每次模型請求一條堆疊長條圖的歷史、每個壓縮/剪枝/注入/模型切換事件的 token 變化,以及模型目前可見的訊息清單與逐則 token 成本。
token 數量準確嗎?
面板同時顯示估算值與供應商回報的實際 prompt/output token(若可用)。壓縮之前的步驟是依被移除訊息的封存資料重建,當某步驟的組成只能近似還原時,卡片會明確標示。
外掛會把我的資料傳到外部嗎?
README 描述的是在 dsh web UI 內部對上下文資料的純視覺化;瀏覽歷史、展開元素時會自動分頁載入更早的聊天記錄,並未提及任何外部服務。
07相關的 DSH 工作流程
deepseek-harness-control-center
作者 feibi-mochi
DeepSeek Harness control center for balance, usage, peak/off-peak pricing, encrypted multi-account switching, health checks, reminders, recharge, and session controls. / 餘額、用量、峰谷計費、加密多賬戶、健康檢查、提醒、充值與會話控制
dsh-context-doctor
作者 zhenyu98
DSH 上下文注入審計外掛:統計 AGENTS.md 指令鏈/技能目錄/工具 schema 的 token 成本,檢測重複與衝突;Web UI 圓環面板 + context_audit 工具。Context Doctor for DeepSeek Harness: audit instruction-chain / skill catalog / tool schemas token cost.
dsh-balance-plugin
作者 yxxbc
deepSeek 餘額監控與用量統計(DSH 動態 Cordis 外掛):餘額監控 · 官方充值入口 · 用量統計 · 三方外掛管理
dsh-think-zh
作者 len7183
DSH外掛「DSH-Think-zh」 :為利於中文使用者閱讀推理過程、複核結論;在設定新增切換模型思考語言檔位[簡體中文/預設英文];回覆語言跟隨提問語言,程式碼與識別符號保持原文。
08資料與來源
The best [DeepSeek Harness plugin](https://www.deepseek.com/harness/) for Agent's context insights and management.
dsh plugin --profile web add dsh-context
此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-08-21。發現錯誤?提交更正。
最佳 DeepSeek Harness 外掛
從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。
