GitHub, the Microsoft-owned code hosting service, rebuilt how its Copilot coding agents run. Copilot began as an extension inside VS Code, Microsoft's code editor, so closing or updating a window killed its agents. The Copilot desktop and mobile apps each needed custom integrations. Starting in early 2026, two GitHub engineers say, the team built the Agent Host Protocol (AHP), an open standard that lets editors, apps, phones and cloud environments share one agent session. It now has two hosts: about 369,000 lines of TypeScript for VS Code and about 305,000 lines of Rust for GitHub's cloud.
The team could not reuse the existing Copilot Chat code, which depends on VS Code's extension API. Building a basic agent was quick, but matching the long tail of existing features took far longer. Running two separate implementations exposed protocol gaps and wrong assumptions. The authors put it this way: "A protocol with only one implementation isn't truly portable." The post gives no adoption figures.
