news

Anthropic quietly nerfed Claude Code's 1-hour cache, and your token budget is paying the price - XDA

Claude Code users reported burning through usage quotas faster after Anthropic shortened the tool’s effective cache window, reducing how much prior context could be reused without re-paying input tokens.

Published 2026-04-20Source: XDA
Generated Tokenmaxxing editorial thumbnail for Anthropic quietly nerfed Claude Code's 1-hour cache, and your token budget is paying the price - XDA

Why it matters

Caching policy changes can swing the effective cost of agentic coding dramatically. If your workflow depends on long-running projects and repeated context reuse, a cache-window reduction can turn ‘steady’ spend into surprise overages overnight.

Tokenmaxxing read

Tokenmaxxing isn’t just verbosity—it’s cache economics. Track cache hit rates and billed input tokens, budget for cache misses, and design flows to avoid replaying long context (summaries, state files, retrieval, smaller diffs).

Source takeaway

The article points to Claude Code JSONL logs (`~/.claude/projects/`) with cache fields like `ephemeral_5m_input_tokens` vs `ephemeral_1h_input_tokens`, plus a mid-April Anthropic comment on a Claude Code GitHub issue about the shorter cache.

Topic links

tokenmaxxingcoding-agentstopicagentstopicscoreboards
Related projects

Tools that match this angle

#4In spirit
Agents

LangGraph

langchain-ai/langgraph

A framework for building resilient stateful agents with explicit graphs, persistence, human-in-the-loop flows, and controllable execution.

37K6.2KMIT
agentsstateworkflows
#5Direct
Evaluation

promptfoo

promptfoo/promptfoo

A CLI and CI workflow for testing prompts, agents, and RAG systems across models, with evals and red-team style checks.

23.1K2.1KMIT
prompt-evalscirag
#6In spirit
Evaluation

DSPy

stanfordnlp/dspy

A framework for programming and optimizing language-model pipelines rather than hand-tuning one prompt at a time.

36K3.1KMIT
optimizationprogrammingevals
Related feed

More source-linked context

Anthropic source artwork
newsA
news

Introducing Claude Sonnet 5

Anthropic launched Claude Sonnet 5 on June 30, priced at $2/$10 per million input/output tokens through Aug 31, then $3/$15. It pitches the model as approaching Opus 4.8 quality at a lower price.

tokenmaxxingcoding-agentsagents
Read note
Amazon Web Services source artwork
newsAW
news

Analyzing Claude Code usage with CloudWatch and OpenTelemetry | Amazon Web Services

AWS engineers detail how to export Claude Code OpenTelemetry metrics into CloudWatch via bearer-token API keys, tracking claude_code.token.usage and cost.usage per developer — under $15/month for a 200-person org.

tokenmaxxingcoding-agentsagents
Read note
Ars Technica source artwork
newsAT
news

Anthropic "pauses" token-based billing for its Claude Agent SDK

Anthropic paused its plan to move Claude Agent SDK power users onto metered API pricing, updating its billing page to put the rollout on hold while it reworks how heavy agent usage is charged on subscription plans.

tokenmaxxingcoding-agentsagents
Read note