Visual Studio Code Agents Window and Worktrees - Unraveled
Fokko at Work explains how the Visual Studio Code Agents Window works and how it uses Git worktrees to let you run multiple coding agent sessions (including GitHub Copilot, OpenAI Codex, and Claude Code) in the same repo or across multiple repos without clobbering local changes.
Overview
The video covers the VS Code Agents Window as a separate experience from the regular editor window, focusing on how it enables:
- Running multiple agent sessions at the same time within a single repository
- Running agent sessions across multiple repositories
- Avoiding conflicting local changes when multiple sessions operate on the same codebase
It also explains the underlying mechanism used to make this possible locally, centered around Git worktrees and how they allow multiple working directories tied to the same repository.