Live data from Hacker News

Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k

systima.ai

371–380 of 433 posts

Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k

#371
post #362

Doesn't that mean these 33k tokens can be cached, since they don't depend on the input? The model can just start generation on the 33k+1th token.

right, but the cache retention time is very short for Anthropics LLMs. 5 minutes or 1 hour (with additional costs). So you have to prompt basically non stop to not get a cache eviction.

Anthropic even changed this silently: https://www.reddit.com/r/ClaudeAI/comments/1sk3m12/followup_...

Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k

#373
if you use them for long enoug tfor big project and conplex workflws, both of them have their own caveats.

Thats why i got irritated and wanted something thats scalable and lightweight.

https://github.com/corporatepiyush/yantra-coding-agent

Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k

#374
post #214

Earlier quoted context omitted.

It's like Microsoft banning Vim users that use Azure

They didn't ban people from using Claude, though. They banned them from their flat-fee subscription and required that you pay per token. It's still questionable but I don't think it's in the same ballpark as what you describe.

I don't think it's in the same ballpark at all. I checked the `/usage` in my session which uses a Max x5 plan. One day I had used $400 of tokens and 20% of my Fable allocation. Anthropic is effectively giving us more tokens per $ on the monthly plans but it comes at the cost of Anthropic being the prompt-writers and managers of the agents pretty much entirely. I don't think this is a bad deal.

Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k

#375
post #53

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…

True. For Claude Code, I disabled explore subagents globally by adding this to ~/.claude/settings.json: "permissions": { "deny": [ "Task(Explore)" ] }

Is Explore the only thing subagents are ever used for?

Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k

#376
post #120

Earlier quoted context omitted.

> I still have PTSD from how ungodly terrible it was Please, for the sake of everyone suffering from actual PTSD: Don't. It's hard enough already for victims to communicate what difficulties they are facing without people watering down terminology like that.

Please don't act as the hyperbole police. People exaggerate all the time (I'm starving, etc). It's normal, and you are being a jerk to call them out.

I am asking them to reconsider and reflect on what that kind of language use does. You're the one reading it as "calling them out".

How else are we supposed to learn from each other, voice our opinions, point out our mistakes to each other? For me, this is communication. And currently 8 upvotes seem to agree with me and my request. Feel free to ignore it, or consider it, for your own use of language. But, sorry, to me, you're the one acting like a jerk and trying to "police", not me.

Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k

#377

Earlier quoted context omitted.

Are the QA team bearing the brunt of the unexpected issues, bugs, performance etc or is it business-as-usual?

Amusing that you think businesses still have QA teams.

My employer has a QA team

Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k

#378
post #376

Earlier quoted context omitted.

Please don't act as the hyperbole police. People exaggerate all the time (I'm starving, etc). It's normal, and you are being a jerk to call them out.

I am asking them to reconsider and reflect on what that kind of language use does. You're the one reading it as "calling them out". How else are we supposed to learn from each other, voice our opinions, point out our mistakes to each other? For me, this is communication. And currently 8 upvotes seem to agree with me and my request. Feel free to ignore it, or consider it, for your own use of language. But, sorry, to m…

PTSD sucks on its own. Trying to blame other people for its symptoms is a deflection. It would be like someone with ADHD blaming his inability to concentrate on everyone else in the room making noise or moving around. People with OCD tried this, acting like it's a Monopoly property that you have to pay rent for if you land on it / say its name.

If anything, it's a net positive people are talking about mental health and recognize different ailments such as OCD, PTSD, and others.

Re: Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k

#380

Earlier quoted context omitted.

That’s certainly doable, but then you need to create all the add-ons you would have added to Pi. IMO, Pi stands in that sweet spot between being very minimal while still offering a catalog of pluggable functionality that you can add to it. Sure, you could vibe code all those things for your custom agent as well, but why recreate what is essentially Pi all over again (the main loop with all the extension hooks, etc.)?…

Pi has way too many batteries included, including a bunch I don't want, and lacked the batteries I did want. Pi is a bit like the movie Idiocracy in that the idea is much better than the execution. Incidentally, I also have zero supply chain attack surface as I have zero dependencies in my agent, just go stdlib. Pi, again, has 130+ transitive dependencies asking me to trust the security of my system to 150+ additiona…

Agreed that the node cesspool is a risk. That said, what batteries does Pi have that you don’t want?
Post reply on HN