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 工作流程
api-relay-audit
作者 toby-bridges
本地 AI API 中轉與 LLM 代理安全審計工具,可檢測提示注入、模型替換、工具呼叫篡改、SSE 異常與 Web3 錢包風險。
awesome-deepseek-harness-plugins
作者 zhiyuan-fan
DeepSeek Harness 外掛精選清單,收錄外掛、擴充套件、工具、技能、客戶端與整合資源,中英雙語。
awesome-ai-pedia
作者 awesome-ai-pedia
AI skills大全 mcp ai知識庫 Agent 全維度 AI 資源百科,DSH外掛 收錄大模型、智慧 Agent、RAG 檢索增強、多模態、MLOps、AI 應用工具、AI面試集、Vibe coding 大全、零基礎學習路線,持續更新前沿 AI 開源專案,開發者一站式 AI 導航庫
awesome-deepseek-harness
作者 libukai
DeepSeek Harness 終極指南:快速入門、資源推薦、精選外掛與實用工具 |The Ultimate Guide to DeepSeek Harness: QuickStart, Resources, Plugins&Toolkit
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 個值得優先安裝的外掛,涵蓋各個分類。
