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

Share on LINE
Contents
  1. 1. What problem does AHP solve, and how does it differ from the earlier approach?
  2. 2. How does AHP work?
  3. 3. Which host implementations exist today?
  4. 4. How can developers connect to or build their own host?

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.

Compiled from GitHub's engineering blog description of the differences before and after AHP
AspectBefore (VS Code extension)After AHP (per GitHub)
Agent lifetimeTied to a single VS Code window; closing the window ends the agentAgent sessions can continue across clients
Effect of updatesUpdating VS Code stops all agentsProtocol is independently versioned, spanning clients such as VS Code, the Copilot app and mobile apps
Integration approachEach product integrates with cloud agents separatelyShared protocol, no custom integration needed
ImplementationCopilot 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.

  1. Copilot app: enable Experimental > Direct Connections, then go to Environments > Add Agent Host Protocol Host.
  2. VS Code: use Add Remote Agent Host in the Agents window.
  3. Run code agent host in a terminal to start a standalone VS Code agent host.
  4. 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

Share on LINE

Sources

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.

Lifestyle