dsh-rtk-workbench

把 Claude Code 里 rtk 的省 token 机制接进 DSH:能改写的命令交给 rtk 重写,改写够不着的构建、测试、日志也会被压缩;git、cargo、npm、pytest 等常见命令都有覆盖。压缩后会告诉模型省略了什么、怎么找回原文——读不到 rtk 存储时原文另存并给出路径;省了多少不用敲命令,输入框下方的浮标直接显示,`/rtk stats` 看明细。改写不可靠时原命令照常执行:rtk 跑不起来,或命令会丢参数,都不会失败。rtk 二进制随包,主流平台不用像多数其他 rtk 插件那样先自行安装。

插件介绍

把 Claude Code 里 rtk 的省 token 机制接进 DSH:能改写的命令交给 rtk 重写,改写够不着的构建、测试、日志也会被压缩;git、cargo、npm、pytest 等常见命令都有覆盖。压缩后会告诉模型省略了什么、怎么找回原文——读不到 rtk 存储时原文另存并给出路径;省了多少不用敲命令,输入框下方的浮标直接显示,`/rtk stats` 看明细。改写不可靠时原命令照常执行:rtk 跑不起来,或命令会丢参数,都不会失败。rtk 二进制随包,主流平台不用像多数其他 rtk 插件那样先自行安装。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:YunaAloft/dsh-rtk-workbench

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.

版本兼容情况

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