可选的只读桥接插件:把 dsh 的会话与 token 实时统计写成一份 JSON 快照,供独立的 dsh-minato 工具箱读取.
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:sakanamaru/dsh-minato
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
dsht
A single self-contained Windows executable that looks after a DeepSeek Harness install from the outside: it diagnoses the failures that leave the desktop app unable to update or start, and it will grow a small always-on-top status overlay.
Unofficial. Not affiliated with DeepSeek. No telemetry, no network calls.
Why an external tool at all
dsh plugins run inside dsh, which means they are unavailable exactly when they are needed most: when the app will not start, when an update rolls back, or when the installer cannot replace files that are still held open. Those failures happen outside the plugin sandbox, so the tool that explains them has to live outside it too.
The upstream reports this tool targets: discussion #3959
(the updater replaces node.exe before the backend exits) and
discussion #12988
(MoveFileExW fails with Windows error 32, ten retries, then rollback).
Commands
dsht diag [--json] [--dir <path>] [--updater <path>]
Read-only diagnosis of a desktop install.
dsht port [--port <n>]
Is the web port listening, and which dsh processes are running.
dsht hud [--position X,Y] [--scale 100-300]
Always-on-top status overlay: sessions, context pressure, tokens, project.
dsht hud --preview out.png render the same scene to an image
dsht hud --dump print the four lines and the snapshot path
dsht hud --selftest verify the window contract
dsht scan|repair|backup|profile|log
Reserved. They exit with code 3 today.
Exit codes: 0 no problems found, 1 problems found, 2 usage, 3 unsupported.
What a diagnosis looks like
dsht diag
install : C:\Users\<user>\AppData\Local\Programs\DeepSeek Harness
version : 0.2.2-rc.5 (electron 44.7.0)
updater : Pending staged=0.2.2-rc.5
[ok] main-exe Main executable present
[..] app-running The app is running (10 process(es))
Normal. If an update fails with a file-in-use error, quit the app first,
including its tray icon.
-> Quit DeepSeek Harness from the tray icon, then retry the update.
[ok] updater-staged A staged installer is present and not newer than the installed build
verdict: no problems detected (diagnosis only; start the app to confirm it works)
Build and test
dotnet build src/Dsht.Toolbox/Dsht.Toolbox.csproj -c Release
dotnet run --project tests/Dsht.Toolbox.Tests -c Release
# Self-contained single file, no runtime needed on the target machine
dotnet publish src/Dsht.Toolbox/Dsht.Toolbox.csproj -c Release -r win-x64 `
--self-contained true -p:PublishSingleFile=true -p:EnableCompressionInSingleFile=true -o out
The rules this project runs on
docs/SCOPE.md is a contract, not a wish list: at most eight subcommands, each with core
logic under 300 lines and at least one assertion that fails if the behaviour disappears, and
anything without usage evidence after eight weeks is deleted.
docs/ARCHITECTURE.md explains the shape (pure core, one side-effect interface, one renderer),
and docs/REVIEW.md is the reviewer's entry point, including how to exercise the repair path
against a fixture instead of a live install.
Status
diag, port and hud work; the five other commands are reserved and exit 3.
The overlay reads %USERPROFILE%\.dsh\shio-bridge\sessions.json, which the optional
dsh-minato-bridge plugin already writes every three seconds - see docs/SNAPSHOT.md.
Without that plugin the overlay shows unknown rather than hiding the fact.
The repair path was designed, implemented, reviewed, and withdrawn: four independent reviews found that it could delete its own installer, target a sibling installation, and report success without proving repair. The design and the requirements for a future attempt live in docs/REPAIR-DESIGN.md. Nothing in this build changes the machine.
License
MIT
链接
同类插件
bowenliang123/dsh-context★ 5628
DSH 上下文洞察面板:Context 仪表盘 + /context命令 + Context 浏览器,查看 Context的分类组成、内容详情、演进趋势、压缩/注入事件、统计等一站式 Context 全生命周期管理。
Han-1413141/dsh-cost-meter★ 774
会话与当日 API 费用统计、预算图框(已用%)、官方余额、历史看板,支持峰谷计价与官方价格一键同步。
wssfk12138/dsh-damage-pulse★ 291
在 DSH Web 界面追踪 DeepSeek Token 用量、单次与会话费用及账户余额,并显示缓存感知的扣费动画。
zh667/TokenLedger★ 207
侧边栏用量面板:把 Token 归属到实际服务该请求的中转站,站点从已有的 provider 配置中读出,无需额外配置;含今日/本月/累计三窗口、按站点与模型下钻、一年活跃度热力图,以及 New API / Sub2API / DeepSeek 余额。
Ychris12138/dsh-usage-stats★ 193
多供应商用量看板:按供应商/模型统计 Token 与日期下钻,统一展示账户余额,并追踪 OpenCode Go / Z.ai 订阅额度。
PolinniZhong/dsh-personal-center★ 114
DeepSeek Harness 个人中心:跨会话用量统计(按供应商/模型分别统计,自动读取已配置模型)、按模型成本估算、全局自定义指令、数据驱动的桌面宠物(位图/矢量皮肤)与会话状态概览,纯本地离线运行。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。