MemForks Documentation
Git for AI agent memory
MemForks gives AI agents branch-aware, verifiable, mergeable memory. Fork an experiment, let it diverge, diff what it learned, and merge trusted knowledge back into main.
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