dsh-rtk
把符合条件的 bash 命令交给 rtk(Rust Token Killer)执行,让工具输出在进入模型之前就被压缩:插件调用本机 rtk 重写命令并采纳其结果;rtk 未安装时,执行器行为与原生完全一致。
- 形态
- Plugin 插件
- 安装
- npm 包安装
- 需要密钥
- 否
- 近月下载
- 1,295
- 最近推送
- 12 天前更新
项目说明
From README
dsh-rtk Route eligible shell commands through rtk (Rust Token Killer) inside the DeepSeek Harness ( dsh ) bash executor — compress tool output, save tokens, change nothing else.中文版 Heads-up: a workspace-write session keeps the compression but loses the ledger and the backups.
The rewrite works in every mode.Confinement is what bites: dsh allows writes only inside the workspace, /tmp and the platform temp dir, while rtk keeps history.db , recall.db and tee/ in /Library/Application Support/rtk — outside those roots.
rtk's writes are refused silently , so rtk gain stays empty and no tee backup is kept.Two ways out: run scripts/allow-rtk-state-in-sandbox.mjs ( apply , then restart the harness) to grant that one directory, or run the session with danger-full-access .Full detail: Sandboxed sessions.
--- Table of Contents - Quick Example - Requirements - Why - How it works - Install & enabl
Original description
DeepSeek Harness bash executor plugin that routes eligible commands through rtk (Rust Token Killer) to compress tool output and save tokens.
安装方式
npm 包安装 · 安装无需配置
dsh plugin --profile web add "@viogus/dsh-rtk"dsh plugin --profile web add "<path-to-this-dir>"dsh plugin --profile web add \安全能力
静态扫描源码得到的权限画像 —— 回答的是「它要动什么」,而不是「它好不好」
- 执行命令
- 写入文件
- 读取文件
- 读取环境变量
未发现已知红线(明文传输、安装期执行代码、凭据外传等)。
能力与红线来自 awesome-dsh-plugin 的静态扫描结果(CC0 公有领域),本站未逐行复核源码; 它只覆盖能被静态识别的模式,不等于安全审计结论。
为什么是这个分数
近 12 天内有提交;README 给出了可直接复制的安装命令;装完即可用,无需额外配置;近月 npm 下载 1295 次,star 不多但真在被使用。
- 维护活跃
- 86
- 实用度
- 72
- 生态热度
- 62
- 上手便捷
- 100
- 信号质量
- 100
- 数据置信度
- 85%
相关插件
dsh-rtk-workbench
YunaAloft/dsh-rtk-workbench
把 Claude Code 里 rtk 的省 token 机制接进 DSH:能改写的命令交给 rtk 重写,改写够不着的构建、测试、日志也会被压缩;git、cargo、npm、pytest 等常见命令都有覆盖。压缩后会告诉模型省略了什么、怎么找回原文——读不到 rtk 存储时原文另存并给出路径;省了多少不用敲命令,输入框下方的浮标直接显示,`/rtk stats` 看明细。改写不可靠时原命令照常执行:rtk 跑不起来,或命令会丢参数,都不会失败。rtk 二进制随包,主流平台不用像多数其他 rtk 插件那样先自行安装。
dsh-bash-rtk
DeepTrial/dsh-bash-rtk
将符合条件的 shell 命令路由给 rtk,压缩工具输出并节省 token。