Shared Memory for Any Number of Agents
CRDT (Conflict-free Replicated Data Types) let multiple agents write to the same namespace concurrently without coordination. No locks. No conflicts. No data loss.
Three CRDT Primitives
Key-value store. On concurrent writes to the same key, the write with the higher timestamp wins. Best for agent status, configuration, scalar state.
Collaborative list. Multiple agents can add and remove items concurrently. Removals are based on the specific add operation observed — no phantom removes.
Causal ordering tracker. Assigns a logical timestamp to every write. Lets agents determine happens-before relationships across the mesh without a central clock.
Live CRDT Merge Animation
Two agents write to the same key concurrently. Watch the CRDT resolve the conflict automatically.
Memory API
from aisp import AISPClient
client = AISPClient(session_id="session_ffc4a366...")
# LWW-Map: write a key
client.memory.set("default", "task_status", "running")
# LWW-Map: read a key
status = client.memory.get("default", "task_status")
# OR-Set: add to a list
client.memory.set_add("default", "completed_tasks", "task_001")
# Watch for changes (any agent's writes)
for update in client.memory.watch("task.abc123"):
print(f"Key {update.key} changed to {update.value}")Multiple Agents, One Worldview
CRDT memory means your agent fleet always converges to a consistent state — automatically.