zhangfengcdt/memoir
Hierarchical Agent Memory with Git-Like Version Control
What it solves
Memoir addresses the "global variable" problem in AI agent memory, where flat files or opaque vector databases lead to context contamination, high token costs (token rent), and memory drift. It prevents agents from applying irrelevant experimental patterns to stable production environments and provides a way to audit or revert hallucinations without wiping the entire memory store.
How it works
Memoir implements a hierarchical semantic memory system with Git-like version control. Instead of using UUIDs or flat blobs, it organizes memories using semantic paths (e.g., profile.professional.skills.python). It uses a clean architecture separating storage, classification, and search, allowing for O(log n) lookups and memory aggregation. Users can branch, commit, merge, and rollback memories to maintain cryptographic integrity across different agent sessions or project states.
Who it’s for
It is primarily designed for developers building coding agents and personal-assistant agents who need durable, versioned, and transparent long-term memory management.
Highlights
- Git-like Versioning: Supports branching, committing, merging, and rolling back memories.
- Semantic Paths: Uses meaningful hierarchical paths instead of opaque keys for memory organization.
- High Performance: Offers O(log n) lookups and supports multiple search engines, including keyword-based and LLM-powered search.
- Broad Integration: Ships as a plugin for Claude Code, Codex, Hermes, OpenClaw, and as an MCP server for hosts like Cursor, Windsurf, and VS Code.
Related
- Project
matrixorigin/memoriaMemoria is a persistent, Git-like version control layer for AI agent memory, built on MatrixOne, offering snapshots, branches, merges, rollback, semantic search, and self-governance, with cloud and self-hosted options.
- Project
agentic-box/memoraMemora is an MCP memory layer for AI agents, providing persistent, graph-based storage with semantic search, absorb/digest workflows, and multi-database support. It can be installed via pip or as a container, and configured through environment variables and JSON config files.
- Project
MemTensor/MemOSMemOS 2.0 is a Memory Operating System for LLM‑based AI agents. It offers a unified API to store, retrieve, edit, and delete multi‑modal memories (text, images, tool traces) organized as a graph. The system can run as a hosted cloud service (API‑key access) or be self‑hosted via Docker (Neo4j + Qdrant) or a local SQLite plugin. Ready‑made plugins integrate MemOS with OpenClaw, Hermes, and DeepSeek Harness. Benchmarks show it outperforms existing commercial memory products. Licensed under Apache 2.0.
- Dispatch
- Project
moorcheh-ai/memantoMemanto is a Memory Agent — a second AI agent that manages the memories of your other AI agents. It observes agent conversations, extracts durable knowledge, consolidates duplicates, reconciles contradictions, expires stale memories via policies, and briefs agents before they act. It runs locally (Docker + Ollama) or via free cloud, exports to portable Markdown (Open Knowledge Format), imports from competing memory tools, and is MIT-licensed. Key differentiators: it's an agent with judgment rather than a storage API, memories are typed (13 categories), everything is traceable, and forgetting is an explicit reversible policy rather than a manual DELETE. Ships with Python/TypeScript/Go SDKs and a REST API, and connects to 12+ agent tools (Claude Code, Cursor, Codex, etc.) with one command each.