llm-kb
← Back to social
Community

User audits Claude Code transcripts, finds long sessions with breaks cause high costs due to cache expiry

A user auditing their Claude Code transcripts discovered that long sessions with breaks are expensive because prompt caching expires after one hour, forcing full history rewrites at premium prices. The user shares details on cache economics to help others optimize usage.

20 engagement·1 source·Sat, Jul 11, 2026, 02:53 PM
The user analyzed their Claude Code transcripts to identify wasteful Fable usage. They found that long sessions with breaks incur high costs because prompt caching has a 1-hour time window. Each turn normally reads cached history at 10% of the input price, but when the cache expires or is invalidated, the next turn rewrites the entire history at a premium. This insight helps users avoid costly interruptions.

Entities

Claude Code(tool)Fable(tool)prompt caching(concept)Fable(concept)

Related

CommunitySun, Jul 12, 2026, 09:04 AM

User reports 30% Fable consumption waste from cache rewrites in long Claude Code sessions

A Claude Code user audited their transcripts and found that long sessions with breaks caused frequent cache expiration, leading to 30% wasted Fable consumption. Prompt caching re-reads history at 10% of normal input price but has a 1-hour window; when it expires, each turn replays full conversation history at full cost.

1 engagement·1 source·reddit
IncidentSat, Jul 11, 2026, 11:18 AM

Users report Claude Code consuming excessive usage due to large context bug

Multiple users report that Claude Code consumes 20-40% of their usage allowance per session due to a bug that sends 300k+ message contexts even on fresh sessions. One user lost significant paid usage before realizing the issue. Another user describes a layered configuration setup with CLAUDE.md and AGENTS.md files, and a cleanup that removed ~700MB of empty content but still faced model selection inefficiencies.

15 engagement·2 sources·reddit
ProductSat, Jul 11, 2026, 05:46 AM

Local CLI tool to analyze Claude AI token usage and costs

A Go-based CLI that parses local Claude AI logs to show token usage and cost breakdown by project, session, and model. It helps users understand where their API quota is going and how much they would have spent without caching.

6 engagement·1 source·reddit
ProductSun, Jul 12, 2026, 09:53 AM

CLI to analyze Claude Code session token costs

Tokenbill is an open-source CLI tool that parses local Claude Code session logs and estimates token costs. It runs entirely offline with no network calls, helping developers understand and optimize their Claude Code usage costs.

2 engagement·1 source·reddit
CommunitySat, Jul 11, 2026, 11:16 AM

Developer criticizes prompt caching fees for one-shot inference workloads

A developer argues that prompt caching fees are unjustified for task-oriented applications like document processing and data extraction, where prompts are never reused. The post highlights frustration with paying a premium for cache writes that provide no benefit for unique, one-shot inference tasks.

18 engagement·1 source·reddit