DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
R

dsh-rtk-compressor

Rtk Compressor

通过 RTK (Rust Token Killer) 路由 bash 命令,以压缩 shell 输出并节省上下文令牌的 DeepSeek Harness 插件。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:sondin/dsh-rtk#d49134e23cc42944071f2cdb3a7b7b6b86137d02
README兼容性版本

兼容性与来源证明

Rtk Compressor 以 dsh-rtk-compressor 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/10/21

版本

0.1.0stable
2026/10/21

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/21
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

MarketdshmarketDeepSeek Harness 内的可视化插件市场——浏览、搜索并一键安装社区插件。· DSH 可视化插件市场:浏览、搜索并一键安装社区插件。Better Sidebardsh-better-sidebarBetter Sidebar for DSH — 在一列中提供文件树、编辑器、变更、任务和侧边聊天,并为每个对话单独显示。同时提供服务,供其他插件注册侧边栏标签页和文件查看器。Ssh@linxin666/dsh-sshdsh Web GUI 的远程 SSH 操作:主机配置存储(~/.dsh/dsh-ssh.json,可从 ~/.ssh/config 导入)、支持跳板主机的持久化 ssh2 连接池、exec / PTY Web 终端 / SFTP 传输 / 本地端口转发隧道 / 集群执行Opsdsh-ops适用于 Windows x64、Linux x64 和 macOS arm64/x64 的原生文件和 PTC 工具;仅限 Windows 的可选 Bash 负载和主机 PowerShell 集成

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