Codegen agents operate within secure, isolated sandbox environments where they can safely execute code, install dependencies, and run commands without affecting your local machine or production systems.
Each sandbox provides a controlled environment with:
bash
, sh
, etc.) to run scripts, linters, formatters, build tools, and other necessary commands.Agents utilize sandboxes for a variety of tasks:
pip
, npm
, yarn
) to install necessary libraries.Sandboxes are typically configured per-agent run or defined within your Codegen settings. You often don’t need to manage them directly, but advanced configurations might allow specifying Docker images or environment variables.
Sandboxes are ephemeral; their state is not typically persisted between agent runs unless specifically configured for caching or stateful operations.