Skip to content

Protocols

fox-agent speaks the Agent Client Protocol (ACP), in both directions, over the
same runTurnCore the TUI uses. There is no second loop.

ACP
Full nameAgent Client Protocol
Transportstdio (JSON-RPC)
Used tobe driven by an editor; drive a spawned child
fox-agent as serverfox --acp
fox-agent as clienttask with an [agents.x] command
Shape chosen bycommand in config

The rule of thumb: MCP connects an agent down to its tools; ACP connects an
agent across to peers.
ACP when the peer is a process fox-agent can spawn.

Sessions are shared, not shimmed

The protocol maps onto the same per-session SQLite databases the TUI writes. A
session started in Zed shows up in fox ls and resumes in the TUI.

Binds local by default

--acp is stdio, so the editor owns the process; fox gateway binds
local-only. Both run tools with full machine access. See
Security before exposing either one
to anything.

  • ACP — the server, the client, and the acceptance check that cannot be
    faked by in-process tests.