外部沙箱让编程智能体代码在隔离环境运行
Simon Willison 与 Prime Radiant 提出外部沙箱模式,让编程智能体留在沙箱外执行指令,而由智能体运行的代码进入专用沙箱。项目发布三个服务器实现:external-sandbox-v86、external-sandbox-container 和 external-sandbox-quicksand。它们提供统一的 localhost API,可连接 Pi、Claude Code 或 Codex,并支持网络允许列表和凭据替换。
Simon Willison 的博客指出,该模式为智能体代码提供隔离执行边界,并让用户控制网络访问与密钥,以应对智能体失误和提示注入带来的风险。
External sandboxes for coding agents
Simon Willison’s Weblog
Sponsored by: Dynatrace — Your coding agent can read your code but can’t see how it runs in production. Read the blog to see how Dynatrace MCP closes that gap.
17th November 2026 - Link Blog
External sandboxes for coding agents. I've been exploring new ways to sandbox code that is executed by agents, with a focus on making it safer to try out local models without worrying that a mistake or prompt injection attack might cause them to take damaging actions on a machine.
#Prime Radiant#external-sandbox-v86#external-sandbox-container#external-sandbox-quicksand#v86#Alpine Linux#WebAssembly#Apple Containers#Quicksand#Pi#Claude Code#Codex