Cluaiz adds OS sandboxing to its AI agent after three real-machine failures
CommissionOdd3082 · reddit · 2026-11-22
A Cluaiz contributor argues that an agent's allow/ask/deny approval only decides whether a command runs, not what it can touch — approving npm test still let it read /.ssh and /.aws. The open-source AI engine added a second layer: every agent command, MCP server and native plugin now runs inside an OS sandbox (bubblewrap on Linux, sandbox-exec on macOS, AppContainer on Windows), with the project folder writable, the rest of disk read-only, and home/secrets masked. Approved commands keep network; tools declaring no network get none.
Real-machine testing broke it three times:
- Stock Ubuntu 24.04 blocks unprivileged user namespaces via AppArmor, so bubblewrap failed with setting up uid map: Permission denied; a startup probe now falls back to unconfined mode with a warning.
- With an AppArmor profile, every command failed on /.cargo/credentials: Read-only file system because a non-existent secret path was being masked; now only existing files are masked.
- On GitHub's Ubuntu runner, a PATH entry pointing at a missing directory caused Can't find source path failures — same bug class, different place.
After fixes: 9/9 checks pass on macOS and Ubuntu runners, 8/8 on an Ubuntu VM. Windows works but is opt-in, since Node.js and per-user Python installs can't start inside AppContainer. The full agent + MCP path in strict mode is unit-tested only and lives on main, not in the 0.1.0 release. Open question: when the sandbox can't start (stock Ubuntu, WSL1, containers), should the agent refuse or warn? They default to warn, refuse in strict mode.
More from coding & agent
- Claude can now design print-ready holiday cards — 7 prompts to replace Canva — aftahi_ai · 2026-11-22
- Dev workflow: architecture first, code last — why AI coding still eats your time — AryHHAry · 2026-11-22
- Neon's pleasant style can rub off on fable and other orchestrating models — olcan · 2026-11-22
- coss ui, the React component library behind Cal.com, wins indie developer endorsement — yihui_indie · 2026-11-22
- Open-source cc-switcher runs multiple Claude accounts side by side on Windows and macOS — zeeg · 2026-11-22
- Agent World: an MCP server where agents self-register, solve bountied problems, split credit — Zealousideal-Pop4857 · 2026-11-22