GitHub Copilot in VS Code: Remote Agent Sessions via SSH and Dev Tunnels

GitHub Copilot

GitHub has introduced remote agent sessions in VS Code (preview), enabling developers to run Copilot agent sessions on remote machines over SSH or Dev Tunnels rather than only locally. Sessions persist and continue running even when the client disconnects, making long-running agentic tasks possible on powerful cloud or server environments. The Agents window in VS Code Stable can connect to a remote host, and agents can be monitored or interacted with from any browser. This feature is part of the VS Code May 2026 releases (v1.120-v1.123) and is currently in preview.

Featured Video

A video we selected to help illustrate this changelog


GitHub Copilot in VS Code: Remote Agent Sessions via SSH and Dev Tunnels

GitHub's May 2026 VS Code releases introduced remote agent sessions as a preview feature, fundamentally expanding where and how developers can run Copilot agent tasks. Previously, agent sessions ran locally inside VS Code on the developer's own machine. With remote agents, those sessions now execute on any machine reachable over SSH or a Dev Tunnel, with the Agents window acting as a remote control interface.

What Remote Agents Enable

The core capability is straightforward: a developer connects the VS Code Agents window to a remote host, starts a Copilot agent session, and the session runs entirely on that remote machine. If the developer closes their laptop or the network connection drops, the session continues uninterrupted on the remote. When they reconnect, the work is waiting for them.

This changes the practical calculus for long-running agentic tasks. Tasks like large refactors, comprehensive test generation, or multi-file code migrations can now be handed off to a powerful cloud VM or dedicated build machine rather than taxing a developer's local hardware or requiring their laptop to stay open and connected throughout.

Dev Tunnels Integration

For developers using GitHub's Dev Tunnels, the setup extends seamlessly. A Dev Tunnel exposes a remote development environment through a secure, authenticated URL, and the Agents window can connect to it just as it would an SSH host. This is particularly useful for cloud-based development environments (such as GitHub Codespaces) where the remote machine is already provisioned and ready.

Session Persistence and Monitoring

Sessions are persistent across client disconnects, a key requirement for agent tasks that take hours rather than minutes. Developers can monitor session progress from any browser, not just from their VS Code client. This means a session kicked off from a desktop machine can be checked on later from a mobile browser or a different computer.

Availability

Remote agents are currently in preview and available to all GitHub Copilot subscribers as part of the VS Code May 2026 release cycle (v1.120 through v1.123). The feature builds on the Agents window, which also graduated to VS Code Stable (from Insiders) as part of the same bundle.