Repository navigation
Releases
Releases · Shaw529/dsh-token-saver
dsh-token-saver v0.1.0
dsh-token-saver v0.1.0
First public release of the dsh-token-saver plugin for DeepSeek Harness.
Highlights
conservative(default): lossless head/tail truncation + grep fold for every large tool result, routed throughtools/post-execute. Saves 97.6 % of input tokens on the 8-scenario synthetic suite.balanced: additionally callsctx.compaction.compactIfNeeded()onagent/pre-steponce token pressure crosses 50 %.aggressive: replacesdsh-compaction-basicwith the bundledLlmSummaryCompactionEnginesubclass (gracefully degrades to the official path on LLM failure).- Prompt-cache utility that pins stable system-prompt sections for high cache hit-rate.
- 63 vitest cases + smoke + benchmark harness covering strategies, regression snapshots, and the full dsh event flow against a mock scope.
Installation
dsh plugin --profile web install dsh-token-saverAlready listed in awesome-dsh-plugin.
Documentation
- GitHub Pages: https://shaw529.github.io/dsh-token-saver/
- Chinese README: see README.md
- Real-environment evaluation template: BENCHMARK.md
Compliance
- Follows the
dsh-pluginGitHub topic convention - Declares
dsh.bundle+cordis.patch.ymlso it's installable viadsh plugin add - Official
@deepseek-ai/*packages declared aspeerDependencieswith explicit prerelease branches - All reductions go through dsh event flow — the "model-visible = logged" invariant holds end-to-end