GitHub
ESC

acp.cr

Crystal implementation of the Agent Client Protocol (ACP). Communicate with AI coding agents over stdio transport using JSON-RPC 2.0 directly from Crystal.

Zero dependencies -- uses only the Crystal standard library.

Overview

acp.cr provides a type-safe Crystal client for the Agent Client Protocol, a JSON-RPC 2.0 based communication standard that enables code editors and tools to communicate with AI coding agents. It supports initialization, authentication, session management, streaming updates, tool calls, and agent-initiated requests -- all over stdio transport.

Features

Installation

Add acp.cr to your shard.yml:

dependencies:
  acp:
    github: hahwul/acp.cr

Then run:

shards install