MemForks Documentation
Git for AI agent memory
Branch-aware, verifiable, mergeable memory anchored on Sui. Fork an experiment, let it diverge, diff what it learned, then merge trusted knowledge back into main.
Verifiable
Every memory is anchored on Sui and stored in Walrus — provenance you can audit, not trust blindly.
Branch-aware
Agents inherit memory along lineage. Branches diverge cleanly and stay queryable, never contaminated.
Mergeable
Promote what an experiment learned back to main through governed, reviewable merges — not blind writes.
Explore the docs
Get Started
Install the CLI, provision a memory tree, verify setup, and make your first branch commit.
02Concepts
Understand MemWal vs MemForks, branch lineage, commits, diffs, and merge governance.
03Architecture
Explore the Sui, Walrus, MemWal, SDK, CLI, and adapter layers that power the system.
04Core SDK
Use @memfork/core directly for branch, commit, recall, delegate, and merge flows.
Vercel AI SDK
Add branch-aware recall and auto-commit to chat, streaming, and structured generation.
06LangGraph
Persist graph checkpoints to MemForks and map each LangGraph thread to a memory branch.
07CLI
Provision trees, inspect status, create branches, recall facts, commit memory, and propose merges.
08Examples
Run the Next.js chat app and LangGraph research workflow to see MemForks in practice.
09Operations
Configure hosted apps, troubleshoot credentials, and run gas sponsorship infrastructure.
Memory with lineage
MemWal stores encrypted memories and recalls them by meaning. MemForks adds the version-control layer: which branch learned a fact, what it inherited, and how knowledge should merge back.
main: c1 ── c2 ── c3 ─────────── c7
\ /
hypothesis-a: c4 ── c5 ──────
\
hypothesis-b: c6 abandoned, still queryable