dsh-rtk-tools
DSH plugin: expose rtk (Rust Token Killer) token-optimized commands as model-callable Tools (9 wide categories + doctor), saving 60-90% tokens on shell output.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:pharaohnie/dsh-rtk-tools说明文档
阅读完整 README ↗配置
# dsh profile 配置(可选)
- id: rtk-tools
name: dsh-rtk-tools
# config:
# rtkPath: /opt/homebrew/bin/rtk
# defaultTimeoutMs: 30000
# stdoutMaxBytes: 200000
# injectSystemPromptSection: true
# enabledTools: [git, search, test, doctor]
环境变量:RTK_BIN(路径覆盖)、RTK_DEFAULT_TIMEOUT_MS、RTK_STDOUT_MAX_BYTES。
验证
cd
node scripts/smoke.ts # 冒烟测试(resolveRtkPath / shQuote / 白名单 / schema)
License
- 本插件:Apache License 2.0
- rtk 二进制:Apache License 2.0(本插件不分发 rtk 二进制,用户自行安装)