r/ClaudeCode • u/MikeBuildsTech • 1h ago
Discussion Claude Code users: What is wasting most of your tokens?
I have been looking more closely at Claude Code usage lately, and one thing stands out: sometimes the actual coding task is not what consumes most of the context.
A lot of usage can go into things happening around the task.
For example:
- Loading too many MCP tool definitions.
- Keeping long conversations alive.
- Reading entire files when only a small section is needed.
- Repeatedly retrying the same failed approach.
- Loading unnecessary instructions through CLAUDE.md.
- Asking Opus to handle tasks that do not need it.
I think most developers focus on writing better prompts but overlook how their overall workflow affects token consumption.
I am curious about three things:
- What is your biggest source of wasted tokens?
- Do you actively monitor context usage during a session?
- Have you built any workflow that noticeably reduces Claude Code consumption?
Would be interesting to compare actual approaches rather than just sharing generic prompt tips.
4
Upvotes
•
u/AutoModerator 1h 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/tauzN 1h ago
Context and prompts
4
u/romene_dev 1h ago
the retry loop is the one I'd put a hard stop on. After two failures, ask it to summarise what failed, what evidence it has, and what the next attempt will test before it edits anything else. For comparing workflows, I'd count tokens through to a working, reviewed change, including the repair rounds. A cheap first pass can look a lot less cheap once you include those.
4
u/CupcakeLeft9359 1h ago
for me it was MCP servers i connected once for some task and then forgot about. every one of them dumps its tool definitions into every session whether i use them or not. pruning to only what the project actually needs made a bigger difference than anything i did with prompts.
second one is long sessions. once a conversation gets long and starts compacting it gets dumber and more expensive at the same time. now when a task is done i have it write a short handoff note (what's done, what's open, which files matter) and start a fresh session from that. way cheaper than dragging 3 hours of history along.
1
u/atlascirrus 55m ago
one that sneaks up on people is side questions. u ask some random "wait what does this flag do" mid task and that whole tangent rides along in the history for the rest of the session. /btw is made for exactly that, it answers without adding to the conversation history.
and yeah i check /context whenever a session starts feeling heavy. it shows what's actually filling the window so u can tell if it's mcp tools, memory files or just chat. big codebase searches i hand to a subagent so only the summary comes back to the main thread (still counts toward ur limits tho, it just keeps the main context clean). are u mostly running one long session or lots of short ones??
1
u/Saver411 45m ago
CLAUDE.md bloat is the quietest drain becuase it reloads into context on every single turn. Keeping it stripped to bare build commands and core file paths stops instructions from burning tokens on simple edits. Passing task context ad hoc keeps context clean
2
u/filans 41m ago
Making things look and feel good
1
u/Pixelplanet5 1h ago
me
1
u/cheffromspace 1h ago
Conflicting or outdated instructions and documentation
1
u/awesomebirder 53m ago
Verbose test runs. A full jest or pytest log stays in the history for the rest of the session. Telling it to run tests quiet or pipe through tail -40 keeps that small.
1
u/DJDarkViper 48m ago
Test suites bar none
Design prompts are a clue second
But both have also been pretty worth it
1
u/CandidSystem6155 34m ago
One that hides well: hook output. Anything a prompt-submit or session hook prints gets added to the conversation, and a hook that fires every turn adds its text every turn, which then gets re-read on every later turn too. We keep per-turn hook output to a single line and only allow longer text at session start. Worth running one turn with hooks off and comparing the context number.
1
u/PM-Me-Your_PMs 24m ago
Fixing its own mistakes