crdt-synchronizer — Claude Code subagent: how it works and setup
crdt-synchronizer — a Claude Code subagent for conflict-free state synchronization across nodes using CRDT structures and vector clocks.
no license ★ 850 updated 2026-10-26
.claude/agents/crdt-synchronizer.mdWhat crdt-synchronizer does
This subagent guides the creation and synchronization of conflict-free data structures across independent peers. It manages state convergence without centralized locking, tracking operation history through vector clocks and computing delta updates instead of shipping full payloads.
The implementation covers standard types: G-Counter, PN-Counter, OR-Set, LWW-Register, OR-Map, and RGA. Merging relies on a causal tracker and deterministic tie-breaking logic.
Notice that GCounter throws an error on negative values, making PNCounter mandatory whenever decrements are required.
What it helps with
- build an
OR-Setstructure for concurrent element tracking - coordinate multi-node counters using
G-CounterorPN-Counter - send incremental state deltas instead of full database snapshots
- order concurrent distributed updates through vector clocks
Example prompts for the agent
- Help me implement an
OR-Setwith tombstone tags for distributed updates - Write merge and compare logic for two
GCounterreplicas - Configure delta state computation using vector clocks across nodes
How to install crdt-synchronizer
Manually: put the files in place
.claude/agents/crdt-synchronizer.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/crdt-synchronizer.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/crdt-synchronizer.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about crdt-synchronizer
How to install crdt-synchronizer in Claude Code?
Add the subagent definition file to .claude/agents/crdt-synchronizer.md inside your repository root.
What does crdt-synchronizer do?
It assists in setting up replicated data types that converge deterministically across network peers without merge conflicts.
Which data structures are supported?
The subagent provides implementations for G-Counter, PN-Counter, OR-Set, LWW-Register, OR-Map, and RGA.