dsh-cache-doctor

Explains DeepSeek prompt cache misses in a right-sidebar tab. It observes system-prompt/assemble and llm/stream, compares each request with the previous one in the same session, and names the first part that changed: a system prompt section (shown before and after, with the changed characters marked), the tool list, rewritten history, an expired cache or compaction. Shows today's hit rate, money the cache saved, avoidable extra cost at DeepSeek's peak and off-peak list prices, the last requests and seven days of totals.

Overview

Explains DeepSeek prompt cache misses in a right-sidebar tab. It observes system-prompt/assemble and llm/stream, compares each request with the previous one in the same session, and names the first part that changed: a system prompt section (shown before and after, with the changed characters marked), the tool list, rewritten history, an expired cache or compaction. Shows today's hit rate, money the cache saved, avoidable extra cost at DeepSeek's peak and off-peak list prices, the last requests and seven days of totals.

Installation

Install from GitHub

dsh plugin --profile web add github:qinghuidaqzp/dsh-cache-doctor

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands