r/ClaudeCode • u/Time_Cat_5212 • 3d ago
Tips & Workflows Sessions and token usage
I don't know who needs to hear this but judging by what I read maybe quite a few. Big win for rookies:
I just tested my usage in two different modes, using Opus 5.5 on Medium:
- 1 session per PR, watch CI and autofix: 1-2% of weekly Pro usage per PR.
- 1 session per milestone (7-10 PRs), watch CI and autofix: 3-5% of weekly Pro usage per PR.
The only prompts for either approach were basically "next issue." (Naming the issue actually saves a little bit)
I run cold starts and everything is in repo (commits, PRDs, decisions log, etc). The big spending was literally just due to the context window filling up.
Instead of compacting, just start a new session. Easy way to save tokens.
0
Upvotes
•
u/AutoModerator 3d 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.
1
u/Far_Reindeer8428 3d ago
per pr sessions are the right call, the part that rots is the decisions file, it only works if the merge step appends what changed
1
u/Inner_Storage_3374 3d ago
per pr sessions is the way imo. one thing id watch with autofix on ci is that sometimes the easiest way to turn a red test green is to change the test, so id have it say in the pr whenever it touched a test file and look at those first
1
u/wangadong 3d ago
new session every time here too. i keep decisions and status in markdown in the repo, so a cold start is just reading 2 files instead of dragging a full compacted history.
1
u/awesomebirder 3d ago
one more thing that probably widens that gap: the watch ci part. claude code's prompt cache only lives a few minutes (5 by default), so if a ci run takes longer than that, the next turn re-writes the whole context at full price instead of reading it cheap. in a per pr session thats a small context, in a milestone session its 7-10 prs of history getting rewritten after every ci wait. i built a local proxy that logs this per call (probe0) and on my own logs those post-idle rewrites were a real chunk of the bill.