dsh-workspace-switch-cost

工作区切换成本量化:量每个工作区的冷启动开销(AGENTS.md + 技能目录 + 工具 schema + 运行时上下文)、稳态值、 几轮到达稳态,然后横向对比并归因。归因需要至少三个工作区,不到就明说数据不够而不是拿两个点编一个相关性; 在所有工作区之间没有差异的因素被标注为 profile 的属性而非项目的属性。按"进入成本 × 访问频率"给出常驻/ 归档建议。纯确定性。

插件介绍

工作区切换成本量化:量每个工作区的冷启动开销(AGENTS.md + 技能目录 + 工具 schema + 运行时上下文)、稳态值、 几轮到达稳态,然后横向对比并归因。归因需要至少三个工作区,不到就明说数据不够而不是拿两个点编一个相关性; 在所有工作区之间没有差异的因素被标注为 profile 的属性而非项目的属性。按"进入成本 × 访问频率"给出常驻/ 归档建议。纯确定性。

安装方式

通过 npm 安装

dsh plugin --profile web add @bushizhanghan/dsh-workspace-switch-cost

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-workspace-switch-cost

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.

版本兼容情况

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