返回目錄

dsh-context

精選清單收錄維護狀態: 活躍

bowenliang123/dsh-context

A context insight plugin officially recommended by DeepSeek Harness, for context composition, evolution and Multi-Agent details. DeepSeek Harness官方推薦的上下文洞察外掛,透視上下文組成與演進,以及多Agent 協作與通訊。

前往 GitHub專案首頁
$ dsh plugin --profile web add dsh-context

5,359

星數

239

Fork

TypeScript

語言

Apache-2.0

授權條款

2026-08-14

建立於

2026-11-20

最近推送

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

安裝步驟

  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

驗證整合成功

作者未說明

03DSH 整合程度與能力邊界

DSH 整合原生執行環境

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.
2026-08-142026-08-19v0.19.2

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 內部對上下文資料的純視覺化;瀏覽歷史、展開元素時會自動分頁載入更早的聊天記錄,並未提及任何外部服務。

08資料與來源

  • 作者聲明github.com85076ae10c88…

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

  • 作者聲明github.com85076ae10c88…

    dsh plugin --profile web add dsh-context

此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-08-21。發現錯誤?提交更正。

🏆

最佳 DeepSeek Harness 外掛

從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。

DSH Plugins 是獨立的 DeepSeek Harness 外掛目錄,與 DeepSeek 官方無關,也不代表官方背書。第三方外掛未經安全稽核,安裝前請審查原始碼。

每週取得最新的 DeepSeek Harness 外掛,絕不濫發。