Toolbox/Agent capabilities

Memory & context

memory layers and context management

35 repositories, most starred first
State of the category

thedotmack/claude-mem thedotmack/claude-mem is the de facto leader by adoption and offers a broadly useful, token-efficient, session-persistent memory layer with multi-model support; pick it if you want a well‑trodden, general-purpose starting point. Teams build alternatives because they need radically different tradeoffs — stricter local privacy, DB-backed graphs, production integrations, extreme compression, or explicit planning/learning behaviors.

Local-first Deployments
Many teams need fully local or self-hostable memory because of privacy, latency, or offline requirements, so projects focus on deployability and local-only operation that enterprise or sensitive workflows require.
Token Efficiency
Reducing prompt and output token use matters to teams running at scale or on expensive models, so projects provide reversible compression, sandboxing, and selective retrieval to shrink context and costs.
Structured Knowledge
Teams that need precise citations, document hierarchies, or dependency-aware task state favor graph- and file-backed memories rather than flat vector stores for reliable evidence and programmatic access.
Production Integrations
Operational teams want turnkey connectors, skill packaging, and mission-ready memory layers that integrate with agent frameworks and CI/CD, which drives projects that prioritize SDKs, skills, and deployment patterns.
Planning & Cognition
Long-horizon workflows, deterministic session recovery, and systems that reflect or extract reusable procedures need specialized memory behaviours (reflection, scheduled upkeep, crash-proof plans), so projects add planner-friendly persistence and learning routines.
Find your fit

Which one matches your setup?

Answer any of the questions — the shortlist updates as you go. Recommendations come from the capability passports below, nothing else.

Where should reviews happen?
Can code leave your infrastructure?
What matters most?
Model access?
Pick at least one answer to get a shortlist.
Side by side

Comparison matrix

Axes are extracted from each project's docs by our review pipeline; the maturity score is computed from stars, growth and commit activity — not an opinion. Click a column to sort.

Runs inModelsContextCost to run
93.1k +686/7d
CLIIDECoding-agent pluginWeb appBYOKAnthropicOpenAIGeminiRelated files & memoryConfigurable filtersSelf-hostable (local worker)Your API key for model calls; optional cloud backup to cmem.ai
68.9k +1005/7d
CLICoding-agent pluginWeb appBYOKOpenAIAnthropicGeminiFixed providerDiff + related filesDedup & shapingSelf-hostableLocal software is free; LLM calls use your API key.
64.7k +444/7d
CLIWeb appCoding-agent pluginBYOKOpenAIUser/session onlyMulti-signal retrievalSelf-hostableYour LLM/API key costs; self-host or paid cloud available
30.5k +143/7d
CLIWeb appCoding-agent pluginBYOKOpenAIWhole-graph memoryFeedback & routingSelf-hostableYour LLM API key, or use Cognee Cloud (managed)
28.0k +346/7d
CLICoding-agent pluginWeb appBYOKOpenAIAnthropicGeminiOllama / localDiff + related filesConfidence scoringFully localFree to run locally; optional cloud API keys for agent LLMs.
26.9k +200/7d
CLIIDECoding-agent pluginCIOpenAIAnthropicFixed providerProject-level contextCompaction & filteringFully localFree, open-source; external agent APIs may incur cost.
26.6k +224/7d
CLIIDECoding-agent pluginBYOKThree files onlyBasic gating & checksSelf-hostableFree (open-source); agent/model usage may incur costs
22.4k +858/7d
CLIWeb appCoding-agent pluginBYOKOpenAIAnthropicGeminiOllama / localFixed providerRelated contextRerank & filteringSelf-hostableYour LLM API key (or self-hosted models); Hindsight itself can be self-hosted
20.3k +138/7d
CLIIDECoding-agent pluginAnthropicGeminiWhole-repo analysisBM25 & sandboxingFully localFree, local install
12.7k +187/7d
CLIWeb appBYOKOllama / localOpenAIGeminiRelated filesEmbedding + RerankSelf-hostableNo keys for demo; real usage requires your OpenRouter + DeepInfra (or other OpenAI-protocol) API keys
11.2k +118/7d
CLICoding-agent pluginWeb appBYOKWhole-memory retrievalSmart dedup & feedbackFully local capableCloud: API key (hosted); self-host/local available
4.3k +84/7d
CLIAnthropicOpenAIGeminiWhole-vault analysisRewrite & reconcileCloud APIs (your keys)Your API keys + optional paid services
Ranked by maturity — 6 more in the full catalog below.
At a glance

Capability profiles

Six axes, 0–5 each. The shape tells you the strategy: a wide hexagon is a generalist, a spike is a specialist. Showing the 8 most established — the rest are in the full catalog.

ContextNoiseCustomPrivacyModelsMaturity

Claude-Mem pairs a Claude Code–focused persistent memory with progressive-disclosure search tools and a local worker/web UI to deliver token-efficient, session-persistent context.

ContextNoiseCustomPrivacyModelsMaturity

Local-first, reversible context compression that both shrinks prompts and actively reduces model output tokens via a drop-in proxy and cross-agent memory.

mem0ai/mem064.7k
ContextNoiseCustomPrivacyModelsMaturity

Provides a production-ready, self-hostable memory layer with a token-efficient memory algorithm, entity linking, and agent skills for easy integration into AI assistants.

ContextNoiseCustomPrivacyModelsMaturity

Runs the full memory layer (graph, vectors, sessions) on a single self-hosted Postgres-backed stack, combining vector search and evolving knowledge graphs.

ContextNoiseCustomPrivacyModelsMaturity

Provides a local, multi-agent persistent memory server with hybrid retrieval and confidence scoring that shares memories across any MCP/HTTP agent.

ContextNoiseCustomPrivacyModelsMaturity

A Dolt-backed, version-controlled structured memory graph that gives coding agents dependency-aware, persistent task memory with semantic compaction for long-horizon workflows.

ContextNoiseCustomPrivacyModelsMaturity

Provides crash‑proof, filesystem-backed three-file planning with per-turn re-injection and an opt-in completion gate, enabling deterministic session recovery after /clear across 60+ agents.

ContextNoiseCustomPrivacyModelsMaturity

Hindsight provides a learning-focused agent memory with biomimetic data structures and a reflect operation to build mental models, going beyond simple RAG-style recall.

All repositories (35)

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, com…

93.1k
+6867d
JavaScript
1 yr

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen…

68.9k
+1,0057d
Python
8 mo

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists.…

64.7k
+4447d
Python
3 yrs

Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory acros…

30.5k
+1437d
Python
3 yrs

#1 Persistent memory for AI coding agents based on real-world benchmarks

28.0k
+3467d
TypeScript
6 mo

Beads - A memory upgrade for your coding agent

26.9k
+2007d
Go
10 mo

Persistent file-based planning for AI coding agents and long-running tasks. Crash-proof markdown plans, sessio…

26.6k
+2247d
Shell
8 mo

Distilly — Distill how they think into reusable Skills for any Agent or Bot. Formerly Colleague Skill(原同事 Skil…

24.3k
+2617d
TypeScript
5 mo

Hindsight: Agent Memory That Learns

22.4k
+8587d
Python
10 mo

Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memo…

20.3k
+1387d
TypeScript
6 mo

One portable memory layer for every AI agent: local-first, Markdown-native, user-owned, and self-evolving acro…

12.7k
+1877d
Python
10 mo

Self-evolving memory OS for LLM & AI Agents: ultra-persistent memory, hybrid-retrieval, and cross-task skill r…

11.2k
+1187d
TypeScript
1 yr

Zep | Examples, Integrations, & More

4.9k
+187d
Python
3 yrs

Persistent memory for Claude Code and 6 other CLI agents, stored as plain markdown in your Obsidian vault. Sto…

4.3k
+847d
Python
5 mo

Knowhere extracts, parses, and outputs structured chunks ready for AI Agents and RAG.

2.9k
+1807d
Python
4 mo

Unbounded context. Memory that manages itself. One session, for life. The hippocampus for coding agents, part…

2.0k
+1137d
TypeScript
5 mo

Non-destructive compression gateway for AI coding agents. Cuts token bills 25% on turn 1 to past 85% in long o…

1.5k
+87d
Python
1 mo

Self-documenting AGENTS.md

1.4k
+247d
3 mo

🍙 A personal AI agent & local memory hub for all AI agents, gives every AI one shared, fully controlled memo…

1.2k
+687d
TypeScript
1 mo

A memory plugin for AI coding that turns engineering experience, repository knowledge, and your way of working…

1.2k
+1817d
JavaScript
1 mo

Up to 71.5x fewer tokens per session on Claude Code with Obsidian + Graphify. Persistent memory, codebase know…

963
+127d
Python
4 mo

A self-improving skill for AI coding agents (Claude Code, Cursor, AGENTS.md): recognize a hard-won golden path…

947
+47d
2 mo

Memory for coding agents built from the session history already on disk: Claude Code, Codex, Cursor, Copilot C…

770
+377d
Go
1 mo

Encrypted, fully offline agentic memory. One click install, GUI w/ memory map, all OS and agents. Superior mem…

590
+67d
Python
1 mo

LLM-supervised persistent memory for AI agents — graph-based recall, cross-session knowledge, single binary. W…

555
+217d
Go
6 mo

A persistent, file-based memory layer for coding agents — give Claude Code, Codex & others a project brain (du…

528
+137d
JavaScript
2 mo

Persistent, provider-neutral memory for Codex, Claude Code, OpenCode, Pi, and MCP coding agents.

421
-127d
Go
1 mo

Composable three-tier memory control plane for DeepSeek Harness: persistent runtime context, searchable projec…

326
+577d
TypeScript
3 wk

Hermes Agent memory plugin/provider for scope-aware recall, SQLite truth, LanceDB semantic search, and hybrid…

263
+67d
Python
3 mo

Turn project work into reusable knowledge — an AI-agent skill for Claude Code & Codex

223
+77d
Shell
2 mo

Noema long-term memory plugin for DSH: durable, inspectable agent memory with recall tools and a settings page…

130
+37d
TypeScript
3 wk

CDAF (Cached Descriptive Asset Files) - open sidecar format for video so AI agents stop re-analyzing the same…

114
+177d
Python
1 wk

Most AI agents forget you the moment the tab closes. Constellation Engine gives them a hippocampus — a living…

64
+27d
JavaScript
3 mo

Cross-agent plugin for manually excluding and editing AI conversation context, with search, filtering, hide/re…

54
TypeScript
2 wk

SOUL.md governance framework for Hermes Agent — structured memory, skill management, and operational rules

20
Python
3 mo
Don't want to self-host?

Hosted alternatives

If running your own reviewer is more ops than you want, these managed services cover the same job.

Mem0 Platform

The managed side of mem0: the same memory API run for you, with the vector store, extraction and retrieval hosted instead of self-operated.

Try Mem0 Platform
Zep Cloud

Hosted long-term memory for agents built on a temporal knowledge graph, so recall and fact updates come as a service rather than infrastructure you maintain.

Try Zep Cloud
Letta Cloud

The managed runtime for stateful agents from the Letta (MemGPT) team: persistent memory and agent state kept for you instead of hosting the server and its store.

Try Letta Cloud

More in Agent capabilities