Julia Maxwell

Julia Maxwell

Marketing & PR at Hystax

About

PR & community for AI and cloud tools. Here to discover new products, learn from makers and share what we’re building.

Badges

Tastemaker
Tastemaker
Gone streaking
Gone streaking

Forums

How to cut Claude Code token costs: theory and practice of prompt caching

Hi, I'm Julia from the Hystax team. When we launched Kompressor, Claude Code wasn't compressed yet. Our CTO Max and the team have fixed that, and here is what they learned in the process.

THEORY: on Claude Code, the cache is the bill

  • 92-95% of Claude Code's prompt tokens are cache reads. On Opus 5.5, a cache read costs $0.20 per million tokens and a cache write $5, 25 times more.

  • A cache entry lives five minutes. When a build or a training run keeps the agent idle for longer, the whole prefix is written again at full price. In our baseline, that was a third of everything billed at full price.

  • Changing any byte inside the cached prefix forces a rewrite, so compressing old history costs more than it saves.

So the question is not "how many tokens can I remove?" but "how often am I paying for the same tokens twice?"

•

2mo ago

OptScale Kompressor - Twice the Savings of Headroom on Coding-Agent Traffic

Coding agents re-send their whole history every turn, so on a long task the model re-reads the same build output dozens of times, and you pay for every read. OptScale Kompressor stops that: on Terminal-Bench 2.1 it takes 22.7% off the real bill. The same input compresses to the same bytes every turn, so the prompt cache keeps working, and every removed detail stays one retrieval away. Open source (MIT), one Rust binary, no ML model.
View more