opencode gotcha: project config can re-enable disabled bash

julianharris · x · 2026-10-27

On securing coding agents: the author notes that disabling bash is a straightforward config, but opencode's gotcha is that a project-level opencode.json can re-enable it — so you must also switch off project settings to prevent a rogue agent from overriding the restriction.

A reply notes that Claude and Codex both have fairly mature dynamic fetch-blocking strategies, and asks about the dcg tool.

Original post →

More from coding & agent

coding & agent channel →