News for hackers. Stuff that matters.
Re:Annoying and alarming things about OpenCode by bel8 on Monday July 20, 2026 @10:39AM (#48979520)
I too love and use pi agent.

But all of these agents have or had "dumb" security issues:

https://github.com/anthropics/claude-code/security/advisorie...

You probably know that since you run pi inside https://github.com/containers/bubblewrap.

Re:Annoying and alarming things about OpenCode by ekidd on Monday July 20, 2026 @10:56AM (#48979745)
Those are Claude Code security issues? And Claude Code is a gigantic vibe-coded dumpster fire with more bugs than an ant hill?

pi-agent famously doesn't even try to provide a sandbox, so obviously it can't have sandbox security bugs!

I actually think that this is the right model: The agent should not have access to anything it doesn't actually need: User files outside the work tree (except for maybe some allow-listed dotfiles), network access, real credentials, etc. Lock it down tight, and reduce exposure on multiple parts of the "Lethal Trifecta".

Re:Annoying and alarming things about OpenCode by jboss10 on Tuesday July 21, 2026 @04:00PM (#48997440)
I use this setup aswel. I've written an alias for bwrap which only gives the agent access to the current directory and read only access to the docs.

Have you managed to setup any firewall or protection for the API keys? I know this is out-of-scope for bwrap.