Multi-Agent Swarm Shared State
icx_swarm_stateManages the persistent shared variable namespace (V_t) and mutex leases for collaborative swarms of autonomous agents (Cursor, Claude, Cline, OpenDevin). Reads, writes, or atomic CAS-swaps typed state objects (AST graphs, data tables, audit flags) without prompt re-serialization. Mutating/read operation. Requires X-License-Key authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Variable or lock resource key (required for get, set, swap, delete, lock operations). | |
| value | No | Value payload to store (for set or swap operations; can be JSON string or text). | |
| agent_id | No | Agent identifier for provenance tracking and lease ownership (e.g. 'agent_architect'). | |
| space_id | No | Optional memory space partition (default: 'default'). | |
| operation | Yes | The operation to perform: 'get', 'set', 'swap', 'list', 'delete', 'acquire_lock', 'release_lock'. | |
| expected_version | No | Expected version integer for atomic Compare-And-Swap ('swap' operation). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | description=Error details if operation failed | |
| status | Yes | description=Operation status (ok | error) | |
| swapped | No | description=True if atomic CAS succeeded | |
| variable | No | description=Target variable details | |
| operation | Yes | description=Action performed (get | set | swap | list | lock) | |
| variables | No | description=List of variables in space for list operation |