Skip to content
Back to search

agent-host-protocol

Synchronized multi-client state for AI agent sessions

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/microsoft/agent-host-protocol with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/microsoft/agent-host-protocol'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/microsoft--agent-host-protocol/badge.svg)](/listings/microsoft--agent-host-protocol)

HTML

<a href="/listings/microsoft--agent-host-protocol"><img src="/api/listings/microsoft--agent-host-protocol/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 69 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. # Agent Host Protocol
  2. A synchronized, multi-client state protocol for AI agent sessions.
  3. **[Read the documentation →](https://microsoft.github.io/agent-host-protocol/)**
  4. ## Overview
  5. The Agent Host Protocol (AHP) defines how a portable, standalone sessions server communicates with its clients. Multiple clients can connect to the server and see a synchronized view of AI agent sessions through immutable state, pure reducers, and write-ahead reconciliation.
  6. ## Client libraries
  7. | Language | Package | Version | Source |
  8. | --- | --- | --- | --- |
  9. | **Rust** | [`ahp`](https://crates.io/crates/ahp) · [`ahp-types`](https://crates.io/crates/ahp-types) · [`ahp-ws`](https://crates.io/crates/ahp-ws) | [![crates.io](https://img.shields.io/crates/v/ahp.svg?logo=rust)](https://crates.io/crates/ahp) | [`clients/rust/`](clients/rust/) · [CHANGELOG](clients/rust/CHANGELOG.md) |
  10. | **TypeScript** | [`@microsoft/agent-host-protocol`](https://www.npmjs.com/package/@microsoft/agent-host-protocol) | [![npm](https://img.shields.io/npm/v/@microsoft/agent-host-protocol.svg?logo=npm)](https://www.npmjs.com/package/@microsoft/agent-host-protocol) | [`clients/typescript/`](clients/typescript/) · [CHANGELOG](clients/typescript/CHANGELOG.md) |
  11. | **Kotlin** | [`com.microsoft.agenthostprotocol:agent-host-protocol`](https://central.sonatype.com/artifact/com.microsoft.agenthostprotocol/agent-host-protocol) | [![Maven Central](https://img.shields.io/maven-central/v/com.microsoft.agenthostprotocol/agent-host-protocol.svg?logo=apachemaven)](https://central.sonatype.com/artifact/com.microsoft.agenthostprotocol/agent-host-protocol) | [`clients/kotlin/`](clients/kotlin/) · [CHANGELOG](clients/kotlin/CHANGELOG.md) |
  12. | **Go** | [`github.com/microsoft/agent-host-protocol/clients/go`](https://pkg.go.dev/github.com/microsoft/agent-host-protocol/clients/go) | [![Go Reference](https://pkg.go.dev/badge/github.com/microsoft/agent-host-protocol/clients/go.svg)](https://pkg.go.dev/github.com/microsoft/agent-host-protocol/clients/go) | [`clients/go/`](clients/go/) · [CHANGELOG](clients/go/CHANGELOG.md) |
  13. | **Swift** | [SwiftPM: `microsoft/agent-host-protocol`](https://github.com/microsoft/agent-host-protocol) | [![Tag](https://img.shields.io/github/v/tag/microsoft/agent-host-protocol?filter=v*&label=SwiftPM&logo=swift)](https://github.com/microsoft/agent-host-protocol/tags) | [package README](clients/swift/AgentHostProtocol/README.md) · [CHANGELOG](clients/swift/CHANGELOG.md) |
  14. | **.NET** | [`Microsoft.VisualStudioCode.AgentHostProtocol`](https://www.nuget.org/packages/Microsoft.VisualStudioCode.AgentHostProtocol) · [`Microsoft.VisualStudioCode.AgentHostProtocol.Abstractions`](https://www.nuget.org/packages/Microsoft.VisualStudioCode.AgentHostProtocol.Abstractions) | [![NuGet](https://img.shields.io/nuget/v/Microsoft.VisualStudioCode.AgentHostProtocol.svg?logo=nuget)](https://www.nuget.org/packages/Microsoft.VisualStudioCode.AgentHostProtocol) | [`clients/dotnet/`](clients/dotnet/) · [CHANGELOG](clients/dotnet/CHANGELOG.md) |
  15. The Rust, Swift, Go, and .NET SDKs ship a `MultiHostClient` for talking to two or more hosts at once (single-host consumers use the same API via `MultiHostClient::single` / `.single(...)` / `hosts.Single(...)` / `MultiHostClient.SingleAsync(...)`). See [Connecting to Multiple Hosts](https://microsoft.github.io/agent-host-protocol/guide/clients-multi-host).
  16. ## Clients
  17. - **[VS Code](https://github.com/microsoft/vscode)** — The built-in Agent Sessions client.
  18. - **[AHPX](https://github.com/TylerLeonhardt/ahpx)** — A CLI and Node.js client.
  19. - **[ahpc](https://github.com/softov/ahpc)** — A terminal client: CLI, interactive TUI, and an MCP server for agents and humans.
  20. - **[WeChat AHP](https://github.com/formulahendry/vscode-wechat-ahp)** — A VS Code extension that connects WeChat to an existing local Agent Host chat.
  21. - **[ahpw](https://github.com/softov/ahpw)** — A web client for any AHP server, run as an ahpd plugin or on its own.
  22. ## Servers
  23. - **[VS Code agent host](https://github.com/microsoft/vscode)** — The reference AHP server implementation ([`src/vs/platform/agentHost/node/`](https://github.com/microsoft/vscode/tree/main/src/vs/platform/agentHost/node)).
  24. - **[pi-ahp](https://github.com/Qusic/pi-ahp)** — An open-source AHP host for the [pi coding agent](https://github.com/earendil-works/pi), exposing pi sessions to AHP clients over WebSocket.
  25. - **[ahpd](https://github.com/softov/ahpd)** — An open-source, plugin-driven AHP server with users, permissions, and usage tracking. Plugins provide native Claude and pi agents, ACP agents, tools and MCP servers, sandboxed computers, a web UI ([ahpw](https://github.com/softov/ahpw)), and more. Includes [`@ahpd/sdk`](https://www.npmjs.com/package/@ahpd/sdk) for building your own host and plugins.
  26. - **[hydra-ahp](https://github.com/smagnuso/hydra-ahp)** — An open-source AHP host for [Hydra](https://github.com/smagnuso/hydra-acp), a multi-client ACP session daemon, exposing Hydra sessions to AHP clients such as VS Code's agent UI.
  27. - **[AHP-ACP Gateway](https://github.com/formulahendry/ahp-acp-gateway)** — A universal AHP WebSocket host that runs configured ACP agents, with persistent sessions, replay and reconnect, permissions, and cancellation.
  28. - **[AgentConnect](https://github.com/agentconnect-md/agentconnect)** — An open-source multi-agent platform that brings Claude Code, Codex and other ACP agents into Slack, Telegram, Discord and webchat, and serves each agent as an AHP 1.0 host over WebSocket.
  29. ## Versioning and releases
  30. Each language client and the spec itself release independently on their own SemVer tracks. See [`docs/specification/versioning.md`](docs/specification/versioning.md) for the protocol-level rules and [`RELEASING.md`](RELEASING.md) for the release mechanics (tag conventions, CHANGELOG / metadata enforcement, required CI environments).
  31. ## Development
  32. ```bash
  33. # Install dependencies
  34. npm install
  35. # Start local dev server
  36. npm run docs:dev
  37. # Build for production
  38. npm run docs:build
  39. # Preview production build
  40. npm run docs:preview
  41. ```
  42. The guide, specification, and reference are versioned. `npm run docs:versions`
  43. (run automatically by `docs:dev` and `docs:build`) materializes the released
  44. versions listed in `docs/.vitepress/versions.ts` from their git tags into
  45. `docs/versions/` (gitignored). The first listed version is served at the root
  46. URLs; `main` is served under `/draft/`.
  47. ## License
  48. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.