dsh-rtk-filter: Passing Oversized Command Output to RTK for the Model

`dsh-rtk-filter` is a community plugin for DeepSeek Harness (DSH), maintained by Aeternus123 and licensed under the MIT License. This plugin addresses the issue of excessive token consumption and high context usage caused by overly long tool outputs during agent command execution. Its core mechanism involves condensing text results that meet certain conditions (e.g., byte size exceeding the threshold `minBytes`) via the external `rtk` CLI after tool execution but before the model receives the output. The plugin is registered as a `tools/post-execute` transformer, replacing only the model-visible content without altering the original tool values, while strictly preserving critical status markers such as exit codes, timeouts, and signals. If `rtk` is missing, fails, or produces no changes, the plugin silently degrades to outputting the original content, ensuring stability.

Read More