3 min Devops

Microsoft gives AI agents more autonomy in VS Code

Microsoft gives AI agents more autonomy in VS Code

Microsoft is giving AI agents in Visual Studio Code more freedom to perform programming tasks independently. With version 1.148, agents can continue working even after developers have closed the window. Microsoft is also expanding the capabilities for isolated development environments and improving agent performance.

With the latest release, AI agents respond more quickly. According to Microsoft, the time it takes for an agent to begin responding has decreased by an average of 30 percent compared to the previous stable release.

Performance has been a focus since Microsoft switched to its Agent Host architecture. The difference in response time between the new and old architectures has now been reduced to about 5 percent.

Microsoft is also introducing a preview feature that prevents computers from entering sleep mode while agents are performing tasks. Agents can also continue working after developers have closed the VS Code window. By default, this feature applies to computers connected to the power grid.

Isolated development environments

The vendor is expanding the capabilities for AI agents to operate in isolated environments. An experimental feature allows developers to create Ubuntu-based Dev Containers without manually creating a configuration file.

Developers can also instruct an agent during an existing session to set up a separate container. This allows the agent to experiment without affecting the original working environment.

Another experimental feature makes it possible to create reusable sandbox profiles. Organizations can apply different security restrictions to individual remote hosts, depending on their role and the resources agents need to access. The organization’s existing security policies remain in effect.

Microsoft also simplifies the management of remote development environments. Developers gain more extensive diagnostic capabilities when connection issues arise. Additionally, they can free up storage space by removing inactive Git workspaces.

Authentication and performance

The update also addresses authentication issues when AI agents execute shell commands. Previously, certain commands requiring a password or other form of authentication could fail because agents did not have access to an interactive terminal.

Developers can now respond to authentication requests directly from the chat interface. The login credentials are passed to the application requesting them, not to the underlying AI model.

Microsoft is also experimenting with a new algorithm for identifying differences between versions of source code. The algorithm is written in Rust and compiled to WebAssembly. This is particularly relevant when evaluating extensive code changes across multiple files.

These improvements illustrate the evolving role of Visual Studio Code. As AI agents operate more independently, managing their execution environments, access rights, and resource usage becomes an increasingly important part of the development process.