返回目錄

dsh-context-doctor

編輯精選維護狀態: 活躍

zhenyu98/dsh-context-doctor

DSH 上下文注入審計外掛:統計 AGENTS.md 指令鏈/技能目錄/工具 schema 的 token 成本,檢測重複與衝突;Web UI 圓環面板 + context_audit 工具。Context Doctor for DeepSeek Harness: audit instruction-chain / skill catalog / tool schemas token cost.

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

46

星數

11

Fork

TypeScript

語言

BSD-3-Clause

授權條款

2026-08-12

建立於

2026-09-06

最近推送

一個原生 DSH 診斷外掛程式,用於發現重複上下文、rank shadow 衝突和裁剪優先級。

DSH 整合

原生執行環境

作者聲明

安全稽核

未稽核

最後核實

2026-09-08

授權條款

BSD-3-Clause

01它能幫你完成什麼?

  • 量化並診斷每次 DSH 請求自動注入的上下文

    token 估算、重複和 rank shadow 發現,以及依優先級排列的裁剪建議

    需要降低指令、技能、工具 schema 與 MCP 上下文負擔的 DSH 使用者

02如何將外掛接入 DeepSeek Harness?

先決條件

  • DSH `>= 0.1.2-rc.1`

安裝步驟

  1. 01

    執行 `dsh plugin --profile web add "github:Zhenyu98/dsh-context-doctor#main"` 安裝。

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

  2. 02

    重新啟動 DSH Web,並在新工作階段呼叫 `context_audit`。

驗證整合成功

  • 執行 `dsh --profile web --dump-config | grep context-doctor` 並確認外掛程式已插入。

03DSH 整合程度與能力邊界

DSH 整合原生執行環境

帶 Web 面板與 `context_audit` 模型工具的原生 DSH Web profile 外掛程式

  • 上下文稽核面板與工具

    DSH 指令鏈、技能目錄、工具 schema 與 MCP 工具名稱→帶 token 估算、衝突發現和建議的分節稽核報告

    只讀取檔案和中繼資料;超過 256 KB 的檔案會略過

04適合誰?何時不該用?

適合

  • 需要降低指令、技能、工具 schema 與 MCP 上下文負擔的 DSH 使用者

不適合

  • token 數僅為比較用的啟發式估算,不是模型 tokenizer 的精確結果。

05相容性、維護與安全提醒

  • token 數僅為比較用的啟發式估算,不是模型 tokenizer 的精確結果。
2026-08-122026-09-06untagged-373005105c4eac2e526e

作者 README 已依所引提交版本記錄

06常見問題

`context_audit` 會檢查什麼?

它報告 DSH 指令鏈、技能目錄、工具 schema、MCP 工具、衝突與建議。

它會修改專案檔案嗎?

不會。文件的邊界是只讀、stat 和 list;不會寫入、刪除或執行稽核物件。

為什麼結果可能不同於 DSH 計量條?

它以啟發式 token 估算作比較;精確 token 數仍以模型 tokenizer 為準。

08資料與來源

  • 作者聲明github.com41d5c2e4bbe0…

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

此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-09-08。發現錯誤?提交更正。

🏆

最佳 DeepSeek Harness 外掛

從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。

廣告

DSH Plugins 是獨立的 DeepSeek Harness 外掛市集,與 DeepSeek 官方無關,也不代表官方背書。第三方外掛未經安全稽核,安裝前請審查原始碼。

每週取得最新的 DeepSeek Harness 外掛,絕不濫發。