Implementations
These projects implement or consume the Agent Host Protocol.
Clients
- Swift — Add
https://github.com/microsoft/agent-host-protocolas a Swift Package Manager dependency to use theAgentHostProtocollibrary. See the Swift client for an example iOS client. ThePackage.swiftmanifest lives at the repository root because SwiftPM only resolves manifests at the root of a remote git repo; the actual Swift sources live underclients/swift/AgentHostProtocol/. - Rust — See the Rust client crates for the
ahp,ahp-types, andahp-wscrates. - TypeScript —
npm install @microsoft/agent-host-protocolfor the wire types, reducers,AhpClient, andWebSocketTransport. See the TypeScript client. Browser-friendly; works in any environment that exposes the globalWebSocket. - AHPX — A command-line and Node.js client for connecting to AHP servers, managing sessions, and sending prompts.
- VS Code — VS Code includes Agent Sessions client code for working with AHP hosts.
Servers
- VS Code agent host — The reference AHP server implementation. Start in
src/vs/platform/agentHost/node/when browsing the repository.