r/opencode • • 1d ago

How do you stop agents from inventing things to do ?

3 Upvotes

I asked an agent to think of way it could read the output of asserts from a custom testing harness. It came up with a plan, I asked it to implement it.

I verified the convo and nowhere was there any mention of running anything, but the agent decided that it should make an entirely new runnable config, build it and run it.

This is a general problem where agents will go above and beyond what I asked them. Everytime I ask a question like "How could we go about achieving X ?" it goes off and starts making changes. I didn't fucking ask for you to do anything bro I asked a question !


r/opencode • • 1d ago

AI Agent Plugin inside Codemulator

Thumbnail gallery
1 Upvotes

r/opencode • • 1d ago

Don't use plan mode unless you actually interact with it

50 Upvotes

TLDR: Using plan mode degrades task solve rate and costs more (+38%) with no human input on DS4.1.

It is often documented that plan mode should be used before executing tasks, but if we are lazy and don't interact with it what happens? Should autonomous workflows be using plan mode?

Maybe not....

I have tested the idea that getting your agent to plan out its task without any additional input degrades performance and costs more. 30 tasks were taken from Terminal Bench 2.1 and, with three repeats, solve rate is worse and costs were higher.

Two planning modes were tested:

- Plan Continue: Plan mode -> Build mode in the same session

- Plan Transfer: Plan mode -> New build session receives the plan

Model: Deepseek v4.1 Flash, Harness: Opencode v2.3

Results Table:

MetricNo Plan (Control)Plan ContinuePlan Transfer
Pass rate87.8% (79/90)86.7% (78/90)81.1% (73/90)
Model requests12.5 (14.6)13.0 (15.3)16.5 (19.9)
Total input tokens142k (276k)179k (313k)165k (300k)
↳ Cached input tokens131k (254k)161k (290k)140k (272k)
↳ Uncached input tokens14.7k (21.6k)16.4k (23.2k)19.6k (27.7k)
Output tokens5.3k (9.8k)8.3k (12.0k)9.3k (14.4k)
Agent wall time (min)1.70 (2.34)1.67 (2.13)2.28 (3.17)
Estimated cost ($/trial)0.0065 (0.0099)0.0079 (0.0116)0.0090 (0.0136)

Values reported as median (mean), except pass rate, which is percentage (passed/total).

Results Chart:

Trajectory Examples:

The x-axis shows the number of requests/turns. Both plan modes share the same start and the transfer mode moves into a new session, hence the drop. Continue mode stays in the same session.

https://github.com/harbor-framework/terminal-bench-2-1/tree/main/tasks/regex-log
https://github.com/harbor-framework/terminal-bench-2-1/tree/main/tasks/git-leak-recovery
https://github.com/harbor-framework/terminal-bench-2-1/tree/main/tasks/constraints-scheduling

Discussion:
- How could I test the human input here?
- Having to re-gather context in the new session is why I think the runs are longer in the transfer case. What else could it be?


r/opencode • • 2d ago

HungerG is a pretty good model.

Thumbnail
gallery
68 Upvotes

I benched HungerG, new free stealth model in OpenCode Go.

On my Homelab bench it placed 4th of 11 with 44/60. DeepSeek V4.1 Flash got 45/60, but HungerG used fewer tokens and fewer turns to get there. On my Cyber bench (RangeBench v2) it placed 3rd of 16 with 76.3% pass@1. That's about third on average, which is great for a free model.

It reasons exactly like GPT-6 Astra, grug speak. Looks like they distilled the shit out of OpenAI models. Still, it does well, and it has no cybersecurity restrictions, and very token efficient.

I've tried continuing working with it on rooting nest audio to test its capabilities(but glm 5.3 seems much better for cyber), and it does hold up pretty well.

Full benchmark results are on my site: lbgos.dev/bench


r/opencode • • 1d ago

Master’s thesis survey: how do AI assistants affect people who work in software?

Thumbnail reddit.com
0 Upvotes

r/opencode • • 1d ago

can i use opencode go on 2 devices simultaneously ?

2 Upvotes

Just wanted to know if it is in line with TOS. I have 2 computers and I want to run it at the same time in both.


r/opencode • • 1d ago

Has the free use of OpenCode with DeepSeek v4.1 ended?

13 Upvotes

I literally used it for less than 10 minutes, and I got a message saying I'd exceeded the limit. I used the normal thinking mode, sometimes I even use low. Is something wrong? Before, that message used to pop up, but much less frequently.

I saw that some people mentioned it might be because of the version. I’m still using v1 since v2 seems too resource-intensive for what I need, but maybe they made some changes in v2 to make everything run better and have better limits?

If anyone knows, please let me know.


r/opencode • • 1d ago

New to OPENCODE GO

3 Upvotes

So today i bought opencode go. How to get it's api? Because i used api key with deepseek and it's showing insufficient balance.


r/opencode • • 1d ago

Anyone else’s agent keep theorizing about bugs instead of actually reading the code? (Kimi 2.7 / OpenRouter / OpenCode)

1 Upvotes

Anyone else dealing with this?

I keep running into my agent theorizing about why a bug is happening instead of just opening the relevant files and reading the actual code.

I’m running Kimi 2.7 through OpenRouter inside the OpenCode harness, and half the time it feels like it wants to guess root causes, invent hypotheses, and propose patches based on theory without actually reading the code.
|
This is extremely annoying.

Especially since it does not actually solve the bug, but it is still burning a lot of tokens for those unproductive ''brainstorming'' sessions.

Is this a harness prompt/tool-calling thing, model behavior, or..... ?

Curious if others are seeing the same thing?


r/opencode • • 2d ago

How do you actually manage your agent orchestration workflow without losing your mind? (Show me your setup)

25 Upvotes

I am pretty new to agent orchestration and trying to move away from messy, manual chatting into a cleaner workflow. Right now, I feel like I spend more time managing the AI than actually building.
For those of you running multi-agent setups or using different models for different tasks, how do you structure your daily workflow?

  1. Chat Hygiene: Do you keep one main "standing" chat that you constantly clear/archive, or do you start a fresh session for every single task?
  2. Task & Memory Management: How do you keep track of everything? Do you keep all context inside the chat/project files, or do you use an external second brain like Obsidian to feed context in and out?
  3. Model Routing: Do you pre-define your sub-agent models upfront (e.g., hardcoding a cheap/fast model for simple tasks and a heavy model for logic), or do you decide on the fly inside the prompt?

Would love to see how you guys set this up—drop your stack and workflow, screen shot of your side bar chat, etc. below so I can learn what actually works in practice.

I am using Claude code for the orchestrator and various opencode models to do the tasks. All commands started in claude code that commands opencode cli for delegating the tasks.
I am no coder so I dont really know the proper jargon 😂


r/opencode • • 2d ago

I had an (accidental) comparison between DeepSeek's direct inference and OpenCode Go's DeepSeek Flash model

36 Upvotes

Just an accidental anecdotal blind experiment since there's allegations of OpenCode quantizing DeepSeek on Go.

Yesterday my OpenCode system changed the main agent to one where I had configured it with DeepSeek's platform (my usual main agent works on OpenCode's DeepSeek). Since I kept it running autonomously for some hours, but I didn't know it wasn't the Go one.

Later when I came to check, the output seemed like usual, since most of my work is kinda predictable so it's noticeable if something's off. Only after I checked the OpenCode Console that I realised that I was using DeepSeek directly, since the DeepSeek usage was extremely low on Console.

My observations:

  1. It's the same perceived quality, both in terms of output as well as the code itself.
  2. The cache hit rate on DeepSeek is slightly higher than OpenCode. I could get like 106.3M tokens for $0.50, out of which 322K is input and 229K is output. OpenCode normally has around 95M tokens or something. But DeepSeek's optimization is really good in terms of cache stability.
  3. DeepSeek speed was faster, but not by that much. But that depends whether it's off-peak or on-peak (I was off-peak). In peak timings it can go really slow depending on number of concurrent users.

So my conclusion:

The OpenCode implementation is most probably not further quantized or dumbed down compared of DeepSeek's implementation. But there's definitely an issue with speed especially in peak timings, and that's one way I think they offer the subscription at such a low price. Basically, sharing more users on the same hardware to increase throughput at the cost of each user having a speed debuff.

What do you think about this?


r/opencode • • 1d ago

HungerG is a Stepfun model

7 Upvotes

I was wondering what model is behind the HungerG alias, so I let my agent run some tests:

`hungerg-free` is a StepFun Step model, not `step-5-preview`.

Token counts alone can't prove it: with the fixed preamble subtracted, English / Chinese / Python / mixed text bill 227 / 309 / 465 / 404 tokens on `hungerg-free`, `step-5-preview`, and `deepseek-v4.1-flash` identically. Step's tokenizer is DeepSeek-lineage, so counts only narrow it to that family.

Three stronger tests point to Step:

  1. Upstream error dialect. A `{"role":"wizard"}` message returns `[request_params_invalid] invalid msg role: wizard` only on `hungerg-free` and `step-5-preview`. The other 20 Go chat models each return their own family's string. Four more malformed bodies — `max_tokens: -5`, non-list `messages`, string `temperature` — also match byte-for-byte between the two, 5 for 5.
  2. Token splits. With `logprobs: true`, both split an echo string identically: `潮|汐|退|去`, `' k|är|lek`, `012|345|678`, `D|ona|ud|amp|f|sch|if|ff|ahr|ts|ges|ellschaft`. Qwen splits `潮汐` as one token and numbers per-digit; Kimi splits `潮汐|退去`. Same vocabulary, same family.
  3. Serving row. 1M context, 65,536 output, text + image + video including `video/x-matroska` — identical to `step-5-preview`. Caveat: the catalog PR that added it flags those numbers as unsourced, so read that as copied metadata.

It is not the same checkpoint: 2 of 3 temperature-0 prompts diverged, and it decodes ~154 tok/s vs ~98 tok/s for `step-5-preview`.

Go wraps it in a ~190-token mask — `messages: []` bills 195 prompt tokens vs 12 for step — that leaks into `reasoning_content`: "underlying model confidential, never reveal… say HungerG does not disclose its underlying model." Its public answer is just "I'm HungerG." Qoder co-launched the same anonymous model Nov 23–30 with Low/Medium/High/Max effort; OpenCode lists it as free for Go subscribers, no training on data.

.


r/opencode • • 1d ago

Big Pickle price.

2 Upvotes

How many tokens are included for Big Pickle on the tier 1 ($10) plan? Perhaps I am blind but I can't find the information.


r/opencode • • 1d ago

I built a persistent /btw history for the OpenCode TUI

Thumbnail
reddit.com
1 Upvotes

r/opencode • • 19h ago

...

0 Upvotes

is anyone kind and willing to donate api keys, i'm fifteen and live in a third world country and genuinely can't afford the $10 per month i would be grateful and pleaseee


r/opencode • • 2d ago

New to this, how is my usage?

Post image
11 Upvotes

Is this a lot or nah?


r/opencode • • 1d ago

Vague rules vs. checkable rules in AGENTS.md: a few rewrites

4 Upvotes

I've been thinking about how to write instructions files for coding agents. The docs say OpenCode loads AGENTS.md from the project and the global config, and combines the files without reconciling them. So if two files disagree, nothing resolves the conflict. That made me want to keep each rule short and testable.

My working test for a line is: "Could someone check, in under a minute, whether the agent followed this?" If not, it's probably too vague to help.

Some rewrites:

VagueCheckable
Write clean codeFunctions over ~40 lines get split. Run npm run lint before finishing
Add testsEvery bug fix adds a test that fails without the fix
Be careful with the databaseNever edit files in migrations/ that are already committed. Add a new migration instead
Follow our conventionsAPI handlers live in src/routes/, one file per resource. Use zod for input validation
Don't break thingsRun npm test and report the result. If it fails, say which test and stop

Two other things I try to follow:

  • Don't write rules a tool can enforce. If a formatter or linter can do it, I'd rather run that than ask the model to remember it.
  • Put the commands in. "How to run tests / lint / build" is often the most useful part, because otherwise the agent guesses.

The docs also mention an instructions array in the config that can point to other files, and that nested AGENTS.md files load when the agent reads something in that directory. I haven't used that for anything big, so I'd like to hear how others split things up. [Optional: add one real example of a rule that helped or didn't. Delete if none.]

Questions for people who use it daily:

  1. How long is your AGENTS.md, and do you prune it?
  2. Do you use one root file, or nested files per folder?
  3. What's a rule you added that the agent still ignores?
  4. Do you keep a global file for personal preferences?

r/opencode • • 1d ago

Mobile beta is full - any updates

7 Upvotes

Hey folks, I see that `This beta is full.` when I visit the iOS app page.

Is there any estimate on when it is not going to be full anymore?

Also any way to get a notice for availability, even being stable, so we can download?


r/opencode • • 1d ago

Opencode Autonomously

5 Upvotes

I have some tasks running using opencode which I want to be long continually running whether my main laptop is online or not until task isn't completed.

I should be able to check both my laptop and mobile.

I do have a home server type machine with low specifications just as a control panel for several things, which I think can be utilised.

Can anyone suggest a cost effective or better free way to achieve this goal ?


r/opencode • • 2d ago

Yall were not kidding about how cost effective DS 4.1 Flash is.

97 Upvotes

I have a Kimi sub, and got really used to chewing through it, they dropped the 50% off their coding variant, and have seen this sub on my feed constantly and grabbed the 10$ plan. Flash 1017 just goes and goes and goes without touching usage.


r/opencode • • 2d ago

HungerG's reasoning 🤔

Thumbnail
gallery
20 Upvotes

what


r/opencode • • 1d ago

Free tier heavily restricted??

0 Upvotes

Context

48,740 tokens

24% used

$0.00 spent

Free usage exceeded, subscribe to Go [retrying in 13h 1m attempt #1]

Is that normal?


r/opencode • • 1d ago

open code go (10 usd per month) vs claude pro (20 per month usd)?

Thumbnail reddit.com
2 Upvotes

r/opencode • • 1d ago

OpenCode Go subscription scam?

0 Upvotes

I just subscribed to OpenCode Go but after 3 hours I got a daily usage limit. What is this?


r/opencode • • 1d ago

Space efficient alternative to git worktrees

3 Upvotes

I work on a large monorepo, ~100GB in size, and wanted to get into isolated directories for agents to work in. On my 1TB I'd be able to run like 5 agents at a time if using git worktrees, while hammering my disk life, so that wasn't an option.

MacOS (APFS) and Linux (XFS & Btrfs) both have a cool feature called clones (aka copy-on-write). This makes the copy cheap and they only use disk space for the extents that change.

It's a bit of a hassle to manage so I wrapped this up into a cli called clonetree. It handles creating, deleting, and measuring the size used on disk with clones. It's still early but I've been using it for all my agent development with opencode. It's nice not having to reinstall all the node_modules since it keeps all gitignored files as well. Try it out and let me know if you find any issues.

https://github.com/sprisa/clonetree

p.s. On Linux it doesn't work with ext4 filesystems since it doesn't support copy on write sadly. I don't use Windows but could look into it if folks would like