memora: Version-Controlled, Typed Memory for AI Agents – Git for AI Beliefs

✍️ OpenClawRadar📅 Published: June 5, 2026🔗 Source
memora: Version-Controlled, Typed Memory for AI Agents – Git for AI Beliefs
Ad

memora is a CLI tool that version-controls AI agent memory—typed, provenance-tracked, branchable, mergeable. Think git for what the AI believes about your codebase, not file changes. The entire project is ~5k lines of Rust across two crates, producing a single static binary with zero external dependencies (SQLite bundled via rusqlite). Runs on all three major platforms with CI.

Crate Structure

  • memora-core – library with no CLI deps. Types, SQLite store, snapshot engine, 3-way merge, session recording, export adapters.
  • memora-cli – thin clap-based CLI layer on top.

Technical Highlights

  • Clock trait for deterministic tests – no flaky timestamps.
  • Content-addressed IDs via SHA-256 of canonical form strings.
  • Three-way merge with BFS merge-base detection across the full parent DAG.
  • node_versions table that snapshots full node state per commit – enabling diff, rollback, and reversible GC.
Ad

Design Decisions & Open Questions

The author is seeking feedback on several areas:

  • Importance scoring formula for GC and export ranking.
  • Whether the MemorySource enum should be open (currently has an Unknown(String) variant).
  • Remote sync model – currently filesystem-only; the copy_commits_between boundary is where network transport would plug in.

Repository: github.com/harshtripathi272/memora – MIT licensed.

📖 Read the full source: r/openclaw

Ad

👀 See Also