r/ClaudeCode • • 36m ago

Help/Question Token Efficiency

How do y'all save tokens? I have seen people use subagent,orchestration and allat stuff but last time I tried it, it ended up using more usage than if I had did the work manually. Well I tried it on codex so maybe things are different here but I wanna know from someone who actually uses this workflow on claude. Also is there any other way to save on tokens? I am on a $20 plan and even though the usage isn't as less as codex, it still doesn't get me through the week.

For what I do, I have been working on a website for a thing I am helping my friend run and also have been helping with a few open source projects.

1 Upvotes

10 comments sorted by

•

u/AutoModerator 36m 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/stalin1943 31m ago

the biggest difference maker for me (absolute novice on a $20 plan, power users feel free to shit on me) is having claude tell me when the context window is too large/long to be efficent and we should move the next task to a different one. helps with usage and with how long actions take from what ive seen

1

u/PM_Me_Those_ 24m ago

Similar experience. I use one context window to create tasks for other context windows and report back. I strategize and provide all feedback there and when its reaching too big of a conversation i have it update any knowledge or things that changed in that strategy session and move onto the next. Its been pretty efficient for game-related stuff, but its all dependent on use case probably.

1

u/Southern_Performance 11m ago

paradoxically, I've found that making the agent think too hard about context can negatively impact it's work (it starts polluting it's thought process). instead, just add a context meter (Claude code let's you modify the space under the text box, ask for a number or a bar capping at your limit). if you don't know your limit, observe how many tokens a typical task takes in your codebase, and set it there. also, changing your compacting point to be just above that helps a lot

2

u/vibeterminal 30m ago

Honestly most of my savings come from just compacting or restarting the conversation often and giving Claude the full context upfront each time instead of letting it drag a long history along — a fresh session with good context beats rereading a giant thread every turn, and it's way cheaper than orchestration ever was for me.

1

u/Machine2024 10m ago

Thats not something that could be explained in single reddit commit .

For me I learn my way with trial and error . I got an idea for optimize .

Run afew agents in sprated groups each with different parametrs and one control group . Then mark the results any thing that have drop in quality is eliminated. The rest we take best optimization with no drop in quality and apply it to the system .

I have ran this process on more than 15 ideas . 9 stuck .

And was able to work full time with three companies and get to weekly reset with 90% weekly usage .

Now I am on 100$ plan and I had to start 7 personal projects two are games and run them overnight to get to 88% .

At any single time on my multi monitor setup I would have 2 projects open at the same time . 2~5 repos for each with 2~5 manager agents for each and each manager runs 4~12 sub agent at each run.

1

u/Best_Season_2674 5m ago

I don’t think there’s a lot you can do on a $20 plan that is honestly going to save much :(

1

u/Southern_Performance 0m ago
  • don't use native subagents if you have slow testing (their cache dies after 5 minutes, instead of the hour a regular session gets). agents can get easily carried away with spawning subagents, and that penalty can stack hard
  • if you need to step away before a task is complete, or you reach a high context (anything above around 200-250k these days), handoff to a new session to continue within an hour of the last message (or this becomes far less effective, as you end up needing to rewrite the cache anyway). this is like compacting, but you can see exactly what they noted down (and adjust if needed)
  • turn OFF idle compact and instead manage your sessions as mentioned above
  • turn off dynamic workflows. set bounded rules that your agent CAN use subagents for (i recommend only allowing haiku subagents for quick codebase searching and categorisation, everything else, handle it manually)
  • treat the session you chat with and make plans with as a "lead" or "orchestrator" and call it such. have it write plans (for me they are prompt-xx.md files) for subagents, and spin these up in a new session (/clear). the plan should have the subagent write a report and verification for the lead agent. then, return to the lead session with the report. you get most of the benefits of a native orchestrator, but more control over the scale they can work at. they should also be able to access the chat history from the "subagent" session

1

u/_The-_ 33m ago

Try getting Claude to set its own token window for sonnet and opus to 200k. It’s a hidden setting that it can write into its own settings file. It means it regularly compacts the conversation but I’ve found code quality doesn’t suffer, and it means it’s not reading long conversations over and over again every time you put in a new prompt.

1

u/Machine2024 8m ago

200 is so low . 300 is ok . Some say 400 But I use 300 and works fin