dsh-token-frugal: Compacting Tool Output and Controlling Input Tokens in the Harness Event Stream

dsh-token-frugal is a DSH model inference plugin (v2.2.0, MIT) maintained by Dreverie. It performs structure-aware compression and budget-based truncation on tool results via the tools/post-execute hook, supports per-agent tool directory hiding and workspace memory recall, and provides tiered switches (Basic / Intermediate / Advanced) below the input field along with a statistics page in Settings. Installation is handled through SkillHub and delegated to either Harness or the plugin manager's install_bundle—there is no standalone `dsh plugin add` CLI. The README self-test reports an approximately 41.76% reduction in prompt tokens across four sessions, with a bundled measure-tokens.mjs script for offline reproduction. It is best suited for developers working in long sessions; the plugin operates under the same permissions as Harness, Advanced mode involves information trade-offs, and a restart is required after upgrading to activate the statistics routing.

Read More
dsh-token-frugal: DeepSeek Harness Input Token Cost Optimization Plugin

The DeepSeek Harness plugin dsh-token-frugal is designed to reduce input token costs for long sessions through tiered saving strategies and session memory matching. It extends five key areas: lossless or truncated compression of tool results, agent tool directory management, workspace memory matching, a visual tiered control panel, and a statistics page. Users can adjust the saving level in real time below the chat box and view detailed token-saving statistics in settings, effectively controlling costs without compromising core capabilities.

Read More