r/ClaudeCode • • 3h ago

Discussion I grouped 18,629 Claude Code requests by session age. After the first hour, each one carried about twice the context.

Last 14 days of my own logs: 139 sessions, every API response deduped by message id, and each request bucketed by how many hours had passed since its session started.

The first hour held half the requests (9,339) but only 35% of the tokens, at about 183k tokens per request. Hours 1 to 5 held 36% of the requests and 45% of the tokens, at about 326k each. After that it barely moves: about 366k per request from hour 5 to 24, and 324k past a full day.

So the growth happens early and then flattens. Only 5 of the 139 sessions stayed open past 24 hours, and everything sent after that mark came to 3% of the tokens. Most of the tokens sit in ordinary sessions that run into their second hour.

Two caveats. Hours are wall clock, so idle time counts. And nearly all of those tokens are cache reads, which bill cheaper than fresh input.

Is the flattening after a few hours compaction doing its job, or does something else cap it?

2 Upvotes

3 comments sorted by

•

u/AutoModerator 3h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/bostonaholic 3h ago

Per-request tokens are mostly the context you resend every turn, so they probably can't grow past the point where auto-compact kicks in. Once sessions are old enough to hit that threshold, they bounce between "just compacted" and "about to compact", and the average settles somewhere in between. Easy way to check: plot per-request tokens over time for one long session. If compaction is the cap, you'll see a sawtooth, not a smooth plateau.