The Agent Host Protocol (AHP) is Microsoft’s MIT-licensed wire protocol for a standalone sessions server that gives any number of clients one synchronized view of AI agent sessions, built on immutable state, pure reducers, and write-ahead reconciliation.
AHP claims the one lane the protocol stack left empty, the session itself: MCP covers agent-to-tool, ACP covers editor-to-agent, A2A covers agent-to-agent, and AHP turns a live agent session into a shared resource any client can attach to, with the reference host shipping inside VS Code.
What it is #
A protocol specification plus client SDKs in six languages: Rust (ahp on crates.io), TypeScript (@microsoft/agent-host-protocol on npm), Kotlin (Maven Central), Go, Swift (SwiftPM), and .NET (NuGet), each released independently on its own SemVer track.
The core abstraction is the channel, a URI-identified subscribable resource (ahp-root://, ahp-session:/<uuid>, ahp-chat:/<uuid>, plus terminal and changeset channels) that holds either an immutable state tree or a stateless pub/sub topic.
Clients apply actions optimistically, then reconcile when the host’s echo returns stamped with a monotonic sequence number; the docs place AHP in the lineage of LSP and DAP.
It is agent-agnostic by design, describing client-facing session state without binding clients to a runtime, and an MCP channel exists with MCP relay and LSP relay planned.
MIT licensed, TypeScript, under the microsoft GitHub org, created 2026-03-12.
Status #
Active and shipping: 384 stars, 61 open issues as of 2026-10-04, with commits landing that week and v1.0.0 the latest release (spec, clients, and SDK packages all tagged 1.0.0 on 2026-10-02).
Adoption is real where it counts: the ahp crate records about 269,800 lifetime downloads and the npm package about 412,400 (2026-09-03 to 2026-10-02), both as of 2026-10-04, with weekly npm downloads of 16,160, 46,637, 91,693, and 254,241 across the four weeks ending 2026-10-02.
A member of the VS Code team stated publicly in June 2026 that the team is rebuilding its agent infrastructure on AHP, and the reference host lives at src/vs/platform/agentHost/node in the microsoft/vscode repository.
1.0 shipped on 2026-10-02: the spec, every client, and the SDK packages tagged v1.0.0 the same day, closing the pre-1.0 caveat this note carried since creation.
Strengths #
- Distribution no rival spec has: the reference host ships inside VS Code, the editor a large fraction of working engineers already run.
- A six-language SDK surface published to six package registries, which is more than most protocol projects ever reach.
- A clean core model (immutable state, pure reducers, one totally ordered envelope stream) that ordinary clients can implement.
- The docs carry a doctrine page on AHP and ACP, so the boundary with the closest neighbor protocol is stated by the project itself rather than left to inference.
Cautions #
- Microsoft-controlled: the spec lives in the
microsoftorg with repo-first governance and no foundation, so neutrality is unproven. - 1.0 only landed on 2026-10-02, so the wire format’s stability record is measured in days; conformance work between the TypeScript and .NET clients was literally in flight in August 2026.
- The crates.io download figure includes CI rebuilds, so read it as an upper bound (the same skepticism this corpus applies to vendor benchmarks).
- It is a fifth protocol to track, and the sprawl criticism recorded against ACP applies here too.
Pricing #
Free and open under MIT, nothing to buy. The costs are implementing or operating a host, plus tracking spec churn around the fresh 1.0.
Compared to #
- ACP: both sit in editor-to-agent territory, but ACP drives one agent from one client over stdio while AHP hosts many clients on one synchronized session through a server; choose ACP for harness portability inside your editor, AHP when several surfaces must share a live session.
- MCP: agent-to-tool and complementary by design; AHP’s docs treat MCP as a channel to relay, not a competitor.
- A2A: cross-organization delegation between opaque agents; AHP is single-organization client-to-host and about live shared state rather than task delegation.
Bottom line #
Recommended for tool builders who want a client attached to VS Code agent sessions today, with 1.0’s days-old stability record priced in; not for cross-org delegation or tool integration, where A2A and MCP remain the answers. The disagreeable part: I think AHP will matter more to daily coding work than A2A ever will, because whoever owns the host owns the session, and most engineers already run theirs (VS Code).
Changes #
- 2026-08-30 - Created in the Protocols category, profiling Microsoft’s sessions-server spec with six-language SDKs.
- 2026-09-05 - Moved the npm reference to an explicit window URL because the last-month endpoint serves stale data.
- 2026-09-18 - Refreshed stars, forks, open issues, and download figures (crate 230,121 lifetime, npm 83,129 for 2026-08-18 to 2026-09-17).
- 2026-09-20 - Refreshed stars, forks, open issues, and download figures (crate 233,754 lifetime, npm 103,060 for 2026-08-20 to 2026-09-19) and recorded the mid-September npm download spike; spec v0.9.0 remains the latest release.
- 2026-09-24 - Refreshed stars, open issues, and download figures (crate 246,064 lifetime, npm 123,531 for 2026-08-24 to 2026-09-23); spec v0.9.0 remains the latest release.
- 2026-09-27 - Refreshed stars, open issues, and download figures (crate 252,521 lifetime, npm 157,131 for 2026-08-28 to 2026-09-27); spec v0.9.0 remains the latest release.
- 2026-09-29 - Refreshed stars, open issues, and download figures (crate 257,714 lifetime, npm 175,239 for 2026-08-29 to 2026-09-28); spec v0.9.0 remains the latest release.
- 2026-10-03 - The spec, clients, and SDK packages reached v1.0.0 on 2026-10-02, closing the pre-1.0 caveat; refreshed repository and download figures (crate 268,768 lifetime, npm 412,350 for 2026-09-03 to 2026-10-02, 384 stars, 64 open issues) and added the releases reference.
See also #
- Protocols Feature Matrix - the category comparison this note joins, now with its own AHP column
- MCP - the agent-to-tool layer AHP relays as a channel
- ACP - the closest lane neighbor, and the subject of AHP’s own doctrine page
- A2A - the cross-org layer, and the Ask HN thread where the VS Code team announced the AHP bet
- VS Code + Copilot - the surface whose built-in agent host is the protocol’s reference implementation
References #
https://github.com/microsoft/agent-host-protocol - repository, six-language SDK table, VS Code reference host pointer, MIT license
https://microsoft.github.io/agent-host-protocol/ - docs home: problem framing, host broadcast model, optimistic-apply reconciliation
https://microsoft.github.io/agent-host-protocol/guide/what-is-ahp - channel abstraction, URI schemes, agent-agnostic stance, planned MCP and LSP relay
https://microsoft.github.io/agent-host-protocol/specification/overview - RFC 2119 conventions and the x- extension rule
https://registry.npmjs.org/@microsoft%2Fagent-host-protocol - TypeScript client, 11 versions, latest 1.0.0
https://api.npmjs.org/downloads/point/2026-09-03:2026-10-02/@microsoft/agent-host-protocol - TypeScript client, 412,350 downloads 2026-09-03 to 2026-10-02
https://crates.io/api/v1/crates/ahp - Rust client, 268,768 downloads, latest version 1.0.0, and repository pointer as of 2026-10-03
https://github.com/microsoft/agent-host-protocol/releases - the v1.0.0 spec, client, and SDK tags of 2026-10-02
https://hn.algolia.com/api/v1/items/48582679 - the Ask HN A2A thread containing the VS Code team’s AHP announcement comment (2026-06-18)
https://github.com/microsoft/vscode/tree/main/src/vs/platform/agentHost/node - the reference host implementation inside the VS Code tree