GitHub announced an open Agent Host Protocol (AHP) that lets Copilot agents run across editors, applications, phones, and cloud environments. Developers can start a session on one device and resume it on another without losing state.
Why a single integration per client failed
The original Copilot extension for VS Code bundled its own harness, tying an agent’s lifetime to a single VS Code window. Closing the window, updating the editor, or connecting to a remote machine all ended the session. Separate integrations were later built for the Copilot app and mobile clients, each solving continuity for one product but preventing developers from embedding agents in their own tools.
Design goals for a universal protocol
The team needed a protocol that works across VS Code, the Copilot app, mobile devices, and any future client. It had to survive network interruptions, support concurrent mutations, and stay independent of agent behavior. To keep implementation simple, the core protocol is minimal and revolves around URI‑identified “channels” with reducer‑based state objects that drive client logic.
Implementation and early results
Adopting AHP in VS Code required a new harness, replacing the long‑standing Copilot Chat extension that was tightly coupled to the VS Code window lifecycle. Work began in early 2026 alongside the Copilot SDK. Two independent hosts were built: a TypeScript implementation for VS Code and a Rust implementation for GitHub’s cloud‑based Agent Host, each meeting different infrastructure and security needs. Running both implementations has served as an “acid‑test” for the protocol’s robustness.
“It’s easy to build a harness implementation that says hello and can edit files—we were using the agent host to develop the agent host after the first couple weeks—but it’s another thing to build one that covers the long tail of features developers had come to expect from Copilot Chat.” – GitHub engineering team
- Every server must implement root, session, and chat channels; additional channels can add terminal support, MCP extensions, or OTel reporting.
- Clients send actions that mutate state or trigger side effects; the server reconciles and acknowledges, simplifying reconnection and debugging.
- The reducer‑based design aligns well with UI frameworks such as React.


