Cryptographic knowledge provenance for
AI agent swarms
MemoryMerge is the only agent memory framework where you can cryptographically prove what an AI agent knew at any point in time. Pluggable adapters. OpenClaw-native. Powered by 0G Storage, 0G Compute, and 0G Chain.
Built different. Built to last.
MemoryMerge turns state into infrastructure. Agents write facts, tasks, and insights to 0G Storage; reflection compresses that memory; 0G Chain proves it forever.
The full execution flow
From goal input to permanent archival, every step is transparent, auditable, and fully resumable.
Planner reads goal, creates tasks
PlannerPlanner agent loads the swarm context from 0G Storage KV, reads the current goal, and writes 3 concrete subtasks back to 0G Storage.
Researcher executes tasks
ResearcherResearcher reads pending tasks, performs research using 0G Compute inference, writes discovered facts, and marks tasks pending_review.
Critic scores the findings
CriticCritic evaluates each research result, assigns confidence scores, checks contradictions, and marks tasks complete.
Reflection engine fires
ReflectionEvery N turns, the reflection engine pulls all facts from 0G Storage KV, compresses them through 0G Compute, writes insights, and archives a snapshot to 0G Storage Log.
Snapshot anchored on-chain
0G ChainThe Merkle root of each snapshot is anchored to the MemoryAnchor contract on 0G Chain, providing a permanent proof of memory integrity.
Swarm resumes from anywhere
Any AgentStop the process and restart with the same SWARM_ID. All memory is restored from 0G Storage automatically.
Quick Start & SDK Reference
Get a MemoryMerge swarm running in under 10 minutes.
Installation
Environment Setup
Copy the example env file and fill in your values. All 0G credentials come from the Galileo testnet.
0G Compute Setup
One-time setup. Funds your account and gets API credentials for the inference endpoint.
Run the Example Swarm
Session continuity: Run the same command again with the same SWARM_ID — the swarm loads all memory from 0G Storage and continues where it left off.
SDK Reference
Contract
Merkle Fact Verification
The only agent memory framework with cryptographic proof of agent knowledge.
Run the demo: npm run verify — proves a real fact, rejects a fake one, prints the Merkle root.