Back to directory

dsh-context-doctor

Curated pickMaintenance: Active

zhenyu98/dsh-context-doctor

DSH 上下文注入审计:统计 AGENTS.md 指令链/技能目录/工具 schema/MCP 的 token 成本,检测跨文件重复与 rank shadow 冲突;Web UI 圆环面板 + context_audit 工具

View on GitHub
$ dsh plugin --profile web add "github:Zhenyu98/dsh-context-doctor#main"

33

stars

10

forks

TypeScript

Language

BSD-3-Clause

License

2026-08-12

Created

2026-09-06

Last push

A native DSH diagnostic plugin that surfaces redundant context, rank-shadow conflicts, and trimming priorities.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-09-08

License

BSD-3-Clause

01What can it help you accomplish?

  • Measure and diagnose the context automatically injected into DSH requests

    Token estimates, duplicate and rank-shadow findings, plus prioritized trimming suggestions

    DSH users who need to reduce instruction, skill, tool-schema, and MCP context overhead

02How to install into DeepSeek Harness

Prerequisites

  • DSH `>= 0.1.2-rc.1`

Installation steps

  1. 01

    Install with `dsh plugin --profile web add "github:Zhenyu98/dsh-context-doctor#main"`.

    $ dsh plugin --profile web add "github:Zhenyu98/dsh-context-doctor#main"

  2. 02

    Restart DSH web and invoke `context_audit` in a new session.

Verify the integration

  • Run `dsh --profile web --dump-config | grep context-doctor` and confirm the plugin is inserted.

03DSH integration and capability boundaries

DSH integrationNative runtime

Native DSH web-profile plugin with a web panel and `context_audit` model tool

  • Context-audit panel and tool

    DSH instruction chains, skill catalog entries, tool schemas, and MCP tool names→A sectioned audit report with token estimates, conflict findings, and suggestions

    Reads files and metadata only; files larger than 256 KB are skipped

04Who is it for? When not to use it?

Good for

  • DSH users who need to reduce instruction, skill, tool-schema, and MCP context overhead

Not for

  • Token counts are heuristic estimates for comparison, not the model tokenizer’s exact values.

05Compatibility, maintenance and safety notes

  • Token counts are heuristic estimates for comparison, not the model tokenizer’s exact values.
2026-08-122026-09-06untagged-373005105c4eac2e526e

Author README tracked from the referenced commit

06Frequently asked questions

What does `context_audit` inspect?

It reports DSH instruction chains, skill catalog entries, tool schemas, MCP tools, conflicts, and suggestions.

Will it edit my project files?

No. The documented boundary is read/stat/list only, with no writes, deletes, or execution of audited objects.

Why can its number differ from the DSH meter?

It uses a heuristic token estimate for comparison; the model tokenizer remains the source for exact token counts.

08Data and sources

  • Author-claimedgithub.com41d5c2e4bbe0…

    DSH 上下文注入审计插件:看清模型每个请求到底背着多少上下文,找出重复、冲突与浪费 token 的注入物。

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-09-08. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.