Claude Code is reported to have two caching bugs that can silently increase API costs by 10-20 times.

robot
Abstract generation in progress

ME News message, March 31 (UTC+8), a Reddit developer revealed that, using Ghidra, an MITM proxy, and radare2, they reverse-engineered a 228MB binary file of the standalone installation version of Claude Code. They found two separate cached bugs that can raise API costs by 10–20 times without users knowing. The relevant analysis has been submitted to GitHub (issue #40524), and Anthropic marked it as a regression bug and assigned it for handling. The first bug exists in the customized Bun runtime used by the standalone installation version; an error in the billing identifier replacement logic causes a full cache rebuild to be triggered on every request. The second bug affects users who use --resume or --continue to restore sessions; introduced since v2.1.69, a cache prefix mismatch causes the entire conversation history to be read from cache to instead be fully rewritten. Previously, an Anthropic engineer had confirmed that users are meeting usage limits at a pace “much faster than expected”. (Source: PANews)

View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • Comment
  • Repost
  • Share
Comment
Add a comment
Add a comment
No comments
  • Pin