2026-11-26 15:39 UTC

Hystax reports 20% Claude Code cost cut by keeping prompt cache warm

state: expiredheat: mediumuncertainty: mediumrelevance: mediumclaude-code prompt-caching inference-costHystaxMax Bozhenko

What is this?

Hystax CTO Max Bozhenko says the company’s open-source Kompressor proxy can reduce Claude Code API costs by preserving Anthropic prompt-cache hits during long tool waits, rather than relying mainly on compressing repeated tool output. In an 89-task Terminal-Bench 2.1 run using Opus 5.5, Hystax reports costs fell from $35.35 to $28.30 (20%), with cache-expiration token rewrites dropping from 927,000 to 13,000 and task success changing from 89.9% to 90.6%. The method compresses only uncached text and can send small requests to keep the five-minute cache warm, switching to a one-hour cache after longer pauses. These are company-reported results; the source notes that the cost difference hinged on four tasks and that agent runs vary. Search results include Hystax’s cost-analysis article and Anthropic documentation describing prompt caching, but no independent replication is supplied.

Why it matters

This is a practical cost-optimization finding for coding agents: when a tool waits longer than the prompt cache’s lifetime, rewriting a large prefix may cost more than the repeated tool output that compression targets. If Hystax’s results generalize, keeping caches warm could make long-running agent workflows—such as builds, training, and simulations—cheaper without reducing task performance. The evidence is promising but narrow and vendor-reported; the keep-warm technique also adds proxy requests and its economics depend on cache pricing and real workloads.

Current assessment

New: Hystax has shared an open-source Kompressor configuration and a company-run Claude Code cost test. The reported comparison used Opus 5.5 on 89 Terminal-Bench 2.1 tasks: $35.35 versus $28.30 per run, a 20% reduction including keep-warm pings; reported task success was 89.9% without compression and 90.6% with it. Hystax attributes most savings to preventing cache expiry during long tool runs, reporting 927,000 tokens rewritten without the setup versus 13,000 with it; for tasks waiting more than five minutes, it reports a 34% cost reduction. The company says results varied substantially between runs and the overall difference came down to four of 89 tasks. Its further estimate—about 11% savings from keeping the cache current plus a few points from compression—is an expectation, not a separately established result. Anthropic documentation in the supplied search results confirms the general mechanism of prefix-based prompt caching and says Claude Code uses it to reduce repeated-content costs; it does not independently verify Hystax’s prices, test, or savings. The linked Hystax article and company social posts echo the claim, not independent validation. Useful follow-up: test across repeated runs and real workloads, verify current cache pricing and expiry behavior, and measure whether the extra requests and proxy setup pay off for users’ tool-wait patterns.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p17momentum: steady2 platformsage 577h
points/hour across evidence · reading as of 2026-11-27 01:24:41.180923+11:00 · deterministic, not a model opinion

How the heat travelled

11-02 13:00⭐ origin echo-reconstructedThe original is OptScale AI’s post, “OptScale Kompressor, Part 2: On Claude Code, the Cache Is the Bill.” It reports: “Its bill turned out t
OptScale AI on blog (echo) · attributed from hn.story.50467233
—
11-12 14:02first on hacker news · published · +241.0hClaude Code's API billing depends on how often the cache expires
MaxBozhenko
—
11-12 14:02amplified on hacker news 👑hn.story.50467233
MaxBozhenko
peak 6 · 1 comments · 101% of case engagement
11-12 14:21our radar first saw it · +241.4hdiscovery anchor: hn.story.50467233—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnClaude Code's API billing depends on how often the cache expiresMaxBozhenko61
🟧 echo.blog ⭐The original is OptScale AI’s post, “OptScale Kompressor, Part 2: On Claude Code, the Cache Is the Bill.” It reports: “Its bill turned out tOptScale AI——

Interpretation history

Decision trace