News for hackers. Stuff that matters.
Re:OpenCode – The open source AI coding agent by rbehrends on Friday March 20, 2026 @07:55PM (#47462469)
I am more concerned about their, umm, gallant approach to security. Not only that OpenCode is permissive by default in what it is allowed to do, but that it apparently tries to pull its config from the web (provider-based URL) by default [1]. There is also this open GitHub issue [2], which I find quite concerning (worst case, it's an RCE vulnerability).

[1] https://opencode.ai/docs/config/#precedence-order

[2] https://github.com/anomalyco/opencode/issues/10939

Re:OpenCode – The open source AI coding agent by woctordho on Friday March 20, 2026 @09:02PM (#47462958)
RCE is exactly the feature of coding agents. I'm happy with it that I don't need to launch OpenCode with --dangerously-skip every time.
Re:OpenCode – The open source AI coding agent by mrln on Saturday March 21, 2026 @04:54AM (#47465295)
No, it is still configurable. You can specify in your opencode.json config that it should be able to run everything. I think they just argued that it shouldn't be the default. Which I agree with.
Re:OpenCode – The open source AI coding agent by indigodaddy on Saturday March 21, 2026 @11:39AM (#47468001)
And in the webui there is a don't ask button
Re:OpenCode – The open source AI coding agent by rbehrends on Saturday March 21, 2026 @02:57PM (#47470100)
No, the problem is that when logging in, the provider's website can provide an authentication shell command that OpenCode will send to the shell sight unseen, even if it is "rm -rf /home". This "feature" is completely unnecessary for the agent to function as an agent, or even for authentication. It's not about it being the default, it's about it being there at all and being designed that way.
Re:OpenCode – The open source AI coding agent by mrln on Thursday March 26, 2026 @07:21AM (#47529137)
Ah, yes. That's crazy. I was thinking they were refering to the lax permissions of the agent by default.
Re:OpenCode – The open source AI coding agent by ct520 on Friday March 20, 2026 @09:30PM (#47463131)
I second that.

Have fun on windows - automatic no from me. https://github.com/anomalyco/opencode/issues?q=is%3Aissue%20...

Re:OpenCode – The open source AI coding agent by foxygen on Friday March 20, 2026 @09:36PM (#47463183)
Who cares about Windows?
Re:OpenCode – The open source AI coding agent by Sebguer on Friday March 20, 2026 @10:30PM (#47463454)
people who don't make OS preferences their entire personality
Re:OpenCode – The open source AI coding agent by BoorishBears on Friday March 20, 2026 @09:42PM (#47463215)
I do: they're important for ventilation in this heat wave.
Re:OpenCode – The open source AI coding agent by UltraSane on Saturday March 21, 2026 @12:31AM (#47463992)
People who don't like messing around with drivers and like running Linux VMs on a Windows OS.
Re:OpenCode – The open source AI coding agent by igravious on Saturday March 21, 2026 @04:04AM (#47465017)
Driver issues are way more of a thing on Windows than Linux or MacOS.
Re:OpenCode – The open source AI coding agent by UltraSane on Saturday March 21, 2026 @04:30AM (#47465159)
Getting hardware to work is MUCH harder on Linux
Re:OpenCode – The open source AI coding agent by freehorse on Saturday March 21, 2026 @08:18AM (#47466354)
Last years I have had more problem with hardware in windows than in linux. It is not so trivial anymore.
Re:OpenCode – The open source AI coding agent by UltraSane on Saturday March 21, 2026 @12:38PM (#47468582)
Please provide examples.
Re:OpenCode – The open source AI coding agent by freehorse on Sunday March 22, 2026 @03:09PM (#47480949)
In 2022 we got new zen 5 amd cpus almost when they came out, windows did not recognize a bunch of stuff and had to find and download individual drivers. In linux (ubuntu) everything worked out of the box, except only that the LTS release did not support the kernel that supported the new mobos yet and had to install the rolling release instead.
Re:OpenCode – The open source AI coding agent by gunapologist99 on Saturday March 21, 2026 @04:13PM (#47470823)
Please provide examples.
Re:OpenCode – The open source AI coding agent by thayne on Saturday March 21, 2026 @05:13PM (#47471442)
It depends. For a lot of hardware it's actually easier to get working on linux, because the driver is just part of the kernel and you don't have to do anything special, including manually installing drivers, to get it working.

There are some cases where hardware support on Linux is suboptimal, such as Nvidia cards and many fingerprint readers, but things are a LOT better now than they used to be. Most consumer laptops and desktops will run linux just fine.

Re:OpenCode – The open source AI coding agent by shellwizard on Saturday March 21, 2026 @03:30AM (#47464822)
What? Drivers?
Re:OpenCode – The open source AI coding agent by kolinko on Saturday March 21, 2026 @04:39AM (#47465218)
I think the parent meant vs MacOS, not vs Linux.
Re:OpenCode – The open source AI coding agent by cracki on Saturday March 21, 2026 @05:43AM (#47465590)
Users of MacOS rarely have an active dislike for Windows, nor are they likely to announce this.
Re:OpenCode – The open source AI coding agent by freehorse on Saturday March 21, 2026 @08:16AM (#47466344)
I use macos and I do actively dislike windows: here I announce it.
Re:OpenCode – The open source AI coding agent by nmcfarl on Saturday March 21, 2026 @09:30AM (#47466855)
I liked the apple II, and the TRS 80 as I rather like basic. And then I didn’t hate DOS, and then I actively hated the graphical shell of Windows 3, but could not afford a Macintosh -so suffered through it where I had to, but mainly used DOS. Then I discovered UNIX, and did almost all of my work on a timeshare - in the early 90s!

Then Windows 95 came out and I actively hated it, but did think it was amazingly pretty - somehow this was the impetus for me to get a pc again, which I put Windows NT on. Which was profitable for freelance gigs in college. Soon after that, I dual booted it to Linux and spent most of my time in Slackware.

After that, I graduated and had enough money to buy a second rig, which I installed OS/2 warp on - which was good for side gigs. And I really liked. A lot. But my day job required that I have a Windows NT box to shell into the Solaris servers as we ran. Then I got a better class of employer and the next several let me run a Linux box to connect to our solaris (or Aix) servers.

Next my girlfriend at the time got a PowerBook G4 and installed OS X on it. It was obviously amazing. Windows XP came out, and it was once again so much worse than Windows NT - and crashed so much more - which was odd as it was based on Windows NT. (yes 98 was before this but it was really bad). Anyhow, right about here the Linux box I was running at home, died. And it was obvious that I was not going to buy an XP box, so I bought my first Mac.

And it’s been the same for the last 25 years - every time I look at a Windows box it’s horrible. I pretty much always have a Linux box headless somewhere in the house, and one rented in the cloud, and a Mac for interacting with the world.

And like the parent I actively dislike windows. And that’s interesting because I’ve liked most other operating systems I’ve used in my life, including MS-DOS. Modern windows is uniquely bad.

Re:OpenCode – The open source AI coding agent by esafak on Saturday March 21, 2026 @11:17AM (#47467805)
DOS was bad by UNIX standards too. Only Windows NT/2000 was decent.
Re:OpenCode – The open source AI coding agent by UltraSane on Saturday March 21, 2026 @12:40PM (#47468612)
I use windows and absolutely hate the mac UI. Having the current window title bar always at the top of the screen doesn't make any sense when you have a very big monitor. It only made sense with the tiny monitors available when the mac UI was originally created.
Re:OpenCode – The open source AI coding agent by freehorse on Sunday March 22, 2026 @06:53PM (#47483165)
Yeah, that is an annoyance for me too but for a different reason. I have set the menu bar to be only in the internal display (to avoid issues with my OLED external monitor) so when I have a window in the external monitor, I have to move the mouse to the internal monitor screen space if I want to open something that is in the app's title bar.

On the other hand, it is actually useful that there is mostly a specific place you find settings etc, as in windows/linux it tends to vary depending on the app where to find those (is there a bar on top of the window? Is there a button to expand a menu somewhere? Something else? Who knows).

Re:OpenCode – The open source AI coding agent by UltraSane on Sunday March 22, 2026 @11:59PM (#47485378)
The very idea of being able to have the programs' main menu on a different screen is so silly.
Re:OpenCode – The open source AI coding agent by kolinko on Monday March 23, 2026 @06:28PM (#47496009)
Me, personally, I have an active dislike for windows and I announce it broadly. But I may be weird :)
Re:OpenCode – The open source AI coding agent by larschdk on Saturday March 21, 2026 @03:49AM (#47464936)
No surprise that a tool that can run shell scripts, open URLs, etc. is flagged down on Windows where AV try to detect such trojan methods.
Re:OpenCode – The open source AI coding agent by TZubiri on Friday March 20, 2026 @10:35PM (#47463480)
I assign a specific user for it, which doesn't have much access to my files. So what I want is complete autonomy.
Re:OpenCode – The open source AI coding agent by heavyset_go on Saturday March 21, 2026 @12:09AM (#47463895)
It also sends all of your prompts to Grok's free tier by default, and the free tier trains on your submitted information, X AI can do whatever they want with that, including building ad profiles, etc.

You need to set an explicit "small model" in OpenCode to disable that.

Re:OpenCode – The open source AI coding agent by integralid on Saturday March 21, 2026 @12:42AM (#47464042)
This. I work on projects that warrant a self hosted model to ensure nothing is leaked to the cloud. Imagine my surprise when I discovered that even though the only configured model is local, all my prompts are sent to the cloud to... generate a session title. Fortunately caught during testing phase.
Re:OpenCode – The open source AI coding agent by DrewADesign on Saturday March 21, 2026 @07:36AM (#47466114)
I’m curious if there’s a reason you’re not just coding in a container without access to the internet, or some similar setup? If I was worried about things in my dev chain accessing any cloud service, I’d be worried about IDE plugins, libraries included in imports, etc. and probably not want internet access at all.
Re:OpenCode – The open source AI coding agent by ssrshh on Saturday March 21, 2026 @07:34PM (#47472687)
Having access to internet could be important for looking up docs and things like that.
Re:OpenCode – The open source AI coding agent by DrewADesign on Saturday March 21, 2026 @07:38PM (#47472718)
Yeah — you can develop in a container that’s configured to only allow local access. Your machine is connected to the Internet as usual, so you can access any docs you want or whatever, but the actual execution environment running on your machine can’t. This is pretty easy to set up in Docker, for example. It’s also useful because you can have the same exact dev environment no matter what machine you’re on, OS you’re running, etc.
Re:OpenCode – The open source AI coding agent by jmalicki on Saturday March 21, 2026 @10:18AM (#47467256)
Ok wow.

I mean the default model being Grok, whatever - that everyone sets to their favorite.

But the hidden use of a different model is wow.

Re:OpenCode – The open source AI coding agent by andai on Saturday March 21, 2026 @03:58PM (#47470690)
If you're using software someone else wrote, you'd have to repeat this testing phase any time an update is installed, right?

(I do mean this as a general principle, but also it was pointed out elsewhere in the thread that this is a particularly "high velocity" project as far as unexpected changes go.)

Re:OpenCode – The open source AI coding agent by adam_mckenna on Saturday March 21, 2026 @02:49AM (#47464594)
It uses a model called "Big Pickle" by default which is an alias for minimax 2.5, as far as I've been able to tell.
Re:OpenCode – The open source AI coding agent by rsanheim on Saturday March 21, 2026 @04:42AM (#47465231)
Wait what. For real? I knew their security posture was bad, but this bad??
Re:OpenCode – The open source AI coding agent by gambiter on Saturday March 21, 2026 @08:17AM (#47466347)
They're talking about before it's configured by the user. It defaults to 'free' models so that the user can ask a question immediately on startup. Once you configure a provider, the default models aren't used.
Re:OpenCode – The open source AI coding agent by vbernat on Saturday March 21, 2026 @04:53AM (#47465285)
From the code, this does not seem to be true anymore. It falls back to the current model if no small model is identified with the current provider. https://github.com/anomalyco/opencode/blob/9b805e1cc4ba4a984...
Re:OpenCode – The open source AI coding agent by mrighele on Saturday March 21, 2026 @08:44AM (#47466525)
Documentation [1] says:

The small_model option configures a separate model for lightweight tasks like title generation. By default, OpenCode tries to use a cheaper model if one is available from your provider, otherwise it falls back to your main model.

I would expect that if you set a local model it would just use the same model. Or if for example you set GPT as main model, it would use something else from OpenAI. I see no mentions of Grok as default

[1] https://opencode.ai/docs/config/

Re:OpenCode – The open source AI coding agent by lukewarm707 on Saturday March 21, 2026 @09:00AM (#47466629)
i ran it through mitmproxy, i am using pinned version 1.2.20, 6 march 2026, set up with local chat completions.

on that version, it does not fall back to the main model. it silently calls opencode zen and uses gpt-5-nano, which is listed as having 30 day retention plus openai policy, which is plain text human review by openai AND 3rd party contractors.

i see they removed the title model on v1.2.23.

i was so annoyed i made an account here today

Re:OpenCode – The open source AI coding agent by indigodaddy on Saturday March 21, 2026 @11:38AM (#47467983)
Wait what, so are you saying if I am on some other model, it still sends my prompts to Grok??