Agent Client Protocol (ACP)
ox acp exposes oxide-code as an Agent Client Protocol server over newline-delimited JSON-RPC 2.0 on stdin and stdout. The server lives in the crates/ox-acp frontend crate and depends only on ox-core and ox-jsonrpc.
ox acp --model gemini-4-neonox acp --config ~/.config/ox/config.toml -C /path/to/repoox acp accepts the Provider and Workspace flags.
Supported Methods
Section titled “Supported Methods”| Method | Direction | Description |
|---|---|---|
initialize |
Request | Returns protocolVersion, serverInfo, and capabilities |
session/new |
Request | Creates a session with an optional cwd and returns { sessionId } |
session/prompt |
Request | Runs a prompt turn, streams session/update, and returns stopReason |
session/cancel |
Request | Cancels an active prompt turn or acknowledges an idle session |
shutdown |
Request | Acknowledges shutdown and exits the stdio server loop |
session/update |
Notify | Streams agent_message_chunk, agent_thought_chunk, and tool lifecycle |
Streaming Updates
Section titled “Streaming Updates”During session/prompt, ox acp emits session/update notifications:
agent_message_chunk: incremental assistant text (content.type = "text").agent_thought_chunk: incremental reasoning text (content.type = "text").tool_call: tool invocation start withtoolCallId,title,status = "in_progress", andrawInput.tool_call_update: tool completion withtoolCallId,title,status = "completed"or"failed", andrawOutput.
Stop Reasons
Section titled “Stop Reasons”session/prompt resolves with { "stopReason": "..." }:
end_turn: model finished the turn normally.max_tokens: model hit the configured output token limit.max_turn_requests: agent reached--max-turns.cancelled: cancelled bysession/cancelor client EOF.