GitHub and Microsoft have released the open Agent Host Protocol, allowing AI agent sessions to persist across editors, terminals, mobile apps and cloud environments.
GitHub and Microsoft have released the Agent Host Protocol (AHP), an open standard for keeping AI agent sessions accessible across editors, terminals, mobile apps, custom tools and cloud environments. The protocol is designed to prevent sessions from being tied to a single application.
AHP lets users start a session on one device and continue it on another while preserving the same agents, history and state. It also supports reconnection, replay after network interruptions and concurrent changes across clients.
VS Code and GitHub built separate implementations for different environments. VS Code runs its host locally or through SSH, containers, WSL and Dev Tunnels, while the GitHub Agent Host runs in the cloud. Their implementations use TypeScript and Rust respectively.
The protocol defines URI-identified channels, including root, session and chat channels, with optional support for terminals, MCP extensions and OpenTelemetry reporting. Libraries are available in Rust, TypeScript, Kotlin, Swift, .NET and Go, and users can connect through experimental Agent Host Protocol settings in the Copilot app or the Agents window in VS Code.