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 个值得优先安装的插件,覆盖各个分类。
