VS Code Agent Host: remote control from the browser

Your VS Code Copilot, reachable over the Internet from a personal phone, a tablet or a gaming PC: that is now possible. Security teams have not yet scoped this use case.
Key takeaways
On August 26, 2026, Microsoft introduced the VS Code Agent Host, a dedicated process that hosts AI agent sessions (Copilot, Claude, Codex) outside the editor window. Sessions survive closing the folder or the window, stay synchronized across several clients, and run locally or on a remote machine over SSH, a dev tunnel or WSL. A browser-based Agents window, available at insiders.vscode.dev/agents, connects to the development machine through a dev tunnel. The AHP protocol (Agent Host Protocol) is open, with clients published in Rust, TypeScript, Go, Kotlin and Swift. For security teams the takeaway is simple: an agent that reads code and runs commands on a developer workstation can now be steered remotely. Microsoft states that both the Agent Host and AHP remain under active development. Teams need to inventory these hosts, scope tunnels and decide who approves agent actions.
What is the VS Code Agent Host?
The Agent Host is a standalone process that owns VS Code's AI agent sessions. It runs either as a local utility process or as a standalone remote server, and the editor window is just one of its clients. According to the VS Code documentation, it remains the source of truth for sessions.
Concretely, you start a Copilot or Claude session on a folder. You close the folder, even the window, and the agent keeps working. When you reopen, the state is there. The same session can be open from two windows at once, synchronized. Three first-party adapters run inside the Agent Host: Copilot, Claude and Codex. The Claude harness loads Anthropic's Claude Agent SDK, according to Microsoft's architecture post.
How do you drive VS Code from a browser?
You connect VS Code to a remote Agent Host, then follow an agent's progress, approve its tool calls or cancel a job from another client. Your machine executes, your browser steers. Per the documentation, the browser-based Agents window connects to the development machine through a dev tunnel.
| Connection mode | What Microsoft describes |
|---|---|
| Local | Utility process, communication over a message port (IPC) |
| SSH, Tunnel, WSL | Desktop clients connected to a remote Agent Host, JSON-RPC over WebSocket |
| Browser | Agents window at insiders.vscode.dev/agents, through a dev tunnel |
The AHP protocol is open and designed to let several clients collaborate around long-running sessions. According to Microsoft, clients are already published in Rust, TypeScript, Go, Kotlin and Swift, so anyone can write their own agent control client. Both texts state that the Agent Host and AHP are under active development.
Why does the Agent Host move the attack surface?
Here is what has become possible: an autonomous process that reads and modifies code and runs commands on the developer's machine, controllable from a browser, through a tunnel, with an open protocol any application can implement.
CISOs have spent years locking down remote access to workstations: VPN, Zero Trust, MFA, bastions, dedicated privileged access for admins. Here, a remote entry point to the development machine goes through a browser tab and a Copilot account. On the protection side, the documentation says the code agent host command by default starts a server on localhost protected by a connection token. The default is reasonable; the risk comes from what gets changed afterwards.
Which questions should you ask before teams enable it?
Where do your teams' Agent Hosts run, locally or remotely? That inventory has to be built: workstations, SSH machines, WSL, declared tunnels.
Who approves tool calls when the agent works autonomously overnight? A session can continue with no client connected. Decide which actions require human approval and which are denied outright, rather than leaving each developer to decide.
What stops a dev tunnel from exposing an Agent Host with a weak token? Not much if the default configuration is changed. The answer is organizational: long, non-reused tokens, limited tunnel lifetime, logging of every connection.
What it changes for your teams
We find this capability indispensable for a developer working with agents. We use Claude Code remotely through Hermes and Telegram ourselves: that is the 2026 development workflow. We also think CISOs are overwhelmed, because the agentic ecosystem moves at the pace of Copilot, Claude Code and Codex releases, while governance, when it exists, moves much more slowly. Teams that spent months scoping ChatGPT usage will have to absorb this one, with one difference: it already runs on developers' workstations.
What we would do first:
- Inventory active Agent Hosts and dev tunnels, on workstations and remote machines alike.
- Ban undeclared tunnels by policy and require long connection tokens, unique to each host.
- Define which agent actions require human approval, and forbid unattended overnight execution on machines that access secrets.
- Apply least privilege to the host machine: no production keys, no long-lived secrets in the agent's environment.
- Log connections and tool calls and tie them into your existing alerting, as you would for the offensive agents described in Anthropic's report or the RubyGems attack chain.