# Repository Briefing: ClaudioDrews/memory-os
> Source: https://repoforai.com/repo/ClaudioDrews/memory-os (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/ClaudioDrews/memory-os
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: B (63/100 · Maintenance 20/35 · Adoption 17/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI
- **Momentum**: 1,398 ★ total (+0 24h / +2 7d) · 130 forks
- **Topics**: `ai-memory`, `context-injection`, `docker`, `ground-truth`, `hermes-agent`, `local-first`, `open-source`, `persistent-memory`, `qdrant`, `rag`, `self-hosted`, `vector-database`
- **When to Use**: Best for: Teams already running Hermes Agent that repeatedly revisit the same projects and want self-hosted history retrieval, a structured fact store, and a curated wiki. Skip if: Workspace notes are enough, the application needs a framework-neutral memory backend, or the team cannot operate the extra services and validate what the agent learns from past sessions.

## Overview
```text
### Architecture & Core Mechanics
Memory OS is a Hermes-specific memory and retrieval stack, not a replacement database engine. Its seven layers give different forms of memory separate storage and retrieval paths: Markdown workspace files for every-turn context, SQLite FTS5 session history in state.db, structured facts in memory_store.db, cross-session Fabric recall, Qdrant vector retrieval, a curated wiki, and a Ground Truth policy that ranks injected sources in the prompt.

The bundled icarus/ fork extends Hermes with LLM-assisted session extraction, recall tools, and injection from Qdrant, sessions, and facts alongside Fabric. Vault Curator v3 handles wiki metadata, linking, and index generation. The Python host dependencies include qdrant-client and fastembed, plus redis and arq for the queue and worker stack. Ground Truth governs how the agent uses retrieved material; it is not a separate store or an independent fact verifier.

### Key Capabilities & Differentiators
Qdrant pairs 4,096-dimensional cosine vectors with BM25 sparse retrieval. Its four-stage fallback runs from hybrid to dense to lexical to SQLite, preserving a lookup path without assuming that all modes return equivalent results. The fact store uses SQLite, HRR, and FTS5, with entity resolution and a feedback loop that updates trust scores. A weekly decay scan and semantic merging above 0.92 cosine similarity help control memory growth.

Fabric exposes 16 tools, including fabric_recall, fabric_write, and fabric_brief. Retrieval gates and per-session deduplication limit repeated context, while the Ground Truth policy tells Hermes to use ranked injected records rather than re-querying by default. Hermes can connect to OpenRouter, OpenAI, Anthropic, or Ollama; that flexibility applies to LLM inference, while the Qdrant retrieval setup still has a concrete vector-dimension requirement.

### Trade-offs & Limitations
Compared with stock Hermes, the clearest reason to adopt Memory OS is to recover past decisions across sessions instead of keeping everything in workspace notes. The price is more state to operate: Qdrant, Redis, a background worker, and a Hermes-specific Icarus fork that is not upstream-compatible. For a non-Hermes application, first compare the cost of adapting this integration with adding a framework-neutral memory layer to the existing stack.

The Ground Truth hierarchy can avoid redundant tool calls, but it does not make extracted facts true. Stale or misattributed records can have more influence once the agent is told to trust them; test corrections on real histories and check that semantic merges preserve distinctions that matter. The MIT license is permissive, but comparisons with mem0, Zep, or Letta should turn on independently checked deployment options and integration costs, not on an assumption that those projects require a cloud service.

### Hardware & Deployment Guide
Run it alongside Hermes Agent with Python 3.11+ and Docker infrastructure for Qdrant, Redis, and an ARQ worker. The tree includes setup.sh, .env.example, QUICKSTART.md, docker/, and infrastructure/. The memory services can stay on the host while Hermes uses either a local model through Ollama or a hosted API. Local storage does not imply offline inference: a hosted provider may receive session text for extraction or memory context in prompts, depending on the configured path.

Size disk and RAM for retained sessions, Qdrant indexes, and wiki data; size compute for embedding, worker concurrency, and any local LLM. There are no published sizing figures in the available material. With no tagged release listed, pin a tested commit and verify the Hermes integration, backup and restore, and retrieval fallback before relying on it for durable memory.
```

## Key Capabilities
```text
- Workspace and sessions: MEMORY.md, USER.md, and CREATIVE.md provide per-turn context; state.db adds SQLite FTS5 search over conversations.
- Fact store: memory_store.db combines SQLite, HRR, FTS5, entity resolution, and feedback-adjusted trust scores.
- Fabric integration: A bundled, upstream-incompatible Icarus fork exposes 16 tools and adds LLM-assisted session extraction and multi-source injection.
- Retrieval fallback: Qdrant combines 4,096-dimensional cosine vectors with BM25 sparse retrieval, then falls back from hybrid to dense to lexical to SQLite.
- Memory maintenance: A weekly decay scan and cosine-similarity merges above 0.92 manage the retrieval store; Vault Curator v3 adds wiki metadata, links, and indexes.
- Context policy: Retrieval gates and per-session deduplication limit repeated context; Ground Truth ranks injected sources for the agent.
```

## Quick Start / Clone
```bash
git clone --depth 1 https://github.com/ClaudioDrews/memory-os.git
cd memory-os
```
