News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.