pharaohnie/dsh-rtk-tools0

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.

包名
dsh-rtk-tools
版本
0.1.0
许可证
Apache-2.0
最近更新
2026年8月26日

安装

$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_MSRTK_STDOUT_MAX_BYTES

验证

cd 

node scripts/smoke.ts        # 冒烟测试(resolveRtkPath / shQuote / 白名单 / schema)

License

  • 本插件:Apache License 2.0
  • rtk 二进制:Apache License 2.0(本插件不分发 rtk 二进制,用户自行安装)