MemOS Long-Term Memory & Cross-Session Graph Store

MemOS Long-Term Memory & Cross-Session Graph Store

@mem-os/vector-store·v2.4.0·storage

A persistent cognitive memory and cross-session graph store for DeepSeek Harness. Combines working memory, episodic traces, and semantic networks with automated forgetting curves.

Long-Term-Memory · Episodic-Store · Vector-Search · Cognition

GitHubNPM
Installation & Integration
bash
manager:
$ pnpm add @mem-os/vector-store

Architecture

MemOS solves agent amnesia across ephemeral sessions. Standard LLM agents start completely tabula rasa each run, forgetting developer coding styles, architectural patterns, and previous debugging breakthroughs. This plugin implements a tri-tier cognitive memory architecture inside Cordis. Transient working memory maintains active turns, episodic memory logs chronological triumphs and mistakes, and semantic graphs consolidate recurring truths. Automated Ebbinghaus forgetting curves prune stale noise, allowing the agent to continuously compound domain expertise.

Core Features

01

Tri-Tier Cognitive Model: Working context, episodic event logs, and semantic concepts in sync

02

Ebbinghaus Decay Pruning: Fades out stale one-off instructions while reinforcing habitual preferences

03

Multi-Tenant Partitioning: Strictly isolates memory profiles by user ID, workspace, and team

04

Embedded Zero-Config Storage: Runs natively on local SQLite-Vector with zero external database setup

Core Workflow

01

Experience Distillation

Extracts key facts, user preferences, and lesson summaries upon task completion.

02

Hierarchical Ingestion

Classifies memories into chronological episodes or interconnected concepts.

03

Contextual Semantic Recall

Dynamically retrieves salient past memories matching current prompts.

04

Forgetting Curve Decay

Applies time-decay algorithms to prune trivial logs while cementing key insights.

Configuration Parameters Reference (YAML / JSON)

ParameterTypeDefaultDescription
decayRatenumber0.05Time decay factor for memory retention
maxRecallChunksnumber3Maximum salient memory chunks recalled
storagePathstring./.dsh/memories.dbFilepath to local SQLite memory database