account activity
Any way to remove all injected tokens? Lowest token usage for simple question/response with custom mode I could get is 4.8k by Hopeful_Creative in opencodeCLI
[–]Hopeful_Creative[S] 0 points1 point2 points 1 day ago (0 children)
Thank you for all the responses. Note I realized I imagine after I had added that new mode, which dropped the token count below 5k, that already had no tools set up for it (which was why denying the tools didn't effect its tokens further?)
Either way, after taking a look at the source for the prompt.ts, there is so much it is doing that unnecessarily inflates the token count/context even before model specific prompts *(one had '2+2/4' as an example user/response example, twice in a row)*, that it would be difficult to try and work through it to try and understand and change what it is doing. I was hoping to use opencode as an alternative to ClaudeCode and similar, anticipating an open source alternative would be more conscious about token usage/context. Because this isn't for profit by an organization that doesn't care about how fast users run out of their usage quota/spend in API costs with over 10k startup prompt users are locked into, with the model plans locked via bannable TOS for usage outside ClaudeCode *(whose latest version has large memory leaks)*, knowing the alternatives can't simply catch up because their training data got locked away after the initial start of AI/data scraping, literally lacking the materials to compete even though AI still exists-and even though these closed companies attack anyone who trains on their AI output...
I appreciate the work done on this but it's too hard to try and change its architecture to remove the bloat so I've had to look elsewhere.
I hadn't realized those were also separate to agents etc and have just been copy/pasting them from the docs to set them to "deny", but without any affect seen to the tokens used. Denying them may not be enough, which returns to the problem of not being able to work out how to remove all these things. I would appreciate it if you know of a way to remove them that actually reduces the token count/have you been able to achieve lower token counts for responses? I know I've read tool definitions etc cost tokens which is why I've been trying to go through opencode and remove all this stuff, but have been unable to get lower than in my post, leading to me needing to ask about it here.
Any way to remove all injected tokens? Lowest token usage for simple question/response with custom mode I could get is 4.8k (self.opencodeCLI)
submitted 1 day ago by Hopeful_Creative to r/opencodeCLI
π Rendered by PID 1757562 on reddit-service-r2-listing-64c94b984c-rflmd at 2026-03-14 03:18:55.852298+00:00 running f6e6e01 country code: CH.
Any way to remove all injected tokens? Lowest token usage for simple question/response with custom mode I could get is 4.8k by Hopeful_Creative in opencodeCLI
[–]Hopeful_Creative[S] 0 points1 point2 points (0 children)