~/VISUAL STUDI/microsoft-releases-vs-code-v1-141-with-ai-agent-worktree-cleanup-and

Microsoft Releases VS Code v1.141 with AI Agent Worktree Cleanup and Sandboxing

Microsoft released Visual Studio Code version 1.141, focusing on AI agent workflow management with features like worktree cleanup for inactive agent sessions and cross-platform terminal sandboxing for GitHub Copilot Agents. The update also introduces a multi-session grid layout for tracking concurrent agent tasks and supports logging into multiple GitHub Enterprise accounts simultaneously. As developers increasingly delegate complex coding tasks to autonomous AI agents that operate across separate Git branches, orphaned sessions can quickly deplete disk space while terminal commands introduce security risks. Built-in worktree resource management and terminal sandboxing address these critical developer experience and safety challenges in multi-agent workflows. The new `Chat: Open Worktree Cleanup` command allows developers to filter idle agent worktrees, manually prune them, or set automated deletion rules for sessions associated with merged pull requests while keeping active or pinned sessions safe. Additionally, cross-platform terminal sandboxing restricts Copilot Agents' access to local file systems and network resources on Windows, macOS, and Linux.

## BACKGROUND

A Git worktree enables multiple working directories to be linked to a single repository, allowing developers or AI agents to work on different branches simultaneously without switching contexts. Terminal sandboxing isolates automated shell commands inside a restricted execution environment to prevent unauthorized system access or accidental code execution.

## REFERENCES

## KEYWORDS

#Visual Studio Code#AI Agents#GitHub Copilot#Developer Tools

$ subscribe --daily

Microsoft Releases VS Code v1.141 with AI Agent Worktree Cleanup and Sandboxing | Daily News