News for hackers. Stuff that matters.
Re:OpenCode Browse by regexorcist on Tuesday November 17, 2026 @04:22AM (#50529245)
> lock down code execution to run in bwrap. Claude made a nice extension

I think you're looking at it wrong. I run opencode itself inside bwrap (atop other layers) so anything it runs it's already sandboxed.

Re:OpenCode Browse by testtestmetest on Tuesday November 17, 2026 @08:17AM (#50530960)
I agree to sandbox but opencode doesnt instruct you to use bwrap and many people dont even know what a sandbox is and you have the head of Opencode, dax, screaming about how dumb you are for caring about permissions while marketing to as many normies as possible.
Re:OpenCode Browse by sburud on Wednesday November 18, 2026 @12:26PM (#50549186)
I do so too. But I’m getting to a point where I either have to put the whole world into the sandbox (which defeats the point), or run a gazillion copies of opencode (which is terribly inconvenient).

So I figured it’d make sense to lock down code execution within each Location (the internal name for worktree-like things) and rely on the permission system to ask me when the LLM wants to do stuff outside the Location through other channels than the shell tool.

Locking down the shell tool correctly only took a moment, but I really wasn’t prepared for the whack-a-mole exercise of stamping out all the other ways an LLM can execute arbitrary code without confirmation through other opencode features. And I don’t trust the next update not to introduce new ones.