Building the Agent Host Protocol for sessions that continue across devices
Source
blog.github.com
Date
Why it matters
Agent sessions tied to an editor window die when it closes or updates. AHP moves the agent to a host that clients attach to, so you can resume sessions across devices and build your own clients against an open protocol.
Key takeaways · AI-distilled
AHP is organized into URI-identified channels. Every server must implement the root, session and chat channels, and can add optional ones such as terminal support, Model Context Protocol (MCP)A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.Full definition → additions or OTel reporting.
Each channel holds reducer-based state that the server owns. Clients send actions that mutate state or trigger side effects, so after a network drop a client resends queued actions and waits for the server to reconcile them; GitHub says this also eases DebuggingFollowing a failure back along the data path to the place where the data first goes wrong.Full definition → and fits React.
Unlike the Language Server and Debug Adapter protocols, AHP deliberately avoids encoding how agents work, because GitHub says the agent FieldOne named piece of a record, such as name or approved_on; a record is one entity's set of values, one per field.Full definition → is changing quickly; it standardizes how clients interact with agents instead.
GitHub replaced the Copilot Chat extension, over 400,000 lines of TypeScript tied to one VS Code window and the extension API, with a new harness built on the Copilot SDK that runs as a standalone agent host.
Two independent hosts implement AHP, VS Code's in TypeScript and GitHub's in Rust. Reconciling them exposed protocol gaps, such as Terminal and shellA text interface for navigating files and running programs.Full definition → output not backed by a PTY, and bad assumptions, like VS Code's client expecting a fixed session URI structure.
Terms in this piece · Glossary
Model Context Protocol (MCP) — A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.
Debugging — Following a failure back along the data path to the place where the data first goes wrong.
Field — One named piece of a record, such as name or approved_on; a record is one entity's set of values, one per field.
Terminal and shell — A text interface for navigating files and running programs.