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.
AI 분석
核心用途是通过 token 优化的命令行工具降低 AI 执行 Shell 任务时的成本。适合频繁让 AI 执行 Git、搜索、测试等终端命令的用户;需自行安装 rtk 二进制。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:pharaohnie/dsh-rtk-tools配置
# 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 二进制,用户自行安装)