dsh-rtk: A DSH plugin that integrates RTK output compression into DeepSeek Harness bash tools

robbin810130/dsh-rtk

Tools & CapabilitiesVerified
Listed on 2026-08-25
Page last updated 2026-09-05

dsh-rtk is a community DSH plugin that integrates RTK into bash tools at boot, compressing terminal output to reduce LLM token usage.

dsh-rtk is a community-maintained DSH plugin that integrates RTK (Runtime Token Keeper) into bash tools at DeepSeek Harness boot, applying explicit filtering and compression to command output to reduce token consumption entering the LLM context. It patches installed bash tool files via content-anchor patches, covering standard, code, cordis, and minimal presets, and provides global and per-command disable switches. The plugin sends no network requests, collects no telemetry, and only passes command text to the explicitly configured RTK binary.

How to Install

install
dsh plugin --profile web add github:robbin810130/dsh-rtk
Category
Tools & Capabilities
Platform
DSH Plugin
Author
robbin810130
Distribution
Plugin

dsh-rtk Key Features

Compress bash outputReduce token usagePreset coverageAtomic patchingGlobal disable
Listed on dsh-plugin.org

dsh-rtk Repo Summary

What Does It Do?

dsh-rtk is a community DSH plugin for DeepSeek Harness that integrates RTK (Runtime Token Keeper) into bash tools at boot, applying explicit command-output filtering to reduce token consumption before terminal output enters the LLM context. It solves the problem of verbose bash output wasting tokens by rewriting eligible commands through rtk rewrite, covering two DSH tool bundles in macOS/Linux POSIX environments.

Core Features

  • Applies content-anchor patches at startup: modifies installed bash tool files only when all known upstream anchors match, avoiding guesswork on compatibility.
  • Covers multiple tool presets: supports standard / code / cordis and minimal presets for different scenarios.
  • Provides global and per-command disable switches via environment variables to retain raw output.
  • Uses atomic replacement with temp files and keeps pre-patch backups in the user state directory for easy recovery.
  • Sends no network requests and collects no telemetry; only passes command text to the explicitly configured RTK binary.

How to Use This Plugin?

After enabling it in DSH, restart the dsh web service so the plugin loads during startup. It will read and patch the bash tool files; then, when you invoke a bash tool (like git status) in a Git repository, the output is automatically compressed by RTK. To disable rewriting for a single command, set the environment variable before the command; to disable globally, set the corresponding environment variable or disable the plugin in the profile configuration.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: robbin810130/dsh-rtk. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.

Install, update, and uninstall this plugin in the Plugin Market of DeepSeek Harness's DSH Plugin Hub

DSH Plugin FAQ