Overview of the DiffMem Service
mainDiffMem is a FastAPI service that provides git-native persistent memory for AI agents. Instead of using a vector database or embeddings, it uses a bare git repository where each user is assigned an isolated orphan branch (user/{id}). Memory is stored as Markdown files, and history is maintained through the git commit graph.
Key Characteristics:
- Storage: Uses git worktrees mounted on demand for each user.
- Data Format: Memory is stored in Markdown with YAML frontmatter.
- No Vector DB: Relies on git history and structured Markdown for context retrieval.
- Isolation: Each user has a dedicated branch and worktree.