
GitHub Engineering · 7 min readSoftware architecture
Building the Agent Host Protocol for sessions that continue across devices
The article explains the design and implementation of the Agent Host Protocol (AHP), a cross‑platform standard that lets AI agents maintain session continuity across devices. It details how AHP uses URI‑identified channels, reducer‑based state, and minimal core features to support reconnection, debugging, and integration with various clients. The protocol’s open libraries enable developers to embed agent sessions in editors, terminals, or custom tools.
- AHP uses reducer‑based state to simplify reconnection and replay.
- Channels are URI‑identified, with root, session, and chat as mandatory.
- Libraries exist in Rust, TypeScript, Kotlin, Swift, .NET, and Go for easy client/server builds.