Skip to content
Visual Studio Code·Indexed by this site · Originally published· Tools →· Its place in the scan record →

Understanding the trust and security mechanisms of AI agents in VS Code

Understand trust and safety for AI agents

AI summary

The official Visual Studio Code documentation explains the trust and security model of its AI agents. The documentation lists model limitations to watch for, including that outputs may be wrong, that it may misunderstand intent, and that files, tool outputs and web pages may contain prompt injection instructions that attempt to change the agent's behavior; control mechanisms work in layers, including reviewing changes with a diff before committing, approval for sensitive files, selecting tools and permission levels per task, and Agent sandboxing that uses OS-level isolation to restrict file system and network access. Trust boundaries cover the workspace, extension publishers, MCP servers and network destinations; MCP servers configured in the workspace inherit Workspace Trust. The documentation also notes: a stop request cannot undo terminal commands and network requests that have already executed, enabling the sandbox does not by default block outbound network, built-in file tools are not inside the process sandbox but go through separate permission checks, and running a model locally does not mean the workflow is offline.

Read originalcode.visualstudio.com