How to Choose the Right Sandbox for AI Agents
The point
LangChain says agents that write and run code need a sandbox because prompt injection cannot be fully prevented. A good sandbox isolates the filesystem, limits network and resources, controls reuse, and uses kernel level isolation via a microVM.
Why it matters
For builders: check those five controls before trusting any sandbox product.
Key details
- Risk cited: sensitive data access, untrusted content exposure, and external communication
- LangSmith Sandboxes use a dedicated microVM per sandbox and a proxy that keeps secrets outside
- Deep Agents supports the agent inside the sandbox or calling it as a tool
Original ~6 min → 25 sec here Source: LangChain Blog, Nov 18, 2026