DeepTrial/dsh-bash-rtk
DeepTrial★ 2TypeScript最后同步: 2026-08-15
DeepSeek Harness bash executor plugin that routes eligible commands through rtk (Rust Token Killer) to compress tool output and save tokens.
README 摘要
dsh-bash-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. 中文版 Why LLM agents burn tokens on verbose tool output ( git log , cargo build , pytest trails…). rtk already knows how to shrink those for 30–90%. This plugin bolts that filtering onto dsh 's bash executor so every eligible command is auto-routed through rtk — with zero semantic change to what actually runs. How it works Three independent guards decide (see src/wrap.ts ): 1. Complexity — any shell metacharacter ( & ; \ $ ) disqualifies the command. Wrapping those would silently alter what runs, so they pass through untouched. 2. Whitelist — only known dev tools that rtk actually implements are eligible (map in wrap.ts ). 3. Availability — if the rtk binary is absent on PATH , the transform is the identity : the deployment behaves exactly like the stock local executor. Versioning note The plugin does not bundle or pin rtk . At dsh startup it probes rtk --version on PATH (see resolveRtk() in src/index.ts ). Therefore: - When rtk ships a new release , any user who upgrades rtk on their machine automatical…
在 GitHub 查看完整 README →