DeepTrial/dsh-bash-rtk
DeepSeek Harness bash executor plugin that routes eligible commands through rtk (Rust Token Killer) to compres
dsh-bash-rtk reduces token usage in DeepSeek Harness by routing eligible bash commands through rtk (Rust Token Killer), which compresses verbose tool output. It hooks the bash executor's resolve() boundary before anything runs: simple, whitelisted commands (git status, cargo build, etc.) get rtk prepended; complex shell pipelines, non-whitelisted commands, and the case where rtk is missing fall through to the original command unchanged. No other behavior (workdir, timeout, env) is changed.
Install
git clone https://github.com/DeepTrial/dsh-bash-rtk.git && dsh plugin --profile web add "<absolute-path-to-dsh-bash-rtk>"No npm package — clone and install as a local path: git clone https://github.com/DeepTrial/dsh-bash-rtk.git then dsh plugin --profile web add "<absolute-path-to-dsh-bash-rtk>". Requires the rtk (Rust Token Killer) binary on PATH — install from github.com/rtk-ai/rtk. dsh-bash-rtk hooks the bash executor's resolve() boundary and prepends rtk to whitelisted commands; if rtk is absent, it falls back to the original command transparently. Node.js >=20.0.0 required.
Compatibility
DeepSeek Harness with bash executor. Node.js >=20.0.0. Requires rtk (Rust Token Killer) binary on PATH. Falls back to the original command if rtk is absent. Complex (multi-line pipe) and non-whitelisted commands pass through unchanged.
Details
- Repo: DeepTrial/dsh-bash-rtk
- Category: Agent Capabilities
- Stars: 5
- Version: GitHub source install (README-documented 2026-08-24; no npm package)
- Last push: 2026-08-25
- First seen: 2026-08-14
Recent updates
Current: resolve()-boundary hook; whitelist for simple commands (git, cargo, etc.); passthrough for complex pipelines (| && ; etc.) and non-whitelisted; identity fallback when rtk binary absent; Node.js >=20.0.0.
FAQ
- What is rtk (Rust Token Killer)?
- rtk is a separate Rust binary that compresses verbose command output (e.g. git status, cargo build) to reduce the token count before it is sent to the model. Install it from github.com/rtk-ai/rtk and put it on your PATH. dsh-bash-rtk wraps it transparently — your existing bash_* commands keep working the same way.
- What commands are routed through rtk?
- Simple, whitelisted commands (git, cargo, etc.) with no shell operators (|, &&, ;, etc.) are routed through rtk. Complex pipelines and non-whitelisted commands pass through to the original executor unchanged.
- What happens if rtk is not installed?
- dsh-bash-rtk checks for the rtk binary at resolve time. If it is absent, the plugin falls back to the original command transparently — zero error, zero behavior change.
Alternatives
omdsh-dev-dsh-plugin-terminal · MAXeaglet/dsh-bash-terminal · omdsh-dev/dsh-annotation