dsh-cache-safe-tool-result
2026-10-04
DeepSeek Harness plugin
DeepSeek
DSH
Cache Optimization
Recommended plugins
Tool result trimming
The DeepSeek Harness (DSH) plugin is designed to address a vulnerability in DSH's implicit prompt caching. DSH's "in-place" truncation can invalidate tail content and trigger re-billing. The plugin ensures the integrity of cached prefixes by truncating results before they reach the conversation surface and preventing the rewriting of already delivered results. By using the `tools/post-execute` hook and the `toolResultPruner` service, it achieves a high cache hit rate, making it well suited for scenarios that require handling large tool results while maintaining cache validity.
Read More