---
id: 20261118-T0-08
title: "Simon Willison探索给编码Agent加外部沙箱，防止提示注入搞坏本机"
title_en: "Simon Willison Explores External Sandboxes for Coding Agents"
url: https://ai.daily.yangsir.net/daily/20261118-T0-08
issue_date: 2026-11-18
publish_date: 2026-11-17T22:52:29.000Z
category: insight
source_name: "Simon Willison"
source_url: https://simonwillison.net/2026/Nov/17/external-sandboxes-for-coding-agents/
---

# Simon Willison探索给编码Agent加外部沙箱，防止提示注入搞坏本机

Simon Willison发文介绍他为编码Agent代码执行搭建外部沙箱的探索，重点是让开发者安全试用本地模型，避免模型出错或遭遇提示注入攻击时对本机造成破坏性操作。他展示了相关原型工作，思路是把Agent执行的代码隔离在受控环境中。对想本地跑Agent的开发者来说，这类沙箱方案能降低试错风险，但会带来额外的环境配置成本。

## English Version

**Simon Willison Explores External Sandboxes for Coding Agents**

Simon Willison detailed his exploration of external sandboxes for code executed by coding agents, focused on making it safer to try local models without risking damaging actions from mistakes or prompt injection attacks. He worked on a prototype that isolates agent-executed code in a controlled environment. For developers running agents locally, such sandboxing lowers the risk of trial and error but adds environment setup overhead.

---

**来源**：[Simon Willison](https://simonwillison.net/2026/Nov/17/external-sandboxes-for-coding-agents/)

**详情页**：https://ai.daily.yangsir.net/daily/20261118-T0-08

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*