GitHub Publishes Open Agent Host Protocol: Copilot Agent Sessions Can Continue Across VS Code, the Copilot App and the Cloud
GitHub explains that Copilot's cross-device session continuity is built on an open standard, the Agent Host Protocol (AHP), covering VS Code, the Copilot app and cloud sandboxes, with libraries in six languages.
News date: About 5 min read
Contents
In an engineering blog post dated November 17, 2026, GitHub explained that Copilot agent sessions (agents are AI assistants that carry out tasks on their own) can be started in one place and continued in another, thanks to an open standard called the Agent Host Protocol (AHP). According to GitHub, agent sessions in the local Copilot app, in cloud sandboxes and in VS Code now all share this protocol. Direct connections in the Copilot app are labeled as experimental.
What problem does AHP solve, and how does it differ from the earlier approach?
GitHub says Copilot began as an extension in VS Code with its own built-in harness (the underlying program that drives an agent). An agent's lifetime was therefore tied to the editor: close the window and the agent is gone; update VS Code and every agent stops when the app restarts. Meanwhile, the Copilot app and the GitHub mobile apps on iOS and Android each had their own separate integrations with cloud agents. GitHub concluded that building a dedicated integration for every client was not workable, so it needed a common, independently versioned protocol that lets every client see the same agents, history and state.
| Aspect | Before (VS Code extension) | After AHP (per GitHub) |
|---|---|---|
| Agent lifetime | Tied to a single VS Code window; closing the window ends the agent | Agent sessions can continue across clients |
| Effect of updates | Updating VS Code stops all agents | Protocol is independently versioned, spanning clients such as VS Code, the Copilot app and mobile apps |
| Integration approach | Each product integrates with cloud agents separately | Shared protocol, no custom integration needed |
| Implementation | Copilot Chat extension, over 400,000 lines of TypeScript (excluding tests) | VS Code host in TypeScript, GitHub host in Rust |
How does AHP work?
GitHub says the coarsest unit of functionality in AHP is the "channel," and each channel is identified by a URI (a URL-like identifier string). Every server must implement the root, session and chat channels, and may add others, such as terminal support, MCP extensions (MCP is a protocol that lets AI connect to external tools) or OTel reporting (OTel is used to report operational telemetry). Each channel holds a reducer-style state object, that is, state that is updated step by step according to the actions it receives. The server is the arbiter of state, while clients send a stream of actions that change state or trigger side effects, such as sending a chat message.
According to GitHub, this design makes reconnecting and replaying easier. A client sends its queued actions, shows an appropriate loading state, and waits for the server to reconcile and confirm. GitHub also notes that the protocol deliberately does not prescribe how agents work, focusing only on how users interact with them. Like MCP, AHP offers custom methods and _meta data as a way to pass extra signals.
Which host implementations exist today?
GitHub says the VS Code agent host runs locally, can be moved onto other compute through SSH, containers, WSL or Dev Tunnels, and is included in the VS Code Server package. GitHub's agent host must run in the cloud and across a much wider variety of infrastructure, environments and security constraints, so the two were implemented separately in different languages. GitHub says that comparing how the two are extended revealed that some differences reflected gaps in the protocol. For example, early versions could not accurately represent the output of shell-type tools that are not backed by a PTY (pseudo-terminal).
How can developers connect to or build their own host?
GitHub says AHP libraries are available for Rust, TypeScript, Kotlin, Swift, .NET and Go. The protocol is an open standard and can be used for your own companion apps, team tool integrations or editor support. The steps below are the ones GitHub lists.
- Copilot app: enable Experimental > Direct Connections, then go to Environments > Add Agent Host Protocol Host.
- VS Code: use Add Remote Agent Host in the Agents window.
- Run code agent host in a terminal to start a standalone VS Code agent host.
- Run code agent endpoints to see the endpoints of the agent host inside the editor.
Frequently asked questions
Is AHP proprietary to GitHub?
GitHub calls AHP an open standard, first built in VS Code and adopted across GitHub. GitHub also welcomes questions and suggestions through GitHub.
Can AHP keep an agent running after I close the window?
GitHub says AHP aims to keep work from being interrupted by closing a window or switching devices, and lets sessions in the local Copilot app, cloud sandboxes and VS Code share the same protocol. Please refer to the official documentation for specific behavior.
Which programming languages have ready-made AHP libraries?
According to GitHub, Rust, TypeScript, Kotlin, Swift, .NET and Go.
Does GitHub mention pricing or regional availability?
No. GitHub's article does not mention pricing, plan tiers or regional availability.
Browse the latest news in this topic
Found this guide helpful? Share it with someone who needs it
NVIDIA and Microsoft at Ignite: Vera Rubin NVL72 in Preview on Azure, Nemotron 3.5 in Foundry, Windows 365 Direct Stream in Limited Preview
NVIDIA says it has expanded AI collaboration with Microsoft from the Azure cloud to the edge and Windows, including a Vera Rubin NVL72 preview on Azure, Nemotron 3.5 models in Foundry and a limited preview of Windows 365 Direct Stream.
Google Quantum AI Makes the Cover of Science: Quantum Contextuality Holds at Up to 105 Qubits, With a 98.3% Win Rate in a Coordination Game
Google: ARMORY CASTLE Exploited VMware vCenter Zero-Day CVE-2026-123890, Affecting vCenter 7.x and 8.x; Broadcom Has Released a Patch
Cloudflare: Election-Day Traffic to 2026 U.S. Midterm Election Sites Surged 363%, While Attackers Shifted from DDoS to Exploiting Vulnerabilities
Sources
- Building the Agent Host Protocol for sessions that continue across devices - The GitHub BlogChecked:
Compiled from the references and verification dates listed above; fares, schedules, product features, and terms can change, so please confirm the latest details on the relevant official website before travelling, booking, or purchasing.