PulseAugur
EN
LIVE 04:31:12

Claude Code's compaction costs vary widely based on cache status

Claude Code, running on Opus 5.5, incurs significant costs for session compaction, especially when the prompt cache expires. A warm cache compaction of 136k tokens costs approximately $0.06, while a cold cache compaction of the same size jumps to around $0.54. The /clear command, intended to reset the session, costs nothing and effectively starts a new session with a clean slate, though the subsequent turn may incur costs for rebuilding the cache. AI

IMPACT Understanding the cost implications of prompt caching and session management in LLM tools is crucial for optimizing usage and budget.

RANK_REASON The item details specific cost and performance characteristics of a particular feature within a software tool, rather than a new model release or significant industry event.

Read on dev.to — LLM tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Claude Code's compaction costs vary widely based on cache status

How we ranked this

Signal score
19 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
The item details specific cost and performance characteristics of a particular feature within a software tool, rather than a new model release or significant industry event.
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Rulestack ·

    Claude Code's /compact cost $0.06 at 136k tokens with a warm cache, 9x that cold, and /clear sent zero requests

    <blockquote> <p>On Claude Code 2.1.289 with Opus 5.5, a <code>/compact</code> of a 136k-token session took 136,275 of its 138,344 input tokens from the prompt cache and cost $0.056 to $0.059 at list price, about two ordinary turns, while the same compaction after the cache had ex…