r/ClaudeCode • • 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:

  1. What is your biggest source of wasted tokens?
  2. Do you actively monitor context usage during a session?
  3. 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

22 comments sorted by

•

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

0

u/MikeBuildsTech 36m ago

Keep context lean and prompts focused.

2

u/tauzN 24m ago

Are you a bot?

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/BoringMisteak 1h ago

I’ve been having mine add trello cards once a task is complete

1

u/CupcakeLeft9359 14m ago

nice, that's basically the handoff note but somewhere other people can see it too. do you have it write what's still open on the card or just mark it done? the "what's left + which files matter" part is what saved me the most when picking things back up

1

u/BoringMisteak 8m ago

I have it create trello cards for specific feature adds, bug fixes, etc. It creates the card in the Queue list, then moves to the Staging list (still not marked complete), then once I test against the staging environment, I tell it to deploy to production so it does that and the last thing it does is move the card to Completed or Production lists (depending on my project/board layout In Trello) and marks it complete.

In all of this, it will scope the card when it initially creates it and then add notes as applicable if needed. It kind of/sort of creates a prompt you could use to copy/paste Into another Claude Code session and create the feature over again.

I haven’t ran across a use case where recording the files was necessary yet, so I can’t speak to that, but I can’t imagine it would be difficult to add that instruction.

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/MikeBuildsTech 38m ago

I prefer shorter sessions for focused tasks. One trick I use is keeping side questions separate from the main coding conversation. Otherwise, random questions add extra context that stays around for the rest of the session. Keeping the main thread focused makes a difference.

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

1

u/MikeBuildsTech 42m ago

Exactly. Keeping CLAUDE.md lean and passing task-specific context only when needed is one of the simplest ways to avoid unnecessary token usage.

2

u/filans 41m ago

Making things look and feel good

1

u/PunksPrettyMuchDead 24m ago

"I'll do vessel wakes and splashes"

"Oh the sea surface should be done first"

"Oh the underwater view isn't built"

"Oh this relies on my custom atmosphere setup"

aka how a quick detour to improve the sea becomes a full visual pass over half a week.

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/framauro13 36m ago

I have a test runner sub agent I use for stuff like this. Sonnet, low effort, only report the summarized results back. A green run doesn't add anything back into the main thread and failures only get reported. I've found using sub agents for lots of different tasks really helps keep the main context clean.

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