dsh-token-saver: Lossless prompt optimization before the model, view token savings in the left sidebar.
dsh-token-saver is a community plugin for DeepSeek Harness. It performs non-semantic deletions on user instructions prior to model input during agent/pre-step (removing whitespace, duplicate lines and paragraphs, conversational filler at the end, etc.), with conservative exemptions for code blocks and short messages. The plugin correctly consolidates the accounting for usage.inputTokens and cacheReadTokens, calculates costs and savings based on DEFAULTS in index.js, and displays current and accumulated amounts along with cache health metrics in the left sidebar. Installation can be performed by searching for @acmepoyen/dsh-token-saver via dshfind, installing via npm and running install_bundle, or mounting a local directory; data is persisted to ~/.dsh/dsh-token-saver.json. MIT License, version 0.1.3.
Read MoreDSH Token Saver: Compressing Context Usage at Tool Boundaries
DSH Token Saver is a DeepSeek Harness plugin maintained by LoveDoLove that intercepts overly long outputs after tool execution. It preserves headers and tails, collapses grep results, and offers optional RTK support, context pressure handling, LLM summarization, and prompt shaping. Operating in a conservative default mode, extra features are disabled by default and fail-open. It can be installed via `dsh plugin --profile web add github:LoveDoLove/dsh-token-saver`, with saving statistics available on the Web settings page and in `stats.json`. This tool is ideal for DSH developers who frequently read files and use grep, and are prone to hitting context limits; please review the source code and MIT license before installation.
Read Moredsh-token-saver: DeepSeek Harness Plugin
`dsh-token-saver` is a Cordis plugin designed for DeepSeek Harness, optimized to reduce token consumption in long-running tasks by mounting extension points. Core features include lossless head-and-tail trimming, grep result folding, automatic context compression, and optional LLM-based summarization. It offers conservative, balanced, and aggressive modes. Benchmarks show the balanced mode saves approximately 98.5% of tokens on average. Installation requires Node.js >= 22.19.0, configuration is flexible, and it is well suited to scenarios with large files and frequent retrieval results.
Read More