r/ClaudeCode • u/CapableForce1027 • 3d ago
Built with Claude Half my Claude Code tokens went to stuff I never asked for
I put a logging proxy in front of Claude Code to see where tokens actually go.
I typed 3 prompts. It sent 7 requests.
Two of them were the grey “next prompt” suggestions. Each one re-sent the entire conversation so it could guess what I might type next. Another request just named the session. On top of that, every request includes the full list of every skill and tool you’ve installed used or not.
Claude Code already has settings to turn most of this off. I just packaged the useful ones into one command so you don’t have to hunt for them.
Results (measured):
- 3-prompt chat: ~85K tokens → ~40K (-53%), same answers
- Short chats: roughly half the tokens
- SWE-bench Verified (Sonnet 4.6, 33 tasks): same 20 solved, $24.78 → $20.05, 135 → 103 minutes
It only turns off things that cost tokens and aren’t required for the actual work (suggested prompts, session titles, long skill descriptions, a rarely used tool, etc.). Claude’s answers stay the same.
Install:
Bash
npx claude-lean initUninstall is one command too. No account, no telemetry.
Repo: github.com/JacobTheJacobs/claude-lean
One caveat I learned while testing: token usage on the same task can swing a lot between runs. If you’re evaluating any cost-saving tool, run it on your own work (or a fixed benchmark) more than once.
•
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.
2
u/CandidSystem6155 3d ago
Matches what we saw when we measured: reading context was around 170x the tokens the model actually wrote, so anything that resends the whole conversation is where the cost lives. Besides the settings, what helped was keeping sessions short and moving mechanical steps like fetching, parsing and counting into small scripts, so the model only reads the narrowed output and decides.
1
u/Surendra_GBP 2d ago
The 53% reduction is impressive, especially if answer quality stays consistent. One thing worth checking is whether these savings hold up in longer coding sessions, where conversation history and tool descriptions can add significant overhead.
Would be interesting to see a breakdown of which disabled features contributed the most savings. That would help developers understand what they're actually paying for.
1
u/cautistic-john 2d ago
the detail i'd want to see is whether both setups solved the same 20 tasks. the same total can hide a few regressions cancelling out a few improvements, which matters when the claim is that the answers stay the same. also useful to separate the settings that disable background requests from anything that changes which tools the agent can use. i'd be much more comfortable adopting the first group without changing my actual workflow.
-5
u/awesomebirder 3d ago
nice writeup, and the caveat at the end is the most useful part. one thing worth separating: the skill and tool list sits at the start of every request, so after the first call it is mostly a cache read billed at about a tenth of normal input. halving raw tokens is not halving cost or limit. the suggestion requests that re-send the whole chat matter more, especially if they land after the cache expired. your swe-bench dollar number is the fairer comparison, would be curious to see it split into cache reads, cache writes and output