DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
R

dsh-rtk-compressor

Rtk Compressor

DeepSeek Harness plugin that routes bash commands through RTK (Rust Token Killer) to compress shell output and save context tokens.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:sondin/dsh-rtk#d49134e23cc42944071f2cdb3a7b7b6b86137d02
READMECompatibilityVersions

Compatibility and provenance

Rtk Compressor is published as dsh-rtk-compressor and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/21/2026

Versions

0.1.0stable
10/21/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/21/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in developer-tools.

MarketdshmarketVisual plugin market inside DeepSeek Harness — browse, search, and one-click install community plugins. · DSH 可视化插件市场:逛一逛,点一下,装好。Better Sidebardsh-better-sidebarBetter Sidebar for DSH — file tree, editor, changes, tasks and side chat in one column, separate for every conversation. Also exposes a service other plugins use to register sidebar tabs and file viewers.Ssh@linxin666/dsh-sshRemote SSH operations for the dsh web GUI: host config store (~/.dsh/dsh-ssh.json, import from ~/.ssh/config), a persistent ssh2 connection pool with jump-host support, exec / PTY web terminal / SFTP transfer / local port-forward tunnels / cluster executiOpsdsh-opsNative file and PTC tools for DSH on Windows x64, Linux x64 and macOS arm64/x64; Windows-only optional Bash payload and host PowerShell integration

README

dsh-rtk

A DeepSeek Harness plugin that routes eligible bash commands through RTK (Rust Token Killer) so the output an agent reads back is already filtered, grouped, truncated, and deduplicated — saving context tokens the same way RTK's own agent hooks do.

  • Zero prompt changes: the bash tool keeps working, but commands like git status, cat src/main.rs, grep -rn TODO src, npm test, git diff, and find . -name '*.ts' are transparently rewritten to their rtk equivalents (rtk git status, rtk read src/main.rs, rtk grep ..., rtk cargo test, ...) before execution.
  • Fail-open: if RTK is not installed, times out, has no equivalent for a command, or a deny rule matches, the original command runs unchanged.
  • An rtk skill is registered for the agent, teaching it how to interpret compressed output, recall elided content (rtk recall), bypass filtering (rtk bypass), and read savings analytics (rtk gain).

How it works

DSH's tool pipeline deliberately cannot rewrite exec.arguments (tools/pre-execute and tools/execute receive deep-frozen arguments). Instead, this plugin wraps the shell executor seam: the bash tool resolves a ShellExecSpec through ctx.shell.resolve(...) and spawns with ctx.shell.execute(spec). The plugin wraps ctx.shell.execute and, for each command, calls rtk rewrite <command> (RTK's own "single source of truth" hook command):

rtk rewrite exitmeaningplugin behavior
0 / 3rewrite printedexecutes the rewritten rtk ... command
1no RTK equivalentpasses the command through unchanged
2deny rule matchedpasses through (DSH's own approval already ran)
spawn error / timeoutRTK unavailablepasses through; failure is not cached

The rewritten command runs with RTK_SUPPRESS_HOOK_WARNING=1 so RTK's "install a hook" nag never pollutes tool output. A bounded LRU cache avoids re-spawning rtk rewrite for repeated commands.

Sandboxing is unaffected: the sandbox executor still applies the configured sandbox mode to the spawned process, and RTK preserves exit codes, so the [exit code: N] markers stay accurate.

Installation

The plugin is a DSH bundle (an npm package whose package.json declares dsh.bundle.patch). Install it into a profile with the plugin manager:

  • Web UI: open the Plugins page in the DeepSeek Harness sidebar and install the bundle by spec (registry name dsh-rtk-compressor, git URL https://github.com/sondin/dsh-rtk, or a local link:/absolute/path/to/dsh-rtk).
  • plugin_manager tool: call installBundle with the same spec.
  • CLI (when available): dsh plugin --profile <profile> add <spec> then enable the dsh-rtk bundle.

The bundle's cordis.patch.yml mounts the plugin row:

- insert:
    - id: rtk
      name: dsh-rtk
      config:
        enabled: true

After installation, restart DSH (or rely on HMR when the profile runs with live patch reload). The plugin takes effect for every bash tool call.

Configuration

The plugin row accepts a Schemastery config:

fieldtypedefaultdescription
enabledbooleantruemaster switch; when false every command passes through
binarystring"rtk"path to the RTK binary
timeoutMsnumber2000per-rtk rewrite call timeout
cacheSizenumber256LRU cache size for rewrite results
excludedCommandsstring[][]command prefixes that are never rewritten
debugbooleanfalselog each rewrite decision to the harness logger

Example:

- id: rtk
  name: dsh-rtk
  config:
    enabled: true
    excludedCommands:
      - sudo
      - ssh
    debug: false

Skill

When the skills service is present (it is in the default composition), the plugin registers a runtime skill named rtk. The skill tells the agent:

  • bash output may be compressed; exit codes remain accurate
  • use rtk recall <hash> / rtk recall --grep <pattern> to recover elided content
  • use rtk bypass <command> to execute a command without filtering
  • use rtk gain, rtk discover, rtk session for savings analytics

Development

pnpm install
pnpm test

Tests cover the rewrite decision logic (with a fake shell executor), the disposer restoring the original executor on plugin unload, and the real rtk rewrite CLI behavior (rewrites, chains, no-equivalent, already-rtk commands).

Related projects

  • DeepTrial/dsh-bash-rtk — a TypeScript implementation of the same idea (subclassing the official DSH executors with a whitelist-based rewrite). This project differs by rewriting command chains (a && b), using RTK's own rtk rewrite as the source of truth (so new RTK commands work without plugin updates), registering an rtk skill for agents, and requiring no build step.
  • rtk — the Rust Token Killer CLI this plugin routes commands through.

License

MIT