Developer sandboxes AI coding agent in a dedicated VM to prevent accidental damage
A developer running AI coding agents with shell access built a dedicated Linux VM on Apple Silicon to isolate the agent from his real files and credentials. The setup uses a snapshot taken before each session, allowing any destructive action to be rolled back in about 30 seconds rather than debugged. Building the sandbox on Apple's Virtualization.framework came with several non-obvious pitfalls, including the loss of a critical EFI variable store file that causes Linux guests to fail silently on reboot. Attaching a serial console for debugging also backfired, as Ubuntu's installer detected it and redirected the entire installation UI away from the display. The author concludes that truly isolating an agent means avoiding shared filesystems entirely, since mounting a real project folder into the VM defeats the purpose of the sandbox.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in