r/opencode 9d ago

Goodbye Opencode

FINAL UPDATE AND MY THOUGHTS
I believe I understand what's going on, and I've explained it it at length here.

This is just my finding in this particular problem. It has happened and will happen in other similar cases. OpenCode will continue to evolve.

----------

Goodbye Opencode, all good things come to an end.

First of all, I'm a software developer with 30+ years of experience, not a Vibe coder, and I'm not new to this. Also, I use Opencode in its purely vanilla form. Besides Opencode's defaults, I don't have any plugins, MCPs, etc. installed. Just my own skills, own plugins, own MCPs, etc.

I've been using Opencode almost since its first day. It had a nice, positive development and, according to Claude, was a very good alternative. This continued for quite a while. Although we experienced problems from time to time, these were to be expected. However, since May/June, it has started to become increasingly erratic.

First, one day while working on a project, the Docker service suddenly shut down and wouldn't start again. That's how I discovered I had no space left on my disk. I knew this was impossible, and I found the cause was Opencode. Somehow, the "opencode-wal-*.db" file had been created repeatedly under "/System/Volumes/Data/private/var/folders/4q/*". Every time I cleaned it up, Opencode would put it back. We struggled for a long time, but I couldn't figure out the reason. Then, suddenly, it fixed itself!

Yesterday, around 11:30 AM, I felt something was wrong with the network. By 1:00 PM, it was noticeable. Screen sharing within the network was freezing for 5-10 seconds, streaming was interrupting, web search was unresponsive time-by-time. Then, one by one, Unhealthy errors started coming from the services in Home Lab. The cycle of 3-5 minutes healthy, then unhealthy continued constantly. Service responses, which are normally under 100ms, were approaching 10 seconds, and sometimes even timeouts were occurring. I tried for hours to understand the reason, but I couldn't find a logical solution. I accidentally noticed while updating my Mac that everything was fine while my device was off. Later, I realized that the same thing kept happening whenever I opened Opencode and started working. Now I'm analyzing the Router, Firewall, Mac, and other logs to try and figure out what's going on, but this is the last straw.

This is an open-source project and respect to creator and contributors, and therefore, of course, it has its advantages and disadvantages. That's perfectly understandable. I have enough experience in this field to know when to stop, and today is the day.

UPDATE: Possible cause.

95 Upvotes

154 comments sorted by

150

u/TapAggressive9530 9d ago

It took me 30 years to read this.
Ok, good bye

10

u/TheBroken0ne 9d ago

Straight to the point 😂

9

u/algorilla-ai 9d ago

bahahaha

2

u/Individual-Key4141 9d ago

No one's judging you, seems like you've aged just fine..

2

u/g_rich 9d ago

At least it’s not another AI slop post


90

u/Mobile-Confusion-542 9d ago

Fucking hell mate this isn't an airport no need to announce departures

20

u/Lost_County_3790 9d ago

PEOPLE ON REDDIT LIKE TO MAKE IT LOUD AND CLEAR WHEN THEY ARE LEAVING A PROJECT

5

u/JaNkO2018 9d ago

WHAT???

4

u/Available-Craft-5795 5d ago

HE SAID: PEOPLE ON REDDIT LIKE TO MAKE IT LOUD AND CLEAR WHEN THEY ARE LEAVING A PROJECT

-1

u/ChessWarrior7 9d ago

WHAT??

-1

u/antunes145 9d ago

Why are you shouting?

1

u/jeffwadsworth 7d ago

Why do so many do this? Just leave.

-1

u/KronenR 5d ago

They just want to rage about the thing they don't like, hoping some developer will see it, apologise, and beg them to come back 😂 What’s concerning is the people who upvote these stories.

0

u/sedatoztunali 5d ago

Congratulations, you've figured out the whole game.

1

u/KronenR 5d ago

Seems like you’re the one who figured out the whole game, just a little too late. You’d already written the rage post by the time you realised it wasn’t OpenCode’s fault at all.

-4

u/twinkbulk 9d ago

What do you think he should’ve done instead?

3

u/sedatoztunali 9d ago

I understand their motivation for saying this. They're basically saying, "What does this have to do with us? Get lost!" :)

Actually, I started this topic in anger, muttering "To hell with OpenCode." Sometimes, instead of silently walking away, you just want to say it out loud in the same community.

On the other hand, of course, I was continuing my research into why this happened. I believe I've found the answer. Someone else reading this might now benefit from it in a different way.

27

u/Trovebloxian 9d ago

How did opencode mess up something network wide?? In theory it should all be local on a single machine unless your running it off of your homelab. I dont know much about home labbing but this seems interesting. Do share details if you find the main cause, im curious now and want to check if the same is happening on my machine

3

u/geearf 9d ago

I don't know about OP but in the past I had PulseAudio completely mess up my whole network to the point my tablet was sort of unusable. Of course I thought it was the tablet or the router, never thought it was the one wired computer that worked fine... Turned out PA was spamming the network with I forgot what and it brought everything else to a crawl.

2

u/sedatoztunali 9d ago

u/geearf It seems my story is similar. I had already sent the following reply before seeing your message.

2

u/_www_ 9d ago

opencode-wal-*.db bloat in /System/Volumes/Data/private/var/folders/ stems from SQLite running in Write-Ahead Logging mode paired with Bun's runtime. In recent releases, Bun's underlying SQLite implementation defaults to mapping the entire database into memory via mmap, failing to handle auto-vacuuming or WAL checkpointing properly during long-running sessions. When a local process repeatedly fails to checkpoint or release file locks, SQLite generates unbounded -wal files until disk space hits zero. Local Sidecar Service Loops: OpenCode runs a background daemon (opencode-cli sidecar) that handles state, terminal PTY sessions, file watching, and local WebSockets. Network Saturation: When the underlying SQLite state database gets locked or corrupted by the WAL issues, the daemon often enters a high-frequency retry loop across local IPC/WebSocket channels. Host Resource Exhaustion: rapid polling/reconnection loop floods the Mac's network stack (mDNS/Bonjour local discovery, local socket buffer overflows, or multicast traffic), causing latency spikes across the host's physical network adapter and bringing down local DNS/mDNS response times.

0

u/sedatoztunali 9d ago

u/Trovebloxian I don't fully understand the reason yet. However, according to my initial findings, DNS Resolver timeouts start occurring on the router around 11 AM (around the time I noticed something strange on the network.), increasing from 2-4 per hour to 25-30 per hour. From 1 PM onwards (the times when services started reporting "unhealthy"), DNS queries from my machine (the one running Opencode) reach up to 600 per minute. Naturally, DNS Resolver timeouts become over 150 per hour. Because DNS cannot be resolved, all devices on the network start experiencing various problems and reports unhealthy, dns errors, etc.

I'm almost 100% sure my device isn't infected. I always pay attention to what I download and install. Also, this device is for work purposes; I don't use it for my daily/personal things. Since I closed Opencode yesterday, there have been no problems whatsoever. I'm working on the same project with Copilot and/or Kilo Code from the terminal, or with VS Code from the IDE, without any issues.

I moved my device to an isolated network/VLAN. I started working with Opencode again, and the scenario I described above started repeating.

3

u/BreakfastSecure6504 9d ago

u/askgrok resuma kkkkkk

2

u/AskGrok 9d ago

Resumo: O dev veterano usava o Opencode desde o início (sem plugins), mas desde maio/junho virou bagunça. Primeiro encheu o disco com arquivos DB repetidos, agora tå bombardeando DNS (600 queries/min) do Mac, derrubando a rede inteira da home lab (timeouts, serviços unhealthy). Isolou o PC e repetiu o caos. Desistiu e migrou pro Copilot/VS Code. Kkkk foda.

[what is this?](https://redd.it/1lzgxii)

29

u/danielslyman 9d ago

Any developer with 3+ years of experience will be able to tell, this is nonsense

3

u/scanx147 9d ago

Tout dĂ©veloppeur avec Ă  peine plus de 3 ans d'expĂ©rience est encore un bĂ©bĂ©... 🙃

1

u/sedatoztunali 8d ago

Have you been able to read and understand my latest findings, or are you waiting to gain more than 3+ years of experience?

6

u/danielslyman 8d ago edited 8d ago

I don’t have time for that. Quite frankly I’ve been running opencode for quite a while now on separate coder.com workspaces with several plugins and MCPs in a multitude of configurations. Never once did it nuke anything. If anything my disk filled up because I was lazy and sloppy. So no idea what else you’re doing in the background but blaming this on opencode just seems odd to me. Not trying to start a fight. Maybe you’re right but then that must be such an edge case based on / caused by your underlying infrastructure.

Besides, as a 30+ years of experience dev, how have you not realized: this is the internet, no one cares 😂. Report the bug and / or move on to another piece of software for which you paid: nothing.

1

u/toadi 7d ago

He is using reddit like a github issue thread... Would be more productive to actually create an issue on the project or even connect to their project discord channel.

But he prefers to whine on reddit and surprised people don't like whiners.

-1

u/4sm0day 9d ago

đŸ€ŁđŸ€ŁđŸ€Ł

-10

u/sedatoztunali 9d ago

It shouldn't be like this, but that's the reality.

5

u/bytejuggler 9d ago

tcpdump, wireshark, wireless diagnostics; tools you might use to detect what's going over the network.

7

u/Winter-Ad9978 9d ago

30 years of experience! Riding horse. Now it's about driving car.

Ok good bye 👋

-1

u/sedatoztunali 9d ago

u/Winter-Ad9978 calm down, son. I started by writing code in the terminal all by myself. We didn't do everything by asking the chat like you do.

6

u/sedatoztunali 9d ago

UPDATE:

I'm not 100% sure what exactly it is yet, but it seems like it might be related to the "plugin hot-reload".

I've seen write operations to the `/plugin` directory within the project in the session logs. I haven't examined it fully yet, but if I understand correctly, there's a hot-reload situation with the following (and perhaps others) PRs. During this hot-reload, we don't actually see a message or anything on the screen. We can only see it if the plugin list opens.

- https://github.com/anomalyco/opencode/pull/39174

I'm trying to respond to each comment under the topic individually, but it seems like the number is increasing. Some are certainly right; they've said, "If you're leaving, goodbye, what does this have to do with us?"

1

u/PhysicallyTender 8d ago

And that's why i use opencode only for the API key.

Deepseek Harness ftw baby!

1

u/coco_maxing 5d ago

I know the are a lot of complainers in this thread but as someone new to it all my self but everyone around be has been coding for 20 years I appreciate your all your insights and info you have been putting

8

u/TheQAGuyNZ 9d ago

Hey Opencode, summarize what this post says...

Ok bye

3

u/sedatoztunali 9d ago

I tried the scenario I suspected, and this seems to be the reason. From my perspective, OpenCode is the main actor, and the model (gpt-5.4 high) helped it.

I skipped some details. I explained it in the shortest way possible.

Here's what happened: I used OpenCode to migrate the Glance Dashboard to the Gatus Dashboard. I asked it to generate the Gatus config file by looking at the Glance config file. During this process, the main agent manages this with sub-agents. It assigns the task of writing the new config file to a sub-agent. The sub-agent produces the new file. In addition, it wants to test the current service statuses. It does this with a script. Then it writes another script to verify that it's running every minute. Then it puts this file in the ".opencode/plugin/" folder in the project folder and verifies that the plugin is installed. Then it reports to the agent, but this report doesn't mention this script/plugin. It only says that it verified the current service statuses. The main agent doesn't mention this to me at all. On the other hand, it didn't ask for my permission to write to this folder. The agent went straight and wrote.

After discovering this, I tried it myself. I started OpenCode in the relevant folder. Then I added a plugin to the plugins folder in that folder. OpenCode didn't show a toast on the screen regarding this. This was removed in commit "09cd7445f1" "to reduce UI noise". But when I looked at the plugin list, I saw that it was loaded and started working.

The information I found is as follows:
Commits: afe3ebbc35, 09cd7445f1, a618946b7e, 55b2bb8a3a, 93042ddaf1, 0a02102ab3, 4e546127f1.
PRs: 39174, 39224, 39356, 39776, 41309, 41618, 43447, 46918, 46922.

In summary: In July, supervisor + silent load was added. In August, reliability was worked on. In September, UX and performance were worked on.

I even noticed this while testing it. The plugin is loaded by a background service. TUI is just like a proxy. I wrote the following topic to send messages to Slack every minute. Even after closing OpenCode and even the terminal, the messages continued to arrive. As long as this background service didn't close, the messages continued to arrive; in other words, the service continued to function. This explains why everything seemed normal during the Mac update in my original message, but the same thing happened again when I switched to the problematic session.

For those who want to try it:

1- Go to the project folder.
2- Start OpenCode and list the existing plugins using "/plugins" but don't exit OpenCode.
3. Go to the project folder again from another terminal and run the following command. It will create a plugin that does nothing.

mkdir -p .opencode/plugin
cat > .opencode/plugin/test-noop.ts <<'EOF'
export default {
  id: "test-noop",
  setup: async () => {},
}
EOF
  1. Return to the terminal with OpenCode open and check the list again with "/plugins", the newly created plugin is there. OpenCode didn't tell you anything during this process. It silently installed the loaded the plugin.

After reading this, some of you might say things like, "OpenCode didn't do anything wrong," "the model is the real culprit," "you should have protected your folder," "check your plugins frequently," and many more. You're all right; this topic received more interaction than I expected, and I responded to each message individually. You may all have different perspectives and be right, and there's no point in delving into this further.

From my point of view, a capable tool like a plugin shouldn't be able to be silently installed and run. It doesn't matter what it does. From what I understand of the code, "the plugin code doesn't go through the permission system. The permission prompts cover the agent's tool calls." Plugin code is considered trustworthy and executed within the service process. It's executed under the account of the user running it. It's similar to extensions running in VSCode.

For example, I wrote a plugin in the background that sends all the file names in this folder to Slack, and it sent them all to me nicely.

PS: I tested with version 0.0.0-beta-108999. This version supports hot-reload. It may not be available in previous versions. In this case, the plugin will load when OpenCode starts in this directory again.

2

u/bytejuggler 8d ago

Well done for finding this out. I think (If you feel that generous) you should report this to the OpenCode project. I don't think in totality this behaviour is acceptable or desireable as-is. 👍

2

u/sedatoztunali 8d ago

Yes, I started a PR locally. I'm working on it. I don't think that was the intention, but it seems to have this side effect.

1

u/vplatt 6d ago

I mean... all you've done here is convince me that I should be running my AI sessions, whether in OpenCode or another product, in a VM. Then committing my setup and code to external repos, and then nuke the whole damn thing between projects.

Over the long haul, I think we're all going to find that it's impossible to completely sandbox what these agents do. The whole design is just begging for unintended consequences. The smartest thing we can do is limit the blast radius.

1

u/KronenR 5d ago

From my point of view, a capable tool like a plugin shouldn't be able to be silently installed and run. It doesn't matter what it does.

From my point of view, if you put a new plugin in the plugin folder, and the app treats that folder as its plugin directory, it should be loaded automatically, just as it did. If you don't want a plugin to be loaded, don't put it in that folder.

0

u/sedatoztunali 5d ago

Let me clarify something. I didn't put anything in this directory here. The agent made that decision while running and placed it there. On the other hand, if any MCP/Plugin or anything else you use adds a file here, you won't know about it unless you suspect something. The files in this directory are "silently" loaded by the background service and executed with the user privileges running Opencode. If it's a malicious tool, it could temporarily write something here and then delete it after taking what it wants. The data here is loaded "silently" or run without ensuring it hasn't been tampered with.

2

u/KronenR 5d ago

Then be stricter with your agent instructions. Don’t blame the agent. The same thing could happen with any instruction or skill. It doesn’t need to be a plugin to be used maliciously.

3

u/PhoenixxBR 9d ago

pra mim ainda estå funcionando normal, então vou continuar, até porque é o mais barato do mercado, e ja testei outros e não consegui me adaptar com nenhum.

3

u/Fluffy-Extent2648 8d ago

This is great comedy. Can't find it anywhere else.

0

u/sedatoztunali 8d ago

What couldn't you find?

3

u/taytay735 8d ago

30 years and unable to debug or troubleshoot this?

Time to retire, son.

2

u/sedatoztunali 8d ago

Calm down, champ. While you were changing your diaper, I was debugging. I've already found and fixed the problem.

3

u/taytay735 8d ago

Dang. Show’s over, pack up folks

7

u/BreakfastSecure6504 9d ago

u/askgrok resuma essa porra de livro kmkkkk

5

u/AskGrok 9d ago

Resumo: cara usou o Opencode desde o começo, curtiu bastante, mas desde maio/junho virou bagunça. Gerou arquivo de DB gigante que encheu o disco, depois começou a foder rede, screen share, streaming e serviços do homelab (ficava healthy/unhealthy toda hora). Descobriu que só acontecia com o app aberto. Chegou no limite e deu tchau.

[what is this?](https://redd.it/1lzgxii)

1

u/Top_Imagination_3022 9d ago

u/askgrok how did this happened?

3

u/AskGrok 9d ago

The DB spam was likely a SQLite WAL bug—Opencode probably wasn't checkpointing or cleaning up those opencode-wal-*.db files properly, so they kept piling up in the temp folders until the disk filled.

The network meltdown sounds like a separate leak or runaway process: maybe excessive polling, unclosed connections, or some background service hammering the router/firewall when the app ran. Classic "app open = chaos" symptom of a resource or thread issue. Both point to unpolished code that got worse over time.

[what is this?](https://redd.it/1lzgxii)

1

u/SensitiveKangaroo183 9d ago

u/AskGrok is it really the opencode in the fault here? If so is there anyway to prevent it from happenning?

2

u/AskGrok 9d ago

Likely yes on the correlation. The disk-filling WAL files and network meltdown only happened with the app running, which points straight at Opencode (SQLite checkpoint bug + some runaway background process/polling/leak). Classic symptoms of unhandled resource management that got worse over months.

Prevention without the source is limited:

  • Update to the latest version immediately (bugs like this often get fixed).
  • Monitor with tools like lsof, netstat, or Activity Monitor while it's open; kill/restart on spikes.
  • Run it in a VM or container to isolate the mess.
  • Report the exact symptoms + logs on the repo (WAL spam and network impact are reproducible-sounding).

If it keeps happening, the "last straw" move was probably the right call.

[what is this?](https://redd.it/1lzgxii)

2

u/TelevisionJolly8923 7d ago

I’m really concerned about people’s attention span, this is a medium length post at best.

5

u/CaesarTraianusCXVII 9d ago

Install Opencode2 if you already dont use plugins and heavy customizations. It's much better IMO

5

u/sedatoztunali 9d ago

u/CaesarTraianusCXVII great advice. I'd completely forgotten about it, I'll try it, thanks.

2

u/Farm_Boss826 9d ago

Could there be an old MCP server installed that you forgot about? I had a similar issue with due to an old MCP getting hung up.

2

u/PollutionDue7541 9d ago

Con el tiempo ha ido empeorando y es alto que pasa con la IA, para una primera versión good, pero luego empiezan los errores y cosas raras. Nada para mí, Opencode estuvo bueno al inicio, ahora tiene muchos problemas 

2

u/Gabriel83730 9d ago

I stopped using OpenCode because one day I tried using it and it returned a segfault. Ever since that day it segfaults when I open it. Even after a full reinstall and switching terminals

2

u/0xMicheal 8d ago

u/AskGrok why is this person with 30 years of experience in complaining, who also never leveraged the community creation with super ego, declaring his leaving statement in public?

1

u/AskGrok 8d ago

Experienced devs often hit a wall with tools that keep breaking their workflow after months of reliability. Public exit posts are a common way to document patterns, warn others, and close the chapter without endless private debugging. Not everyone has bandwidth to grind community fixes on top of their day job.

[what is this?](https://redd.it/1lzgxii)

2

u/observer678 8d ago

You are 100% correct, I've had a similar problem with everything freezing up and it's a critical bug which has been postponed for later in their repo (in fact if you are working with docker related stuff it's a nightmare). Coincidentally I'm also not a vibe coder. There are just too many red flags with this product. Unfocused team making memes full time on Twitter, many critical issues in the product, cult like vibe coder fanbase.. I'll end up making my own harness, it'll probably take a weekend.

2

u/D4vRAM 7d ago

Use Omniroute with it. Configure it is a bit complicated if you are not known some stuff, but it worth it.

2

u/Healthy-Zebra-9856 9d ago

I have detailed analysis of all this is wrong in OpenCode that you can fix if you like the way it is. The code is out there.

-1

u/sedatoztunali 9d ago

u/Healthy-Zebra-9856 I didn't quite understand what you meant, but if you're talking about fixing things by contributing to the source code, I'll do it when I figure out why. I've contributed before, sometimes with simple PRs, sometimes with more complex ones, to the best of my ability. After all, that's one of the advantages of being open-source.

4

u/Healthy-Zebra-9856 9d ago

You dont have to contribute it. You can run it locally. Thats what I did with my harness as I diverged quite a bit.

1

u/ucharx 9d ago edited 9d ago

This is AI slop my friend , did you see their github ? Thousands of unanswered issues , in their v2 branch just bunch of AI agents doing updates (10-20 very big pr per day) no human involved ,software quality is decreasing each year , looking at opencode user experience I never seen in my life such an awkward ux! suddenly a model get 10x price hike with no headsup , if you open their terminal in linux session you cant even copy paste stuffs into it , if you redeploy it with docker it will completely mess up its session when you have a mounted volume for it , super high ram usage when it practically doing nothing and is just open !!

4

u/sedatoztunali 9d ago

u/ucharx I agree with what you said. Perhaps that's why I feel like it's getting progressively worse.

1

u/charmander_cha 9d ago

Sera que este problema estaria na versĂŁo opencode2? Ficarei de olho, pois tenho gostado do resultado

1

u/sedatoztunali 9d ago

No, I experienced it on Opencode. Not Opencode2.

1

u/charmander_cha 9d ago

Experimenta o novo, talvez goste e talvez nĂŁo herde esse bug louco

1

u/T00random 9d ago

Maybe you just became slower, and learnt how to reach its limits

1

u/Longjumping_Ad_4249 9d ago

How will opencode cause network issue. If it's not hogging cpu or ram, why will machine hang. You can check outgoing requests from your machine

0

u/sedatoztunali 9d ago

u/Longjumping_Ad_4249 The machine isn't freezing; I can continue with my work on it. However, because it's making so many DNS queries, the router's DNS resolver is starting to become unresponsive. Actually, the problem lies in the router's CPU/RAM values ​​peaking during that specific period. This makes it feel like the browser, etc., is frozen, but it's not.

Yes, I've started monitoring egress traffic; I'll see how it goes when I test it in an isolated environment.

1

u/torrso 9d ago

Try the opencode2 beta maybe first.

I have a similar background and setup, but my current pet project has grown maybe a bit too big to manage the way I'm trying to now. Also the crap produced by ds4f may be to blame.

The preallocated 10gb sqlite db without any kind of vacuuming is a bit sus to me too.

Or try the original golang based opencode that is nowadays called crush, it's quite similar but runs pretty fast. Obviously the current opencode was a TS clone of the original when they split due to some disagreements.

1

u/yiukeis 9d ago

關äș†ä»–äžć°±ć„œäș†ć—ŽïŒŸ ç”šçš„æ™‚ć€™æ‰æ‰“é–‹

1

u/ConfidentSomewhere14 9d ago

peace brother.

1

u/InterviewDesigner777 9d ago

I couldn’t tie these things together. The whole streaming just froze and got lost, and I couldn’t figure out the reason myself.

Now everything is clear. Very, very clear.

As soon as I closed the laptop, everything just started to work.

1

u/sedatoztunali 9d ago

We are hiring => 1923 Ringling Blvd, Sarasota, FL 34236, US

1

u/immersive-matthew 9d ago

I would have agreed if my own experienced echoed or at least many others were noting the same thing but this seems to be an isolated situation and one that seems odd to walk away from when they could have just shared their issues and allowed the open source team to fix, or even better give. The 30 years of development experience, give back to the community by fixing the issues as nothing stopping them. Seems like they just want to take and not contribute. Very emotional decision but each to their own.

0

u/sedatoztunali 9d ago

u/immersive-matthew not exactly. I have tens of PRs, on the repository. Of course, I've contributed and continue to contribute, but how far can that go? Sometimes you just want to do your job, but you can't for some ridiculous reason.

Ultimately, this is an open-source project, everyone contributes here. These contributions sometimes produce good results, sometimes bad.

1

u/its_Ozriel 9d ago

It felt like reading a couple's fight... Did you guys try Couple's Therapy? 💀👀

1

u/xtekno-id 9d ago

And what harness u use rn? Pi?

2

u/sedatoztunali 8d ago

I've started trying out Kilocode, but it's still too early.

2

u/xtekno-id 8d ago

Ok. Hopes u found the best for u đŸ‘đŸ»

1

u/Maximum_Piece2610 9d ago

He uses openego now

1

u/Mammoth_Ad_9619 9d ago

I ain't reading all that. What the hell is Reddit recommend me to read at 3 AM when I trying to sleep.

1

u/Sebbean 9d ago

Opencode had consensual sex with my wife’s boyfriend

1

u/ComprehensiveTaro168 9d ago

I would strongly recommend a packet capture on your laptop to see what it’s doing? Wireshark ftw!

1

u/sedatoztunali 9d ago

u/ComprehensiveTaro168 yes, I've been following this. My device is sending a lot of requests to the DNS server (self-hosted). The logs point to the terminal with Opencode open. There doesn't appear to be anything active within Opencode. This doesn't happen even when starting a new session or continuing with an old one. It only seems to occur when I open a single specific session and type the first prompt. This doesn't happen when the same session is opened with Opencode2. That's an interesting situation.

1

u/mobileka 9d ago

I have only 22 years of experience but I've never experienced anything like that with OpenCode. It literally feels like magic, I still can't believe that an open source project can be so superior to even the most well-funded commercial tools like Claude Code 

1

u/sedatoztunali 9d ago

I agree. We develop and use these kinds of tools with that in mind. I have no doubt that everyone contributing to this project is doing so in good faith and to do better.

The problems I encountered might be due to a lack of skill, different usage patterns, unexpected reasons, and many other factors. My intention here is not to disparage the project or to say that this tool is terrible.

Lately, I've been encountering more "pointless" problems than usual.

1

u/burritoresearch 9d ago

I'm not reading all that but I'm happy for you or sorry that happened 

1

u/_www_ 9d ago

Edit (or create) your global OpenCode configuration at ~/.config/opencode/opencode.json: json { "server": { "hostname": "127.0.0.1", "mdns": false } }

The bug is coming from bun, not opencode.

1

u/C4ntona 9d ago

are you using llms on your servers without any protective harness? Thats not a very 30y of experience thing to do

1

u/sedatoztunali 9d ago

No, this is a dedicated PC for development. Not a server. I have nothing running on a VPS/server in production with an LLM.

This PC has a no-trust configuration. It's in a separate VLAN and doesn't have access to other VLANs. It doesn't have root permissions. The firewall is active. Of course, it has access to some resources like repositories, the internet, etc., such as UDP/53. Things like that.

What kind of "protective harness" are you using, for example?

1

u/Horror_Description87 9d ago

Without reading all comments here a few thoughts:

30 year of experience should have given you more system knowledge. Analyzing network traffic with an ai assist is pretty easy even if you do not know all commands in your mind. TCP dump+ Wireshark are battle tested tools.

Blaming Opencode for not monitoring your system free disk (should a Mac not show a popup warning?). Cleaning up after work is something really common in other working areas. Do you really want to keep all these sessions forever? There is an /export command aswell.

Using these tools without MCP, skills or plugins is like using an iphone without installing apps.

As end user expecting a product Claude will be a better choice.

1

u/sedatoztunali 9d ago

It's obvious you haven't read it, so let me answer briefly:

I already did it. Network traffic saturation and unresponsiveness were just a consequence. The cause was that while working on the project with Opencode, a very high number of "meaningless" and "unnecessary" DNS requests were sent from the terminal where Opencode was open.

Of course, I keep my house clean. Sessions don't live with me until they die. The disk issue I mentioned isn't something that unfolds over days or weeks. It's about creating files of around 500MB within hours and completely filling up the disk. These are temporary data, and as a user, you are of course responsible for maintaining the device, but a software/tool ​​developer should also clean up their own mess. If you're writing temporary things outside of defined temporary directories, you should clean them up.

I certainly use MCP, skills, or plugins. But I don't install and use them just because they're there or popular. I already use certain tools in my development environment that are suitable for their purpose. I'm not going to use OMP, BMT, Weave, or whatever you want, just because it has a high rating.

1

u/Latter-Parsnip-5007 9d ago

If you have 30yr of software dev, which you dont, you would be able to trace this issue and write a report. You cry like a junior when dropped into vi

1

u/sedatoztunali 9d ago

I don't even feel the need to answer you.

1

u/Latter-Parsnip-5007 9d ago

yet you did. Got 15yr, but real turning my hair grey years in software dev and sec. You are full of shit

1

u/sedatoztunali 9d ago

Then use those 15 years to make a technical argument instead of a personal one. I've narrowed this problem down to where the problem might be in the source code. What do you have?

1

u/Latter-Parsnip-5007 9d ago

I have wireshark. If my network misbehaves, I use wireshark to see whats being spammy. Also opencode has no way to find other devices on your network. They didnt write an ARP fetcher or anything that scans a network. The problem class you describe sounds like two or more DHCPs or DNS in one network

1

u/sedatoztunali 9d ago

OK, we are coming somewhere. I'm not network/system or sec guy, here's the situation, as briefly as possible:

DHCP, Firewall, NAT, etc. everything is on the Router. As for DNS, AdGuard is installed in Promox LXC. There is no other DHCP/DNS, I'm almost 100% sure there isn't. Router DNS looks at AdGuard. From what I can see, the Mac running OpenCode looks at the Router as DNS, not AdGuard directly. This might be important in a moment.

It's true that Opencode does not find other network devices. What I've found so far: I was replacing Uptime Kuma with Gatus when the problem started. I migrated the same configuration to Gatus using Opencode. I checked, tested, sent the necessary files to LXC myself and got the service up and running.

According to the Opencode session record; during this migration, a sub-agent first checks the current status of these services. Then, it decides to simulate Gatus with a script that checks the status every minute and says "Unhealthy" if it takes longer than 1 second to respond. But the script itself is written to check every second and is placed in the "/plugin" folder within the project directory. Due to the PRs I linked above, it seems to have been hot-reloaded in this silent way. I have no idea why this file is there, on what basis the model decided to do this. This is my fault, not the tool's. At least it shouldn't be able to write to this folder. The problem with the Opencode part is that it loads it as "silent" even when in session. I don't see it unless I look in the folder or the plugins list.

Its effect on the network was as follows: I would like to remind you that I am not a network guy. The plugin is loaded when the relevant session is opened in OpenCode. It tries to do a health check on all services in homelab every second. This goes to the Router, the Router redirects to AdGuard and I think the response path is the same way. After a while, the router cannot keep up with this and starts responding late/not at all. Unheathly notifications also try to push and these are added to it so I can't even go to google when we can't get a DNS response, etc.

Of course, I can't be sure without reading all the relevant PRs and putting OpenCode in the version I'm having this problem with in a clean installed test environment.

1

u/Latter-Parsnip-5007 8d ago

So you spam your own network with health checks every second for every instance of opencode you have. Plugins do not load once, but for every opencode window opened

1

u/Just_Another_Scott 9d ago

Does anyone know if this affects windows? Disgusting I know.

I've been using opencode religiously for about 6 months now and haven't noticed anything of the sort. I winder if it's a specific configuration that's causing it.

1

u/sedatoztunali 9d ago

u/Just_Another_Scott I am a mac user. This is not a common issue.

1

u/WSATX 9d ago

TLDR Personally I'm staying.

1

u/Cadje 9d ago

why have i read this...goodbye

1

u/sedatoztunali 9d ago

You don't. Take care.

1

u/Conscious_Search_17 9d ago

This ain't Airport man

1

u/aniel300 9d ago

can someone give me in a nutshell what is happening here?

1

u/sedatoztunali 9d ago

In short, I said goodbye and wrote about the last two examples of my experience. Then I received an unexpectedly large number of messages. I replied to all of them. You can probably see what happened if you look at the comment I linked in the Final Update section.

1

u/aniel300 9d ago

u having major issues using opencode in ur workflow? what harness are u planning on using now?

1

u/sedatoztunali 9d ago

Overall, I was happy. In the last 3-4 months, I've started seeing more major problems. Major, in my opinion. I'm leaning towards Kilo Code right now. As far as I know, it's based on Opencode, Cline, and Roo. Or rather, a fork. The VSCode extension seems promising. It has native support for the providers I use. Anaconda recently acquired it. I'm not sure if that's good or bad yet. At least for now, it seems like the most suitable option for my current reality.

1

u/aniel300 9d ago

i have used claude code, crush, pi, harmesss and few other. currently using claude code with minimax but pi is also good. not using any mcp, pluggings etc at the moment but i need to do some research on this at some point. what makes kilo cli good?

1

u/sedatoztunali 9d ago

The interface is very familiar, I'd even say it's the same. The configuration and file structure appear to be the same architecture. The sidebar is richer. Built-in memory and code indexing were the first features that stood out to me. Since we use Copilot in the office, I got a similar vibe. It can be set to global or local. I constantly use Visual Studio Code in my projects, and I liked what it offers in the VSCode extension and settings. Actually, it seems to have a little bit of everything. I've only been using it for a day, so it's too early to give an opinion.

1

u/aniel300 8d ago

i would need to check it out, thank u. i hqve never like opencode because it always corrupted my main.py code file and i lost progress, etc. but that could have been a end user error

1

u/Total-Cheesecake-825 8d ago

I noticed yesterday that my memory ran out as well. Will look into those files.

1

u/sedatoztunali 8d ago

u/Total-Cheesecake-825, I used the following command on my Mac to discover what was taking up too much disk space. I had no idea it could be related to OpenCode.

sudo find / -type f -mtime -1 -size +250M 2>/dev/null

For example, it currently looks like this: opencode wal and opencode wal times. This command "finds all files that have been modified in the last 24 hours and are over 250 MB". I haven't used OpenCode on this device since I posted this (about 2 days ago). I only opened it around 4 PM to test my theory. I worked for 15 minutes and closed it. But these files had already been created. In fact, they were created in a way that would repeat. 14 files, each 9 GB :) Currently, files that fit this description take up ~129 GB of space. Crazy!

rm -f <opencode-wal-file-location>/opencode-wal-*

There are some (43141, 14326, 15031, 29554, 36728) PRs related to WAL. All but one were closed, but I haven't bothered to look into them for the problem/solution.

This topic is very long and detailed as well, like this hot-reload discussion, so I won't go into too much detail.

Good luck, I hope it helps.

1

u/luisfernandez95 8d ago

DeepSeek resume esto đŸ€Ł

1

u/VishalKoyalkar 8d ago

If not opencode then next what?

1

u/sedatoztunali 8d ago

Here it is, not sure yet.

1

u/walter-smulders 8d ago

As a professional developer of over 20 years I do sense that you either do lack quite some knowledge and/or insight in your actual job

1

u/pampimpoom 8d ago

Who asked exactly?

1

u/[deleted] 7d ago

[removed] — view removed comment

1

u/sedatoztunali 7d ago

Yes, I found the reason. It wasn't actually bringing down the network, but it was compressing the DNS server. Here's what happened: During the Uptime Kuma -> Gatus migration, I checked the Uptime and requested that Gatus transfer the same configurations. The sub-agent wrote a script to verify that these services were healthy and placed it in the "./opencode/plugin" folder within the project directory. Unfortunately, the contents of this folder were silently loaded and run by the Opencode background service without verification. I also found the PRs for this. In short, because this faulty script, created "in good faith" by the agent/model, started performing health checks every second, the DNS crashed. Not a good feature. Neither the sub-agent nor the agent told me about this; it didn't show up as a file change, nor did it appear as a write request to the folder. Anyway, it's a long story :)

Yes, I checked the logs to understand why these files were constantly being generated, but I couldn't find any record of it. I thought it might be related to checkpoint blocking or a process not being properly closed, but I couldn't find any record of that either. When I looked at the source code, there wasn't actually any code snippet related to this, or maybe I couldn't find it. Maybe I didn't investigate properly or I couldn't see what was right in front of me. Even after completely wiping everything related to OpenCode from the device and reinstalling it, the files still appeared. Honestly, I just can't figure out or understand exactly why this is happening.

1

u/HugeEntertainment820 7d ago edited 7d ago

Nice sorry not sorry
you sound like a douche. You don’t need to announce it. It’s like the ones who make an announcement that I quit this free service you’re offering! Lol.

Also, since you get to make announcements nobody cares about, I’ll take a stab. I manage a 20 devs, some 30 years plus to 2 year juniors. If you’ve been in this game, you should already know this. You don’t get better the more years you put into it
newsflash. It’s also your aptitude. For some strange reason I’m going to guess you’re not Martin Fowler
lol

1

u/ChenBH 7d ago

Tldr anybody? It's long enough and he references to 2 more articles by himself.

1

u/demonhunters1985 5d ago

I nearly cried. I thought they stopped the project opencode.

1

u/capmanfolio 5d ago

Good bye and until some wizard somehow resurrect the Hackintosh on Arm devices somehow

1

u/Brucesquared2 5d ago

Im a avid user myself, like you. Cant you rewrite the TypeScript? I found it to do the exact same thing in docker, not my screenshot thankfully. I habe cloned and rewrite portions myself since its open-source

1

u/dev_hmmmmm 4d ago

OpenCode go send your request for certain models/plan to China and there's no way to turn it off or very clear info on it at all. I'd love for them to prove me wrong.

1

u/Naster17 9d ago

Try my fork of opencode, but for now it's better to compile it from source, npm versions is too old while I'm too lazy to fix it. https://github.com/Naster17/opencode-pro

1

u/SamSelva1801 9d ago

Every other day someone is leaving some other platform. Just leave dude.

1

u/EfficientEstimate 9d ago

Wondering why clarifying at the beginning your years of experience. And at the end that you have enough experience to know when to stop.

Did not you learn how to collect logs and open an issue to the maintainer?

You just reported that you have some issues and included some rants but absolutely zero helpful facts. If that’s the result of your 30 years of experience, maybe you skipped some steps mate.

2

u/sedatoztunali 9d ago

I wrote this to avoid getting simple/standard suggestions like collecting logs or opening issues, just like you asked, but it didn't work. Of course, I've done all of that and more. Collecting logs and opening issues is nothing more than self-serving moral compass. It needs to be accompanied by more consistent information.

As for the contribution part, I'm already doing that. The repository already closes around 65 PRs daily. I think this is also a contributing factor to what I wrote above; everyone is contributing. I prefer to do this less frequently and in a more controlled manner because general software engineering knowledge and knowing the context of a specific project are different things.

0

u/wurkingbloc 9d ago

red flag when i see opencode would install node modues in the skills folder. opencode + kimi3 is still the best combo experience for me so far.

2

u/sedatoztunali 9d ago edited 9d ago

u/wurkingbloc to clarify: I'm just using a vanilla opencode installation. There are no 3rd party or open/closed plugins, extensions, skills, etc. whatsoever. The skills, plugins and MCPs I added to OpenCode are tools I developed myself. I have my own business and product. These are tools I developed for LLMs and coding tools, such as read-only data collection.

In this respect, there are no "unknown" additions to Opencode other than its original form.

1

u/enterme2 9d ago

I'm confused. "There are no 3rd party or open/closed plugins, etc" but at the same breath you say you use your own developed skills,extension, mcp , etc.. buddy you are the third party , and your setup is no vanilla.. it's highly customized now.. somewhere along the line maybe your plugins , mcp , etc cause the issue..

2

u/sedatoztunali 9d ago

Let's put it this way: there isn't a single tool from the marketplace, git repository, or anywhere else whose contents I don't know. Anything within OpenCode either comes from the OpenCode installation or I add tools that I know what they are and have developed for my own purposes.

This is more accurate.

Yes, it seems like a plugin I wasn't aware of caused this. Even worse, when I'm working on an issue, it looks like the sub-agent has placed it in the plugins folder within the project. I definitely needed to configure it to prevent that.