DEV Community

Leo
Leo

Posted on Originally published at cicd.deployment.to

VS Code 1.133 pulls agent sessions out of the editor process

VS Code 1.133 moved AI agent sessions out of the editor's extension host and into a standalone Agent Host process that outlives the window and can be reached over SSH or a dev tunnel, per DevOps.com. For teams standardising on Copilot, Claude or Codex in a build, an agent run stops behaving like a chat tab and starts behaving like a background service they have to monitor.

The release, which DevOps.com dates to August 12, publishes the wire format between client and host as the Agent Host Protocol (AHP), released on GitHub under an MIT license. Microsoft is positioning AHP next to the Language Server Protocol and the Debug Adapter Protocol: a spec other IDEs and tools can implement, not a VS Code internal. The protocol uses JSON-RPC over immutable state, with sequence-numbered updates, so multiple clients can attach to the same session and stay in sync.

What actually moved

First-party adapters ship for Copilot, Claude and Codex. Inside a Claude session the model picker groups Anthropic and Copilot models under separate headings, and per turn you choose which one runs; billing follows the choice, with Anthropic entries hitting the API key and Copilot entries drawing from the Copilot subscription. Switching providers used to require reconfiguring the agent host.

Two more knobs matter for platform teams. Typing code agent host in a terminal starts a local server, protected by a connection token by default; adding a --tunnel flag exposes it through a dev tunnel. An experimental setting, chat.agentHost.allowSignedOutWhenUsable, drops the mandatory GitHub sign-in prompt on the Agents window, so a machine that cannot reach github.com but has an API key configured is no longer gated. For now the setting only works with Claude; per DevOps.com, Copilot with custom model keys and Codex support is coming later.

The catch

The open spec is on paper, but the load-bearing part is that the first-party adapters keep parity. The Futurum Group's Mitch Ashley told DevOps.com that "open beats proprietary only if the adapters for Claude and Codex stay first-class." Old sessions still run under the extension-host model, and flipping chat.agentHost.enabled to false reverts to that behaviour entirely, so a bad rollout is a settings-toggle away from the previous default. The rollout is going through VS Code's built-in updater; teams that manage the editor centrally will see it land on whatever cadence their update policy allows, not on August 12.

Top comments (2)

Collapse
 
ndcodes profile image
Nnamdi Felix Ibe

Useful summary, though the August 12 framing makes this sound newer than it is. The shift landed in stages: AHP adoption was announced in 1.126, and 1.129 on July 15 is where the dedicated agent host actually shipped for Copilot, Claude and Codex. Most teams have had it in the build for a month already.

Worth adding that AHP is still pre-1.0, and Microsoft is explicit that wire types and state shapes can break before production status. That's a different proposition from the LSP and DAP comparison.

On --tunnel, the thing I'd want answered first: AHP is a coordination layer, not an authorisation model. It decides which client wins when two race, which is concurrency control. It doesn't answer which principal may subscribe to a session, read a terminal, or approve a tool call. Fine locally. Over a tunnel, that's the whole question.

Which sharpens your settings-toggle point. Flipping chat.agentHost.enabled back changes future behaviour, but it doesn't retire tokens or close what's already listening.

Collapse
 
nyx533 profile image
Nyx533

@leobaniak Pulling agent sessions out of the editor process is the right move, but the Agent Host Protocol publishing the wire format is the actual signal. A long-lived agent process that can survive the window and be reached over SSH is a daemon. Once the session is a daemon, the editor is just a frontend and the agent can be stared at from any terminal you own. That is when an agent stops being an editor feature and becomes infrastructure with its own deployment, logs and lifecycle. The interesting bugs stop being editor bugs.