Claude Code Cache Bugs Can Increase API Costs 10-20x

A Reddit post in the ClaudeCode community reports two cache-related bugs in Claude Code that can significantly increase API costs. According to the source, these bugs can cause API costs to silently increase by 10-20 times their expected amount.
Source Details
The information comes from a Reddit post titled "PSA: Claude Code has two cache bugs that can silently 10-20x API costs" posted in the r/ClaudeCode community. The post generated discussion on Hacker News with 27 points and 3 comments at the time of reporting.
Cache bugs in AI coding assistants like Claude Code can be particularly problematic because they affect how the system reuses previously generated content. When cache mechanisms fail, the system may regenerate content unnecessarily, leading to repeated API calls and increased costs without visible changes in functionality.
Technical Context
AI coding assistants typically implement caching to reduce redundant API calls and control costs. Claude Code, like similar tools, likely uses caching to store and reuse code generation results when similar prompts are provided. Cache bugs in such systems can defeat these optimization mechanisms, causing the tool to make full API calls for operations that should be served from cache.
For developers using Claude Code, monitoring API usage and costs is recommended, especially when working with repetitive or similar coding tasks where caching should provide the most benefit.
📖 Read the full source: HN AI Agents
👀 See Also

Claude Code adds voice input with push-to-talk functionality
Claude Code is rolling out voice mode to approximately 5% of users initially, featuring push-to-talk activation by holding spacebar. Voice transcription tokens don't count against rate limits and the feature is included at no extra cost.

Longitudinal study finds AI productivity gains at 10%, not 10x
A longitudinal study tracking 40 companies from November 2024 through February 2026 found AI usage increased by 65% on average, but pull request throughput only increased by 9.97%. The data suggests coding was never the primary bottleneck in software development.

Meta tracking employee computer interactions for AI agent training
Meta is installing tracking software on US employee computers to capture mouse movements, clicks, and keystrokes for training AI models that can perform work tasks autonomously. The tool runs on work-related apps and websites and takes occasional screen snapshots for context.

Claude Code users hitting usage limits faster than expected, bugs suspected
Anthropic acknowledges Claude Code users are exhausting quotas 'way faster than expected,' with users reporting maxed-out limits within hours. Suspected bugs in prompt caching may be inflating costs by 10-20x, and downgrading to version 2.1.34 reportedly helps.