# crdt-synchronizer

crdt-synchronizer — a Claude Code subagent for conflict-free state synchronization across nodes using CRDT structures and vector clocks.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 850 repo stars
- Author: ruvnet
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ruvnet/agentic-flow/tree/HEAD/.claude/agents/consensus/crdt-synchronizer.md
- Updated: 2026-10-26
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/crdt-synchronizer

## What it 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.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/agents/crdt-synchronizer.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/crdt-synchronizer.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/crdt-synchronizer.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ruvnet/agentic-flow/tree/HEAD/.claude/agents/consensus/crdt-synchronizer.md

## When to use it
- build an `OR-Set` structure for concurrent element tracking
- coordinate multi-node counters using `G-Counter` or `PN-Counter`
- send incremental state deltas instead of full database snapshots
- order concurrent distributed updates through vector clocks

## Example prompts
- Help me implement an `OR-Set` with tombstone tags for distributed updates
- Write merge and compare logic for two `GCounter` replicas
- Configure delta state computation using vector clocks across nodes

## Similar
- [agent-crdt-synchronizer](https://affpapa.org/en/nevibecode/skills/agent-crdt-synchronizer.md) — skill · ★ 189 repo stars
- [websocket-engineer](https://affpapa.org/en/nevibecode/agents/voltagent-websocket-engineer.md) — subagent · ★ 6505 repo stars
- [microservices-patterns](https://affpapa.org/en/nevibecode/skills/microservices-patterns.md) — skill · 13176 installs
- [ddia-systems](https://affpapa.org/en/nevibecode/skills/ddia-systems.md) — skill · 5800 installs
- [kafka-development](https://affpapa.org/en/nevibecode/skills/kafka-development.md) — skill · 1200 installs
- [redis-state-management](https://affpapa.org/en/nevibecode/skills/redis-state-management.md) — skill · 490 installs

From the same set: [ruvnet/agentic-flow](https://affpapa.org/en/nevibecode/by/ruvnet/agentic-flow.md) — 76 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
