dsh-compress-bench

给上下文压缩做本机镜像 A/B 的量具,不是又一个压缩插件。同一个只读场景、同一模型、temperature 0,压缩关跑一遍、开再跑一遍,记录输入 token、轮数、工具调用成功率、事实覆盖、答案相似度与逐行差异,产出 JSON、自包含 SVG 和原始警告。18 个 node --test 测试,零依赖。首次实测:本地估算输入 token 63,029 → 6,927(−89.0%),轮数 3 → 3,事实 3/3 → 3/3,答案相似度 1.00(单样本)。

插件介绍

给上下文压缩做本机镜像 A/B 的量具,不是又一个压缩插件。同一个只读场景、同一模型、temperature 0,压缩关跑一遍、开再跑一遍,记录输入 token、轮数、工具调用成功率、事实覆盖、答案相似度与逐行差异,产出 JSON、自包含 SVG 和原始警告。18 个 node --test 测试,零依赖。首次实测:本地估算输入 token 63,029 → 6,927(−89.0%),轮数 3 → 3,事实 3/3 → 3/3,答案相似度 1.00(单样本)。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:dingchenhui0618-arch/dsh-compress-bench

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.

版本兼容情况

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