AI Agent Hub
Back to plugins
🧩

dsh-rtk

admin-security Updated 2026.08.24

Run the following command in DeepSeek Harness:

dsh plugin install robbin810130/dsh-rtk

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install robbin810130/dsh-rtk in your terminal to install the plugin; the source code is available at https://github.com/robbin810130/dsh-rtk .

About this plugin

The bash tools in DSH pipe raw terminal output -- build logs, git diffs, verbose error traces -- straight into the LLM context. That content easily runs into tens of thousands of tokens, inflating API costs and crowding out the reasoning window that actually matters. dsh-rtk tackles exactly this problem: it compresses terminal output before it ever reaches the model.

Under the hood, dsh-rtk applies content-anchored patches to dsh-tool-bash and dsh-tool-bash-persistent so that matched bash commands are first run through a user-specified RTK rewrite binary. The output is compressed before entering the context window. Patches use atomic writes, refuse to modify files when upstream anchors do not match, and keep pre-patch copies under ~/.dsh/dsh-rtk/ for easy rollback. The plugin makes no network requests, collects no telemetry, and all transformation stays inside the local RTK process.

dsh-rtk is built for developers on macOS or Linux who rely on DSH bash workflows and routinely hit token budgets with verbose terminal output. Point RTK_BIN at a trusted local RTK binary and you get output compression across standard, code, cordis, and minimal presets. A global or per-command kill switch (DSH_RTK_DISABLE) is always available.

Use Cases

  • Verbose build logs and git diffs keep blowing up the token budget
  • You want output compression without any extra network service or remote API
  • Apply consistent output compression across multiple DSH presets such as standard, code, cordis, and minimal

Best For

  • Developers running DSH bash workflows on macOS or Linux
  • Users whose API costs spike from verbose terminal output
  • Privacy-minded users who prefer local, telemetry-free, network-free plugins