Toolshrink: Semantic Compression for Agent Tool Outputs

toolshrink is a DeepSeek Harness plugin maintained by unclecode, designed to address the issue of information loss caused by truncating tool outputs from the beginning and end. It features 13 built-in content-aware reducers (for tests, diffs, JSON, builds, logs, etc.), with a fallback to size-based truncation when no match is found. It also annotates the omitted volume and optionally saves the full original text via spill. Installation is straightforward with a single dsh plugin command, and it can also be used as a Node.js library or a custom cut extension. Licensed under MIT, the current version is 0.1.0.

Read More