bowenliang123/dsh-context
DeepSeek Harness 顶级上下文洞察与管理插件,配备上下文仪表盘/浏览器及上下文命令,用于上下文统计、构成、分解、演进详情,帮助理解上下文的构成方式及其演变过程。一站式 DeepSeek Harness 上下文可视化插件,Context 面板及浏览器与 Context 命令,透视上下文组成、演进、压缩、剪枝等事件与动作。
Project Overview项目介绍
dsh-context is a native DeepSeek Harness plugin that provides full lifecycle context management for DSH agents and users. To install the plugin, you only need to run the DSH CLI command dsh plugin --profile web add dsh-context in your terminal. There is no build step or server restart required after installation, and you can start using it immediately after running dsh web to launch the DSH web interface. It adds four new access points for all your context data, including a sidebar dashboard, per-session tab, side panel, and slash command.
This plugin is designed for regular DSH users who want to gain better insights into their agent’s context usage across all sessions. The cross-session context dashboard at the bottom of the DSH sidebar shows key KPIs like total sessions, billed tokens, estimated cost, and cache hit rate for any selected time range. It also includes an 8-week activity heatmap, sorted session cards that can be filtered by date or searched, and one-click access to any existing session. Inside individual sessions, you can view detailed breakdowns of token usage, context changes, file activity, and agent lineage on the dedicated Context tab.
dsh-context is compatible with all DSH versions starting from 0.1.2-rc1, and works across V0, V2, and V3 generations of DSH session logging. It supports both English and Simplified Chinese for the user interface, and all context statistics match the official DSH token meter projections. The plugin is released under the open-source Apache 2.0 license, so it is free to use, modify, and distribute without any cost or commercial restriction. You can adjust your personal default plugin settings like trend granularity and file activity sorting in the DSH plugin configuration menu.
这是一款专为DeepSeek Harness(DSH)开发的原生上下文管理插件,提供完整的对话上下文全生命周期管理能力。用户可以通过DSH的CLI命令一键安装,无需编译或重启,安装后即可在DSH界面使用新增的功能入口。它支持跨会话上下文概览、单会话上下文统计分析等多种核心能力,能帮助用户清晰掌握代理的上下文使用情况。
日常使用DSH进行开发的用户可以通过侧边栏底部的上下文仪表盘,按日期、时间范围筛选所有历史会话,也可以搜索查找特定会话,点击会话卡片即可直接跳转进入对应会话。在任意单会话中,用户可以打开上下文标签页查看该会话的详细统计信息,包括Token组成、趋势变化、文件活动、代理网络等内容,也可以通过/context命令快速唤起弹窗查看当前上下文。
该插件兼容DSH 0.1.2-rc1及以上版本,覆盖V0、V2、V3多个版本的会话日志格式,支持中英文双语界面。用户可以在设置中自定义插件的默认参数,包括趋势粒度、排序方式等。它采用Apache 2.0开源许可证,免费供用户使用和修改,没有额外的使用成本或限制。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-context(bowenliang123/dsh-context)
仓库:https://github.com/bowenliang123/dsh-context
本站详情页:https://www.yhbd.top/plugins/bowenliang123-dsh-context/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 Apache-2.0 · ⭐ 1826 · 最近提交 2026-10-03 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-context
把 bowenliang123/dsh-context 加入你的 DSH 配置(web profile)即可启用。
READMEREADME

dsh-context
The best DeepSeek Harness plugin for Agent's context insights and management.
dsh-context provides full context lifecycle management features.
- Context Dashboard — the cross-session overview above Settings on the sidebar foot: KPI band with a 7-day token/cost usage chart, activity heatmap, aggregate composition ring, and filterable session cards that jump straight into any session.
- Context tab — an UI context dashboard for DeepSeek Harness's context stats, composition, trend, events, and messages.
- Context panel — the same dashboard as a right-sidebar tab (dsh 0.1.5-rc.1+): pick Context on the sidebar's guide page and the panel opens beside the chat.
/contextcommand — the slash command shows the context model for current context composition and recent context evolution.
Install / Update
Install on DeekSeek Harness web or desktop
Fill dsh-context in the Add plugin wizard's search box, and click Install:

Install with dsh cli
Install dsh-context plugin from DeepSeek Harness:
dsh plugin --profile web add dsh-context
Or update the dsh-context plugin:
dsh plugin --profile web update dsh-context@latest
Then start the web UI with dsh web. No build step, no restart.
Use it
Four surfaces, one story — what your agent is carrying, how it got there, and what it did with it:
| Where | What you get |
|---|---|
| Context Dashboard | Every session at a glance: usage, cost, cache hit, daily activity, and per-session context profiles — filtered by range, day, group, or search, one click to jump in. |
| Context tab | The full dashboard: stats, composition, per-request trend, events, file activity, and the agent network — in every session. |
/context command |
A centered modal with the same composition and context browser, without leaving the chat. |
| Preferences card | Per-user defaults: view placement, trend granularity & mode, File Activity sort, and more. |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
v587d/dsh-anysearch-refs
omdsh-dev/dsh-genui
e2mcc/dsh-popout-sidebar
cocofhu/anime-find
dingyi222666/dsh-session-notification
guo6x/dsh-pilot