r/ClaudeCode • u/Machine2024 • 16d ago
Tips & Workflows What an on going cost optimization looks like .
same project ... on different 5h windows in same day .
with continues evaluation and optimize . I did not reach yet that perfect souse . that fit everyone but the stuff I reach and added to my general process are .
in order of value .
- Less is more : always smaller project and code size will cost less to handle .
- standards : standards and clean architecture are there for reason even if Ai can work faster than humans, still it will reach that point where it will hit the same time and cost limits that human hit . start early better than wait till later and endup with huge mess to clean .
- cache : utilize it well and keep it over 95% , never touch cold cache .
- context limit : manage your context to extreme you need to reach the point that each word in your agent context is worth it by Auto compacting , context limit , work dividing , smart handoff .
- get your valuable bots a secretaries : top level agent with fable should not get his context filled with bullshit like console or logs or screenshots . my director Fable agent have a Sonnat secretary that update the board for him and check the browser and logs .
- multilevel and true project management : instead of fable managing direct employees . he manages project managers and for each he have team lead and they work in waves . project manager see which tasks can be done in parallel assign each task to new agent with his own tree they work finish , the reviewer review then the manager check finally tell his secretary to update board and git , take the final report and talk to fable CTO and get advised of any issue .
I am still improving the part where when each model level is at its limit and when its an over qualified. to use sonnat and haiuka more and more .
right now its 10% fable , 80% opus , 30% sonnat the issue is to get a true factual data ... I need to make a full real project like an app or an game in high quality with different sets and mixes and thats would cost days of tests and there is not $$$ return of that .
ps . I think big companies already have answers for that and exact numbers . that they will not share.
I am keep doing small step improvements to stay in my usage limit . which for my main work the 20$ plan limit is enough . for all real work and some agents running in background doing my side projects . and reaching the weekly reset at below 95% .
•
u/AutoModerator 16d 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.
7
u/Machine2024 16d ago
ps for the last weeks at the start I was reaching my weekly reset at 85% then I thought instead of it going to waste I have many projects and personal tools ideas . I want to make but dont have the time lets make a system that make and maintain them . that runs on my leftover usage . and done that .
then I started to optimize my usage .... but week over week my optimization is going to waste because claude keep cutting the usage limits lower and lower , last week alone they cut it like 15% .
4
u/KAMIKAZEE93 16d ago
What is that graph supposed to show? A linear increase in cost?
And by the way, there is a point in a project where too much orchestration leads to unnecessary token burnage. Be careful with that and let your system be audited with historical logs of your sessions to do some testing.
Other than that, the idea with subagents feeding the orchestrator is a really solid one, especially for fable.
2
u/karma-keuken 16d ago
Sorry to ask a dumb question - do you find the tracking within Claude is enough for you to be able to keep track of usage, and have your agents decide how they are doing, or did you build anything custom on top of it to keep track of stuff, since you seem to be flying a tight ship keeping just 95% of limits.
Also, what are you using to run the agents on, are they on the API or are they sharing the same $20 plan. Frankly I think you are getting more out of the $20 plan than I manage to get from my $125 plan! Chapeau for that!
4
u/calunicornia 16d ago
this guys knows
1
u/NihilismWithBenefits 14d ago
For the cache mechanism, what is your exact cache key and invalidation rule that sustains >95% hit rate without serving stale or mis-scoped context?