What really burns tokens is sub agents. I once gave Claude Code a pretty big task, and it immediately launched 7 sub agents which burned through my budget before even one of them was finished. Tried again 5 hours later: same result. If I let the main agent do the same task sequentially, it was no problem at all. I don't know if it's really just communication and orchestration that makes sub agents so inefficient, or…
Every subagent send the same ~30k system prompts. If you are using fable/opus, that's easily 30% of a 5-hour window for 7 subagent, before doing any work
Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k
81–90 of 433 posts
Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k
#82Why don't people fix their costs (rent a gpu) and just write their own harness (about 200 lines of code). Supposed to be hacker news and half the posts are like "this harness steals this" like it cant be avoided. These API costs are mad.
It pays to be marginally ahead of people stuck on open models.
Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k
#83Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k
#84Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k
#85What really burns tokens is sub agents. I once gave Claude Code a pretty big task, and it immediately launched 7 sub agents which burned through my budget before even one of them was finished. Tried again 5 hours later: same result. If I let the main agent do the same task sequentially, it was no problem at all. I don't know if it's really just communication and orchestration that makes sub agents so inefficient, or…
Every subagent send the same ~30k system prompts. If you are using fable/opus, that's easily 30% of a 5-hour window for 7 subagent, before doing any work
Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k
#86Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k
#87Earlier quoted context omitted.
You're making the opposite argument. Anthropic is incentivized to use less tokens in Claude Code because people are paying a fixed monthly fee for subscriptions.
Nope, that’s not true, because they want you to pay for the higher subscription bracket.
Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k
#88My opinion is that claude code uses more tokens simply because Anthropic makes more money that way and forces people into their subscriptions. This is supported by the fact that they won't let you use your sub on a different coding agent. I use pi btw.
Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k
#89I am forced to use cloude code at work but a good solution is to just use --system-prompt "" and be done with it. I wish they allowed for other harnesses.
Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k
#90What really burns tokens is sub agents. I once gave Claude Code a pretty big task, and it immediately launched 7 sub agents which burned through my budget before even one of them was finished. Tried again 5 hours later: same result. If I let the main agent do the same task sequentially, it was no problem at all. I don't know if it's really just communication and orchestration that makes sub agents so inefficient, or…
If you do it sequentially you only read those files approximately once, and everything hits the same prefix cache