foxfire-acp
Utilities for the Agent Client Protocol (ACP): Aether's protocol extensions and the client that UIs use to talk to agents. The crate depends on no Aether agent crates, so ACP clients can use it on their own; with default-features = false it is only the serde wire types, so Aether's agent crates depend on it without pulling in ACP.
Table of Contents
Key Types
aether-- The_aether/*requests and notifications,AetherCapabilities, and the_metaAether reads and writesdisplay_meta,mcp_status,artifact_review,ReasoningEffort-- Wire types carried in tool, MCP status, elicitation, and config option metadataMcpNotification/McpRequest-- MCP message tunneling over ACP- Agent subprocesses -- use upstream
agent_client_protocol::{AcpAgent, AcpAgentConfig, Stdio} AcpClientHandle-- Initialized, cloneable client for typed ACP v2 requestsAcpEvent-- Ordered notifications, including replay updates sent before the resume response;AcpEvent::session_idtells hosts which session an event concernsconversation::Conversation-- Host-independent reduction of one session's events (apply_event) and prompt lifecycle into ordered items (messages, thoughts, tool calls, notices) and turn state; shared byfoxfireand the desktop app
Feature Flags
| Feature | Description | Default |
|---|---|---|
protocol |
The aether extension messages and content helpers, built on agent-client-protocol |
via client |
client |
ACP client and conversation model (for UIs connecting to agents); enables protocol |
yes |
websocket |
Message-oriented WebSocket transport; enables client |
no |
testing |
Public in-memory ACP test peers and transport helpers (enables client) |
no |
WebSocket transport
Enable the websocket feature to use websocket::WebSocketTransport<S> with an already-established WebSocket connection.
examples/fake_agent_server.rs serves the testing crate's fake agent over this transport, choosing a scenario by request path. Run it on aether server's port with cargo run -p foxfire-acp --features testing,websocket --example fake_agent_server.
License
MIT