Skip to main content

Crate edgecrab_acp

Crate edgecrab_acp 

Source
Expand description

§edgecrab-acp

ACP (Agent Communication Protocol) server for IDE integration.

WHY ACP: Editors (VS Code, Zed, JetBrains) communicate with EdgeCrab via the Agent Communication Protocol — a JSON-RPC 2.0 protocol over stdio. This crate implements the server side.

┌──────────┐   JSON-RPC/stdio   ┌──────────────┐
│  Editor  │ ◄─────────────────► │ edgecrab-acp │
│          │                     │   ├ protocol  │ ← wire types
│  VS Code │                     │   ├ session   │ ← session mgr
│  Zed     │                     │   ├ permission│ ← approval bridge
│  JBrains │                     │   └ server    │ ← dispatch loop
└──────────┘                     └──────────────┘

Modules§

permission
ACP Permission model — tool approval bridge for editor integration
protocol
ACP Protocol types — JSON-RPC 2.0 message structures
server
ACP Server — JSON-RPC 2.0 over stdio transport
session
ACP Session Manager — maps session IDs to agent state