Agents window: Remote access with Dev Tunnels

The video introduces the new Tunnels feature within the VS Code Agents window, enabling developers to remotely access and manage their local development environments and AI agent sessions from any device via vscode.dev. This capability enhances cross-platform flexibility and productivity by allowing seamless remote work, including on mobile devices, while maintaining full control over projects and tools.

The video discusses the evolving workflow of using AI agents in software development, highlighting how the presenter frequently uses them within VS Code, the GitHub Copilot CLI, and cloud-hosted environments. The presenter emphasizes the convenience of managing multiple projects and repositories simultaneously, leveraging agents to quickly implement ideas and fix bugs across various workspaces. The local VS Code Agents window is introduced as a powerful tool to orchestrate and manage multiple agent sessions across different projects on a developer’s machine.

A major highlight of the video is the introduction of the new Tunnels capability within the Agents window, which, when paired with vscode.dev, allows developers to remotely access their local development environments from any device. By creating a tunnel from the local machine using the “code tunnel” command, developers can connect through the web or mobile devices to their local workspaces, complete with all their developer tools and SDKs. This capability enables seamless remote work, making it possible to carry the entire development setup anywhere, even on a phone.

The presenter demonstrates how to use the Tunnels feature by connecting to a MacBook Air from the web interface at vscode.dev/agents. Once connected, all local workspaces and agent sessions become accessible remotely, allowing the user to create new sessions, modify code, and manage projects just as if they were working locally. The video also shows the mobile experience, where the interface is optimized for phones, enabling full control over agent sessions and workspaces on the go.

Further, the video showcases cross-platform flexibility by connecting from a Windows machine to the MacBook Air tunnel. This allows the user to monitor and steer agent sessions, update projects, and even run builds for platform-specific applications like Swift apps on macOS. The integration extends to the local VS Code Agents window on Windows, where tunnels to other machines can be discovered and connected, providing a unified experience for managing agent sessions across different operating systems.

In conclusion, the Tunnels capability revolutionizes remote development by enabling developers to manage all their agent sessions from anywhere, whether on the web, mobile, or different desktop environments. This feature enhances productivity by providing continuous access to local environments and projects, transforming how developers work with AI agents. The presenter encourages viewers to try out the new feature, providing links to documentation and additional resources for deeper exploration.