Programming and Software Development

GitHub unveils Agent Host Protocol to maintain AI sessions across devices

GitHub announced the development of the open Agent Host Protocol (AHP) to ensure the continuity of AI assistant sessions across different text editors, applications, and devices, both cloud and local.

2026-11-17
3 min read
15 views
certi.news Editorial Team
GitHub unveils Agent Host Protocol to maintain AI sessions across devices

The GitHub platform announced the development and launch of an open-source protocol called the Agent Host Protocol (AHP), which is specifically designed to maintain the continuity of artificial intelligence agent sessions and synchronize them seamlessly across various applications, editors, and devices, including mobile devices and the cloud.

Challenges of traditional client integration

Tools like GitHub Copilot initially relied on custom integrations within the VS Code text editor environment. Although this approach provided a powerful experience, it tied the agent's lifecycle strictly to the boundaries of the editor window. Closing the window, restarting the application, or connecting to a remote device resulted in the immediate termination of the agent session.

As Copilot and the platform's mobile applications evolved, each entity created its own independent integration with cloud agents. While these integrations temporarily solved the problem, they deprived developers of the flexibility to freely transfer their sessions between different working environments such as editors, command lines, and smartphones. This highlighted the urgent need for a standardized and version-independent protocol that allows different clients to view the same agent state, history, and data without requiring complex programmatic integrations for each individual product.

Protocol mechanism and technical architecture

The AHP protocol relies on an architecture built on channels identified by Uniform Resource Identifiers (URIs), where the system enforces minimum operational requirements that include root channels and chat sessions, with the possibility of adding other channels to support command lines, extension protocols such as MCP, and monitoring tools.

State management within the protocol depends on a reducer-based state object model, which grants developers advanced features including:

  • Easy management of reconnection and session recovery processes in cases of poor network conditions by replaying cached actions.
  • Simplification of debugging and programmatic discovery processes for both the server and the client.
  • High compatibility with popular user interface frameworks such as React.

Practical applications and multiple implementations

Adopting the protocol within VS Code required rebuilding core components and replacing the traditional Copilot Chat extension to rely on the new Copilot SDK development toolkit. Two main versions of the Agent Host have been developed: a version written in TypeScript to suit the local and remote VS Code environment, and another version written in Rust to run in the cloud and across diverse infrastructure environments.

AHP protocol libraries are now available in multiple programming languages including Rust, TypeScript, Kotlin, Swift, .NET, and Go, allowing developers to build custom applications that interact with agents directly, ranging from smart office tools to task management platforms.

News source
c
Author

certi.news Editorial Team

In the same category

You may also like

View all news