doctor
CommandDiagnose what is busting Claude Code's DeepSeek prefix cache
Run the Permafrost cache benchmark (offline emulator, no API key)
> /plugin marketplace add jianzhichun/permafrost> /plugin install permafrost@permafrost
description: Run the Permafrost cache benchmark (offline emulator, no API key) argument-hint: "[turns]" allowed-tools: Bash(python3:*)
Run the offline DeepSeek cache benchmark and report the result.
!`python3 "${CLAUDE_PLUGIN_ROOT}/benchmarks/bench.py" --turns ${ARGUMENTS:-12}`
Present the table to the user and call out the headline: in the realistic "both" scenario, how the hit rate and cost change between `off` and `aggressive` mode, and how many anchor resets each mode incurs. Note that this uses a faithful emulator of DeepSeek's prefix cache — to measure the live API instead, add `--real` with a `DEEPSEEK_API_KEY` set.
Freeze Claude Code's prompt prefix so DeepSeek's automatic cache always hits — alignment proxy + coalescing + keepalive, installable as a CC plugin. Measured 64% cheaper on real Claude Code traffic.
Diagnose what is busting Claude Code's DeepSeek prefix cache
Show Permafrost's live DeepSeek cache hit rate and dollar savings
Explain how to launch Claude Code through the Permafrost proxy
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.