bowenliang123/dsh-context 预览 preview

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开源许可证,免费供用户使用和修改,没有额外的使用成本或限制。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 no risk signal found未发现风险信号
  • 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

Social preview

dsh-context

npm version GitHub stars dshfind

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.
  • /context command — 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:

Add_plugin_wizard

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 →

← 上一个 Prev DSH-Desktop-EAC 下一个 Next dsh-im →