返回目录

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 插件,绝不滥发。