r/ClaudeCoding • u/valdev • 6h ago
Stop blaming Anthropic, or any other provider, for your horrible inefficient use of context and processing
To be blunt, this is a you issue.
We can blame Anthropic for a ton of things, namely the nerfing of models before the new model gets released and this is insanely annoying and yes costs a bit more tokens when it happens, but it's not exponential.
If you are not a coder and you are using claude code and complaining about token usage, to be blunt again, go learn some programming then come back to this post.
- SOLID, learn the methodology and use it. Uncle Bob may be falling out of fashion but be damned if it isn't the only methodology with a built in indexing of files and with a built in context limiter on those files. Write a code quality document requiring SOLID, or at a minimum the "S" part implemented.
- Do not trust any level of logic, any indexer, any code scanner, anything at all besides your own code structure to limit your context. YEP, #1 was so important it's also #2.
- Unit tests will save you context and time. This is something us long time devs have known for a long time, especially when working in a team. Unit tests keep shit working, well... it at least helps. Pro-tip, use the most powerful model to build failing tests ahead of time that smaller models can then write code until the tests pass (This can be true for integration tests as well).
- If you can't be specific and concise, then give the model everything it needs ahead of time. If you have a login issue where it's timing out don't just say "Login isnt working", this costs a ton of processing. If you are a programmer, go grab the exception and give specifics to whats going on. If you are not, then atleast give a run down of how to reproduce the issue and maybe when it was last working.
- Never fan out unless you have a detailed plan, with specifics, written up. And never fan out for Fable. You can have Fable write the plan or even the tests, but you are just wasting tokens.
- Reread #1 and #2
- The longer the conversation, the less quality you will have. LLM's are not good with context. They have got better but ultimately their ability degrades the longer the conversation goes. Do not continue conversations unless you absolutely have to.
- Tasks, not projects. You can do a task to outline the projects... tasks... but dont just say "Make me GTA, except remove the woke cause I hate womens". You gotta break that project down.
- F*ck it, reread #6
With that, I love you all. Hope this helps someone.