jianzhichun/permafrost

11 stars · Last commit 2026-06-10

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.

README preview

<div align="center"><pre>
   ___  ___ ___ __  __  _   ___ ___  ___  ___ _____
  | _ \| __| _ \  \/  | /_\ | __| _ \/ _ \/ __|_   _|
  |  _/| _||   / |\/| |/ _ \| _||   / (_) \__ \ | |
  |_|  |___|_|_\_|  |_/_/ \_\_| |_|_\\___/|___/ |_|
        freeze the prefix · melt the bill
</pre></div>

<p align="center"><strong>A Claude Code plugin that keeps DeepSeek's prompt cache hitting when Claude Code would otherwise bust it.</strong></p>

<p align="center">cache-stable passthrough proxy · deterministic tool order · env freeze+delta · cold-anchor coalescing · live hit-rate statusline · zero deps</p>

---

Pointing Claude Code at DeepSeek's Anthropic-compatible endpoint is cheap, and a
**vanilla session already hits DeepSeek's cache ~90% on its own** — CC's system
prompt is shared across users, so it stays warm. The cache breaks when your
**tool list isn't stable**: MCP servers connect and reshuffle it, and because
tools render *first* in the cached prefix, any reorder busts everything from
byte 0. Permafrost sits between CC and DeepSeek and rewrites the cache-relevant

View full repository on GitHub →