BotBeat
...
← Back

> ▌

AnthropicAnthropic
RESEARCHAnthropic2026-03-31

Critical Cache Bugs in Claude Code Discovery Risks Massive API Cost Overages

Key Takeaways

  • ▸Two distinct cache bugs in Claude Code can cause API costs to increase 10-20x without user awareness
  • ▸The bugs bypass Anthropic's prompt caching system, defeating cost-reduction mechanisms intended to reuse cached tokens
  • ▸Silent failures mean users may not realize they're incurring excessive costs until reviewing their bills
Source:
Hacker Newshttps://old.reddit.com/r/ClaudeAI/comments/1s7mkn3/psa_claude_code_has_two_cache_bugs_that_can/↗

Summary

A researcher has identified two significant cache bugs in Anthropic's Claude Code that can silently inflate API costs by 10-20x, potentially causing substantial unexpected expenses for users. The bugs appear to bypass Claude's prompt caching mechanism, which is designed to reduce costs by reusing cached tokens rather than reprocessing them repeatedly. These cache failures mean that prompts and code contexts that should be cached are instead being reprocessed on each request, dramatically increasing token consumption and associated costs. The discovery highlights critical efficiency and cost management issues that could impact organizations relying on Claude for code generation and analysis tasks.

  • The issue affects the reliability and predictability of API costs for enterprises and developers using Claude for code-related tasks

Editorial Opinion

This discovery underscores a critical gap between the promise of efficient, cached API access and real-world implementation. While prompt caching is a valuable cost-control feature, silent failures that multiply expenses 10-20x fold represent a serious breach of user trust. Anthropic needs to address these bugs urgently and provide transparent guidance to affected users about potential billing impacts.

AI AgentsMLOps & InfrastructureCybersecurityEthics & Bias

More from Anthropic

AnthropicAnthropic
POLICY & REGULATION

Anthropic Explores AI's Role in Autonomous Weapons Policy with Pentagon Discussion

2026-04-05
AnthropicAnthropic
POLICY & REGULATION

Security Researcher Exposes Critical Infrastructure After Following Claude's Configuration Advice Without Authentication

2026-04-05
AnthropicAnthropic
POLICY & REGULATION

Anthropic's Claude Code Stores Unencrypted Session Data and Secrets in Plain Text

2026-04-04

Comments

Suggested

OracleOracle
POLICY & REGULATION

AI Agents Promise to 'Run the Business'—But Who's Liable When Things Go Wrong?

2026-04-05
Google / AlphabetGoogle / Alphabet
RESEARCH

Deep Dive: Optimizing Sharded Matrix Multiplication on TPU with Pallas

2026-04-05
AnthropicAnthropic
POLICY & REGULATION

Anthropic Explores AI's Role in Autonomous Weapons Policy with Pentagon Discussion

2026-04-05
← Back to news
© 2026 BotBeat
AboutPrivacy PolicyTerms of ServiceContact Us