Skip to content

Cross Agent Context

scarecr0w12 edited this page Jun 19, 2026 · 1 revision

Cross-Agent Context Protocol (CACP)

CACP provides shared memory namespaces for multi-agent collaboration. Sessions can link together to share context, detect conflicts, and resolve diverging state.

Architecture

The protocol lives in src/memory/cross-agent-context.ts and provides:

  • Shared Context — namespace-keyed values with version vectors
  • Conflict Detection — when two sessions write different values to the same key, a conflict is flagged
  • Conflict Resolution — accept one session's version
  • Session Linking — group sessions under a shared namespace

API Endpoints

Method Path Description
GET /api/cacp/context?namespace= List shared context entries
POST /api/cacp/context Write to shared context namespace
GET /api/cacp/conflicts List active version conflicts
POST /api/cacp/conflicts/resolve Resolve a conflict by accepting one version
GET /api/cacp/links List linked session groups
POST /api/cacp/links Link sessions together
DELETE /api/cacp/links/:id Unlink a session group

Session Links in Web UI

The Sessions page shows linked sessions under the Linked Sessions section, visible at the bottom of the session list when sessions are linked.

Clone this wiki locally