dsh-routing-forensics

模型路由浪费取证:回放每个会话,按请求形状确定性判定每轮任务复杂度(不调 LLM),报两类浪费——贵模型干 便宜活(差额可计算),以及便宜模型干贵活且因自身能力失败(每次重试重发整个上下文,比直接升级更贵)。会 区分服务商容量限制(RATE_LIMIT/TIMEOUT/TRANSPORT)与模型能力失败,所以不会天天喊狼来了。并从证据推导路由 规则,按内置每百万 token 价目表估算金额。

插件介绍

模型路由浪费取证:回放每个会话,按请求形状确定性判定每轮任务复杂度(不调 LLM),报两类浪费——贵模型干 便宜活(差额可计算),以及便宜模型干贵活且因自身能力失败(每次重试重发整个上下文,比直接升级更贵)。会 区分服务商容量限制(RATE_LIMIT/TIMEOUT/TRANSPORT)与模型能力失败,所以不会天天喊狼来了。并从证据推导路由 规则,按内置每百万 token 价目表估算金额。

安装方式

通过 npm 安装

dsh plugin --profile web add @bushizhanghan/dsh-routing-forensics

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:bushizhanghan/dsh-routing-forensics

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。