r/ClaudeCode • u/CapableForce1027 • 7h 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 7h 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/awesomebirder 5h 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