An analysis of Claude Code usage revealed that a significant portion of API costs, approximately 80%, is spent on the model rereading its past conversations rather than generating new output. The author's personal logs showed $786.39 in API costs over a week, with $159 for output, $284 for cache reads, and $343 for cache writes. This high cost is attributed to the model sending the entire conversation history with each turn, even with prompt caching, which reduces the cost of rereading but still incurs significant expenses due to the sheer volume of tokens processed. AI
IMPACT Highlights potential cost inefficiencies in current LLM agent architectures, suggesting optimization strategies like context compaction.
RANK_REASON Analysis of API costs for a specific AI tool.
Read on dev.to — Claude Code tag →
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →