Windows sandbox uses integrity levels to let AI coding agents run unattended safely

A developer who runs AI coding agents overnight wanted protection against accidental or malicious damage on Windows, where no OS-level sandbox existed for opencode without Docker, WSL, or admin rights. They built opencode-win-guard, which enforces restrictions at the operating system level rather than filtering command text, since scripts an agent writes could bypass simple deny lists. Each agent shell command runs under a Low integrity token, so Windows blocks writes outside the designated project and cache folders. Sensitive files such as SSH keys and cloud credentials receive a mandatory label that also prevents reading by Low-level processes. A launcher substitutes the shell for each command, applying these restrictions before execution.
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