Kernel-Level Agent Sandboxing With macOS Seatbelt, No Docker Needed

mostly_deterministic · reddit · 2026-10-16

The author built kernel-level sandboxing for commands executed by agents in local MCP servers, avoiding Docker/VM dependencies. The approach combines macOS Seatbelt policies with tool allowlisting: policies are grouped by filesystem roots and cover read/write, network, IPC, and executable permissions (split into required/optional tools). The abstraction is OS-agnostic but currently macOS-only. Surprising pain points included Homebrew-installed apps, Xcode.app, and command-line tools, requiring workarounds with xcode-select, executable shims, and manifest resolution. Full write-up linked; feedback welcome.

Original post →

More from coding & agent

coding & agent channel →