u/False_Routine_9015

Memoir is a high-performance semantic memory system for AI agents that brings Git-like version control to AI memory management. It replaces opaque vector databases with transparent, versioned, cryptographically secure memory storage using hierarchical semantic paths.

u/False_Routine_9015 — 16 days ago

This is from a post thread here about 8 months ago and I learned a lot of from that discussion!

Today, I ship it - Memoir - Git for AI Memory!

Memoir tracks your git state. When you switch your Claude Code session to a new branch, Memoir automatically switches its internal memory branch to match. The agent's recalled facts are instantly scoped to your current branch. It improves:

Your agent doesn't respect your git state. Context contamination happens every time you git checkout. Without branch-aware memory, your agent tries to apply experimental refactor patterns to stable production hot fixes.

You're paying "token rent" on a flat file. Using MD file as a global store is a cache-killer. Every minor memory update invalidates your entire prefix cache, forcing you to pay full price to re-process your entire conversation.

Your agent's memory is code without version control. Today's AI memory — flat files, vector stores, scratchpads — is treated like an append-only blob. One bad session poisons every future retrieval. Without memoir blame or memoir checkout, there's no way to audit who taught the agent a rule or revert a hallucination without wiping the whole store.

reddit.com
u/False_Routine_9015 — 17 days ago

Today's Coding agents' memory looks like a "global variable" that is an anti-pattern that burns tokens and contaminates context across coding branches.

Memory race conditions If you run parallel agents or share an agent across a team, it's like multiple threads writing to the same global variable without a mutex. One agent "commits" a new pattern, instantly corrupting the context for everyone else.

We are shipping memory "data corruption" as a feature. Memoir tracks your git state. When you switch your Claude Code session to a new branch, Memoir automatically switches its internal memory branch to match. The agent's recalled facts are instantly scoped to your current branch.

GitHub: https://github.com/zhangfengcdt/memoir

Project Website: https://www.memoir-ai.dev/

u/False_Routine_9015 — 17 days ago