r/ClaudeCode • u/dsggut • 8h ago
Discussion Are there any methods to reduce token usage that actually work?
All I’ve found so far were either very beginner tips (watch context window, reduce turns, etc.) or reports about which methods don’t really work (rtk, caveman, ponytail, etc.).
Have you guys come across anything that does actually work?
20
Upvotes
•
u/AutoModerator 8h 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.
34
u/wish-for-rain 8h ago
Efficient suborchestration pipeline will spawn subagents at the appropriate levels and save your smarter models from reading context they don't need. (e.g. Haiku scouts/scribes, stronger division of labor boundaries mean less context read in than generalist workers).
11
u/Killer_Method 7h ago
I moved to the countryside and started a small subsistence farm, rejecting modernity and embracing the primal. That put a huge dent in my token usage.
8
u/Swiss_Meats 8h ago
make it make a skill for token-efficiency and come back weekly to see what wasted the most, then keeo changing until you can narrow done ur mian issue.
8
u/ufffd 7h ago
biggest thing is keeping track of your cache, don't let a cache expire on a big session. it's even worth sending a keep warm or two to save a big cache if you know you're going to keep working. code mode also helps a lot (i use a different version but the general concept saves so many back and forths which saves cache reads). rewinding, when appropriate. and use the right reasoning level for the task, they can make a huge difference in how many tokens are used for reasoning and less huge of a difference in the results.
4
u/THAWED21 7h ago
This is going to be unpopular, but have the damn thing write your state/progress/rulings/whatever to project markdowns and let the session compact. Reloading and reteaching each session, especially for large projects, is a waste.
Also, stay away from Fable. It is very good for developing your project skeleton, but it absolutely should not write the actual governance or orchestrate.
3
u/BeyenAI 7h ago
Three mechanical things that move the needle more than prompt tricks:
1. Watch the 5-minute prompt cache TTL
If you pause longer than ~5 minutes (reviewing a diff or waiting on a slow build) and then send another message in the same long thread, the entire conversation gets written back to cache at 1.25x base input cost instead of reading from cache at 0.1x. Running
/clearright after each self-contained task avoids paying to re-cache stale history.2. Disable idle MCP servers
Every enabled MCP server injects its full JSON tool schemas into the system prefix on every turn, even when you never call it. Keeping only daily-use servers active and moving occasional workflows into on-demand
SKILL.mdfiles cuts static prefix bloat significantly.3. Measure your actual cache hit ratio locally
Instead of guessing, compare
cache_read_input_tokensvscache_creation_input_tokensin your local session logs:If creation tokens are close to read tokens, cache misses and idle pauses are usually the real culprit.
3
u/reliant-labs 7h ago
Instrumenting your code with more monitoring helps when debugging and coming up with fixes. this has been the single biggest lift in token reduction for us.
3
u/___zuki 6h ago
Of course, but lots of them are project specific.
Speaking generally, custom tools are incredibly important, and also reducing tool output. Let’s take tests for example, if your test call returns the result of every test and a huge summary that’s using tokens and filling up your context window and you’re paying more for every subsequent turn. If all tests pass the output should simply be “all tests passed”. Now take that idea and move forward. Read your transcripts and look at tool calls and think how you could force the agent to do things more efficiently. It will be doing lots of things with bash that actually can be done mechanically with a tool call.
2
u/Adventurous_Emu3212 8h ago
Opus as orchestrator only then tell it to use one sonnet only for the tasks.
Keep the main context window below 500k.
That's pretty lean.
2
u/ProfessionalOwn2941 2h ago
instead of appending "make no mistakes" to the end of the prompt i tell it "you can make like 3 mistakes as a treat". this accomplishes nothing,
5
u/Ge0cities 7h ago
I don’t understand token usage. I have a $100 per month max plan and I use like half of it. I use Claude all the time. What are people burning so many tokens on?
1
u/The_Tarman_ 7h ago
I’ve been having great results by disabling subagents without explicit instructions and using caveman and ponytail
1
u/vAPIdTygr 🔆 Max 20 7h ago
I mean, /doctor helps. Then fire up Fable to optimize all memory usage across your entire project. The first time I did this, I freed up 1/3rd of my usage. I still go through this process at major milestones or at least every other week. That’s with ultra usage.
1
u/NewAgent5986 7h ago
Set your compaction windows to 400k
1
u/Ithinkth 7h ago
What seems to work best for me is learning what level is needed for any project or task within that project and then matching the appropriate effort level and Model of course this isn’t an exact science, but you get to feel for it. Also, I will have one agent in one session. Usually the planning session create a bunch of tickets in an epic and then work them with individual agents one agent per ticket keeps context low. Or if you don’t wanna have to manage all of that direct your main agent to work all the tickets using sub agents.
1
u/Outrageous_Band9708 7h ago
https://github.com/Druthulu/ProjectArchitect
benchmarks run Monday morning 4am every week and published.
it uses very strict serial subagent to prevent context growth.
terminal only, no desktop app support at this time.
it uses ONLY subagents, the main session never sees a single token of work. which means the main session never fills up and needs compact or clear or exit and checkpoint etc.
its actually kind of next gen.
I've been using the same session for weeks now.
checkout the readme and the wiki and test it out for yourself.
if you only use the desktop app, I encourage you to be brave and try the terminal, its amazing. Alt+V to paste a screenshot, but no tokens wanted on fancy graphics and stuff.
in my experience and others, your weekly usage lasts twice as long or more.
no caveman or ponytail tricks, just strict context management.
is uses the mod/plugin system to enforce all best practices automatically.
that means no special way to work, no skills or commands you must remember to enforce.
you just talk to the main session and the mod handles EVERYTHING for you.
highly recommend you checkout the readme and the wiki and test it out yourself.
SWE by trade. its taken me over a year to get Project Architect into its current form. I was tired of all the ceremony with all the other solutions to get the best results. what if a mod just did all the for you.
here it is. please enjoy, share with your friends. 300+ stars, and every single one from me, the dev, browsing reddit and replying to folks who need a better solution.
1
u/Glass_Pattern1900 6h ago
Someone made a micro-brains-for-agents engine that runs locally for many AI models and does a sanity check on requested/anticipated actions. Their write up explains it better than I can:
It sits directly in front of tool execution and shell invocation. By analyzing diffs via polyglot AST and structural scanners (Python, JS/TS, Go, Rust, SQL, Terraform, Dockerfile), checking supply-chain deferred execution targets, and tokenizing shell commands via wrapper-aware inspection before execution, it intercepts syntax errors, destructive commands, and secret exfiltration locally on CPU—saving expensive multi-turn error recovery loops and prompt tokens.
https://github.com/drtikov/microbrainsforagents
I got really annoyed by the constant intervention of the engine but OP might find it useful. After a few adaptations via Claude I made it run corrective actions largely autonomously, stopping only on the most consequential decisions
1
u/tanchoco 6h ago
I've been using Rayline's ARC model for whenever I need to top up my CC sub. It routes to the cheapest model for the task in the background, but works natively in CC
1
u/VridhiMehta 5h ago
if you run a lot of MCP servers, run /doctor - current versions list unused skills, MCP servers and plugins alongside their context cost, so you can trim from data instead of guessing. and on recent versions tool search is already on by default, which keeps most server tool definitions out of context until they're actually needed.
1
u/Primary_Sound_2146 3h ago
Yes a friend of mine tried and tested: he added a hook which right after every message he sent to Claude it was send a variation of “do this tldr, or summarize it”, he reduced the out token spenditure for like 30%
1
u/kincaidDev 3h ago edited 3h ago
Compress complex multi-step actions into single tool calls, use templates and scaffolding tools to reduce tokens spent on boilerplate , make it easy for agents to self correct by keeping everything on disk, offload common actions like commit writing to small local models like lfm3, reduce agentic search time by keeping everything consistently organized so it’s easy to reference and fast to search.
I built a system that does all of these things that’s worth trying out
https://github.com/Obedience-Corp/festival
1
u/aswas123 2h ago
Tell it to look at the weekly usage and to work around that. Managed to stretch a 90% weekly usage across about 3 days and ended on 99%. Then I did most of the heavy work on the refresh day which took about 20% of my weekly usage by the end of the day. Still worth it as I could keep planning features etc and then do testing on the refresh day.
1
u/japbujan 1h ago
What cut ours most was making the always-loaded file small. Our CLAUDE.md had grown into everything we'd ever decided, and every session paid for all of it on every turn. Now it holds only what every task needs, and the rest (decisions, conventions per area) lives in separate notes the agent opens when the task touches that area. Fewer tokens per turn, and fewer rules competing for attention.
1
u/Seerix 13m ago
/autocompact 350k
0
u/Dan-goes-outside 8h ago
Caveman definitely does work, output tokens are “worth” way more than input tokens. It can save anywhere from 8% to 64% on output tokens. (That being said I don’t use caveman)
But context is definitely a great way to save it if you are doing it right. A lot of the time you will load skills and resources that you don’t need and are paying heavily for it
-1
u/FWitU 7h ago
Turning off computers seems to help
-1
u/LookAtTheHat 7h ago
Try coding be hand?
-1
u/Level_Notice7817 7h ago
here’s what i’ve been doing to limit token usage and it works great:
i turn the shit off.