Agent Client Protocol (ACP) for Rust

•
1
•

Implements and extends the Agent Client Protocol (ACP) for building bidirectional AI coding agents and editor clients in Rust.

This skill provides a comprehensive framework for working with the Agent Client Protocol (ACP), a JSON-RPC 2.0 based system that facilitates communication between AI coding agents and editors like Zed or VS Code. It offers specialized guidance for implementing both client-side runtimes and agent-side providers in Rust. Developers can leverage this skill to master the full session lifecycle, manage asynchronous streaming notifications via mpsc channels, handle complex stdio transports, and implement dynamic model switching. It is specifically optimized for the agent-client-protocol Rust SDK, providing exact version pinning and trait implementation patterns to ensure high-performance, stable AI integrations.

Key Features

01Rust-specific Agent trait implementation patterns with async-trait support
02Full session lifecycle management including initialization and authentication
03Asynchronous streaming notification handling using mpsc and tokio-util
04Bidirectional JSON-RPC 2.0 stdio transport implementation
05Dynamic model discovery and configuration via SessionConfigOption
061 GitHub stars

Use Cases

01Extending the lab ACP runtime to support new AI model providers and configurations
02Debugging and optimizing JSON-RPC communication between subprocesses and host clients
03Building custom Rust-based AI agents for integration with the Zed or VS Code editors