memory-os

ClaudioDrews/memory-os

A 7-layer memory operating system for Hermes Agent

1.2k
Stars
117
Forks
7
Open issues
14
Watchers
Python MITLast pushed Jun 10, 2026

Overview

memory-os is a local-first, persistent-memory infrastructure for AI agents like Hermes Agent. It includes seven memory layers with automatic context injection and supports various LLM providers.

Categories

Tags

Similar tools

Install

pip install memory-os

README

Memory OS β€” Hermes Agent Memory Operating System

Your agent finally stops forgetting.
Permanent memory. Local memory infrastructure. API-provider agnostic. Surgically token-efficient.

Seven memory layers. Automatic, intelligent context injection. Structured facts with trust scoring. A self-curating wiki pipeline. Semantic search across every conversation you've ever had.

Memory OS turns Hermes Agent into a real long-term collaborator β€” one that remembers your projects, your decisions, your reasoning, and brings exactly the right context back at exactly the right moment. Like talking to a colleague who was there for every session.

Memory infrastructure runs entirely on your machine. Works with any LLM provider β€” OpenRouter, OpenAI, Anthropic, Ollama, or local models. No memory subscription. No vendor lock-in.


What's New in v0.2.0

One-command install. curl -sSL https://raw.githubusercontent.com/ClaudioDrews/memory-os/main/setup.sh | bash sets up the entire stack β€” Docker services, SQLite databases, Icarus plugin, environment β€” in one shot. The 10-step manual guide is now a fallback for troubleshooting.

Community infrastructure. Issue templates (bug report + feature request), PR checklist, and contributing guide. Project is ready for external contributors β€” and already has them.

20+ fixes from systematic audit. Community-driven review across setup, configuration, performance, and resilience. Highlights: provider-agnostic LLM extraction, O(1) path lookups, FTS5-powered session search, semantic dedup at scale, and idempotent database initialization.

Installation verified on real hardware. Smoke tests and ingestion tests ship with the repo. The automated installer has been tested end-to-end β€” including on modest machines where Docker build times exposed UX gaps that are now handled gracefully.


The problem every serious Hermes user knows

You spend hours configuring the agent, teaching it your preferences, solving hard problems together β€” and in the next session it acts like it's meeting you for the first time.

  • Repeating context at the start of every conversation
  • Losing the thread of important decisions made weeks ago
  • Structured facts β€” your stack, your projects, your patterns β€” with nowhere to live
  • Every memory solution you've tried is either cloud-locked or too shallow to matter

After months of hitting these walls in production, I built something that actually works.


What Memory OS is

Not just another plugin. A complete memory operating system β€” 7 layers working in concert, from flat files to a vector database, with surgical context injection, a knowledge pipeline that organizes itself, and an explicit Ground Truth hierarchy that tells the agent to actually use the injected memory.

Designed and refined by someone who ran headfirst into every limitation of stock Hermes and every existing memory solution.

Requirements: Hermes Agent + Docker (Qdrant + Redis + ARQ Worker) + Python 3.11+.
Compatible with any LLM provider Hermes supports β€” OpenRouter, OpenAI, Anthropic, Ollama, and more.


Architecture: 7 memory layers

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  LAYER 1 Β· WORKSPACE                                              β”‚
β”‚  MEMORY.md Β· USER.md Β· CREATIVE.md                               β”‚
β”‚  β†’ Injected into the system prompt every single turn             β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  LAYER 2 Β· SESSIONS                                               β”‚
β”‚  state.db (SQLite + FTS5)                                         β”‚
β”‚  β†’ Full-text search across your entire conversation history       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  LAYER 3 Β· STRUCTURED FACTS                                       β”‚
β”‚  memory_store.db (SQLite + HRR + FTS5 + trust scoring)            β”‚
β”‚  β†’ Durable facts with entity resolution and an automat