# GitHub unties Copilot from the editor window _GitHub built the Agent Host Protocol so Copilot sessions survive closed windows and resume across devices._ **Published:** 2026-11-17 **Source:** https://www.startuphub.ai/ai-news/technology/2026/github-unties-copilot-from-the-editor-window --- [GitHub](https://github.blog/engineering/engineering-principles/building-the-agent-host-protocol-for-sessions-that-continue-across-devices/) built the Agent Host Protocol to keep Copilot agent sessions alive across editors, phones and cloud. The detail that explains the rebuild is that VS Code extensions die with the window, so closing it killed the agent according to GitHub. Copilot Chat had grown to more than 400,000 lines of TypeScript over three years tied to the VS Code extension API and window lifecycle, so GitHub says the team moved the harness into a standalone agent host built on the Copilot SDK. AHP speaks in URI-identified channels, with root, session and chat required and extras like terminal, MCP additions or OTel reporting optional. The server owns a reducer-based state object and clients send queued actions that mutate state or trigger side effects like sending a chat message, which makes reconnect and replay simple. Microsoft's [agent-host-protocol repo](https://github.com/microsoft/agent-host-protocol) describes AHP as synchronized multi-client state for AI agent sessions served by a portable standalone sessions server. VS Code runs its TypeScript host locally and ships it in the Server bundle for SSH, containers, WSL and Dev Tunnels, while GitHub runs a separate Rust host in the cloud for wider infrastructure and security constraints according to GitHub. You can start a session on your phone and resume it on your laptop without a custom integration, but your client is only as capable as the channels its host implements. --- Original analysis from [startuphub.ai](https://www.startuphub.ai), the #1 AI startup directory. © StartupHub.ai. All rights reserved. You may not republish this article in full without a license. Search engines and AI research tools may crawl and summarize for reference. Bulk reproduction or model training on this content requires a license. See https://www.startuphub.ai/terms.