---
title: "Secure AI-assisted development in VS Code"
url: "https://xlrocket.men/secure-ai-assisted-development-in-vs-code"
markdown_url: "https://xlrocket.men/secure-ai-assisted-development-in-vs-code.md"
format: "link"
published: "2026-09-12T12:09:05.000Z"
link_url: "https://code.visualstudio.com/docs/agents/security"
site: "火箭君 MEN"
---

# [Secure AI-assisted development in VS Code](https://code.visualstudio.com/docs/agents/security)

译：VS Code Agent 沙箱（Preview）与安全基线

- `chat.agent.sandbox.enabled`：OS 级隔离限制终端/工具的文件系统与网络
- 沙箱内可少点「每条命令确认」；macOS / Linux / WSL2
- 编辑器内核层的敢 YOLO 又不交整机——对照本机 MCP 闸门三档
