This article explores the GitLab Duo Agent Platform's sandbox rules for AI agents that execute code, emphasizing the importance of correctly configuring the agent-config.yml file to ensure security and proper functionality. It covers enforcement settings, network policies, limitations, and provides testing instructions for verifying sandbox configurations. GitLab's sandbox system aims to prevent unauthorized access to sensitive credentials and improve workflow safety by restricting network and filesystem interactions. Further guidance is provided for setting up and testing these configurations to maintain compliance and security.