Toolbox/Agent capabilities

Memory & context

memory layers and context management

41 repositories, most starred first
State of the category

thedotmack/claude-mem Claude‑Mem is the category leader by far and offers a token‑efficient, session‑persistent memory layer with a local worker/web UI — pick it if you want a widely adopted, general-purpose, locally runnable memory. If your team needs a specific tradeoff (reversible compression, production integration, deterministic planning, long‑term learning, or docs-grounding), choose a specialist project instead.

Token-efficient runtime
Teams that must cut API costs and latency need memory systems that compress, sandbox, or proxy prompts without losing relevant context across turns.
Production-grade integrations
Real products need deployable, self‑hostable memory layers with stable APIs, entity linking, multi-agent sharing and skill packaging for easy operational integration.
Long-term learning
Teams building assistants that improve over time need reflection, continual consolidation, and automated skill extraction rather than simple chunked recall.
File & docs grounding
Productivity workflows and code agents require deterministic, file-backed or document-aware memory that preserves provenance and lets agents cite and recover evidence reliably.
Cloud vs portability
Organizations must choose between managed/cloud platforms and fully local/self-hosted stacks for privacy, compliance, and control, so a clear platform tradeoff matters up front.
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
⭐ 101.9k +1624/7d
CLIIDECoding-agent pluginWeb appBYOKAnthropicOpenAIGeminiRelated files & memoryConfigurable filters●●●●●Self-hostable (local worker)●●●●●Your API key for model calls; optional cloud backup to cmem.ai
⭐ 76.5k +1318/7d
CLICoding-agent pluginWeb appBYOKOpenAIAnthropicGeminiFixed providerDiff + related filesDedup & shaping●●●●●Self-hostable●●●●●Local software is free; LLM calls use your API key.
⭐ 67.5k +404/7d
CLIWeb appCoding-agent pluginBYOKOpenAIUser/session onlyMulti-signal retrieval●●●●●Self-hostable●●●●●Your LLM/API key costs; self-host or paid cloud available
⭐ 51.9k +2829/7d
CLIWeb appCoding-agent pluginBYOKOpenAIAnthropicGeminiOllama / localFixed providerRelated contextRerank & filtering●●●●●Self-hostable●●●●●Your LLM API key (or self-hosted models); Hindsight itself can be self-hosted
⭐ 32.6k +436/7d
CLIWeb appCoding-agent pluginBYOKOpenAIWhole-graph memoryFeedback & routing●●●●●Self-hostable●●●●●Your LLM API key, or use Cognee Cloud (managed)
⭐ 31.2k +3502/7d
CLIIDECoding-agent pluginAnthropicGeminiWhole-repo analysisBM25 & sandboxing●●●●●Fully local●●●●●Free, local install
⭐ 29.7k +323/7d
CLICoding-agent pluginWeb appBYOKOpenAIAnthropicGeminiOllama / localDiff + related filesConfidence scoring●●●●●Fully local●●●●●Free to run locally; optional cloud API keys for agent LLMs.
⭐ 28.0k +199/7d
CLIIDECoding-agent pluginCIOpenAIAnthropicFixed providerProject-level contextCompaction & filtering●●●●●Fully local●●●●●Free, open-source; external agent APIs may incur cost.
⭐ 27.5k +119/7d
CLIIDECoding-agent pluginBYOKThree files onlyBasic gating & checks●●●●●Self-hostable●●●●●Free (open-source); agent/model usage may incur costs
⭐ 25.8k +264/7d
CLICoding-agent pluginWeb appBYOKMulti-file sourcesBasic quality checks●●●●●Self-hostable●●●●●Host-dependent; may require API keys or local host resources
⭐ 13.5k +113/7d
CLIWeb appBYOKOllama / localOpenAIGeminiRelated filesEmbedding + Rerank●●●●●Self-hostable●●●●●No keys for demo; real usage requires your OpenRouter + DeepInfra (or other OpenAI-protocol) API keys
⭐ 12.0k +114/7d
CLICoding-agent pluginWeb appBYOKWhole-memory retrievalSmart dedup & feedback●●●●●Fully local capable●●●●●Cloud: API key (hosted); self-host/local available
Ranked by maturity — 7 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/mem0⭐ 67.5k
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

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.

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

Sandboxes large tool outputs and persistently indexes session events (SQLite FTS5 + BM25) so agents retrieve only relevant fragments, drastically shrinking context usage while preserving continuity across many MCP clients.

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.

All repositories (41)

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

⭐101.9k
+1,6247d
TypeScript
1 yr

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

⭐76.5k
+1,3187d
Python
9 mo

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

⭐67.5k
+4047d
Python
3 yrs

Hindsight: Agent Memory That Learns

⭐51.9k
+2,8297d
Python
11 mo

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

⭐32.6k
+4367d
Python
3 yrs

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

⭐31.2k
+3,5027d
TypeScript
8 mo

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

⭐29.7k
+3237d
TypeScript
7 mo

Beads - A memory upgrade for your coding agent

⭐28.0k
+1997d
Go
1 yr

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

⭐27.5k
+1197d
Python
9 mo

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

⭐25.8k
+2647d
Python
6 mo

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

⭐13.5k
+1137d
Python
11 mo

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

⭐12.0k
+1147d
TypeScript
1 yr

Zep | Examples, Integrations, & More

⭐5.0k
+97d
Python
3 yrs

Persistent memory for Claude Code, Codex and 6 other AI agents, stored as plain markdown in your Obsidian vaul…

⭐4.8k
+847d
Python
7 mo

Long-term memory runtime for AI agents — plain Markdown as the source of truth, local ranked retrieval, and an…

⭐4.5k
+1,1357d
Python
1 mo

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

⭐3.8k
+757d
Python
5 mo

Infrastructure for the next generation of voice agents, designed to provide universal memory. It is divided in…

⭐2.6k
+1147d
Python
2 mo

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

⭐2.4k
+437d
TypeScript
6 mo

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

⭐2.1k
+277d
TypeScript
3 mo

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

⭐2.0k
-1447d
JavaScript
2 mo

Self-documenting AGENTS.md

⭐1.5k
+97d
4 mo

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

⭐1.5k
+27d
Python
3 mo

Coding agent memory for Claude Code, Codex, Cursor and 39 more, built from the session history already on your…

⭐1.3k
+717d
Go
3 mo

ClearAI:以本体为纲的原生 DSH 插件 —— 经证据核验的研究长成可浏览的领域本体。 · ClearAI: an ontology-first DSH agent preset — evidence-checke…

⭐1.2k
+2477d
JavaScript
1 mo

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

⭐1.0k
+197d
Python
6 mo

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

⭐968
+37d
3 mo

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 se…

⭐827
+577d
Go
1 mo

Cut your AI coding agent's token bill on three axes: terse prose, YAGNI-first code, and tool-output compressio…

⭐689
+347d
JavaScript
3 mo

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

⭐642
+187d
Go
8 mo

Composable, view-based memory for DeepSeek Harness. Pluggable sources and strategies, with three-tier memory o…

⭐596
+767d
TypeScript
2 mo

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

⭐584
+37d
Python
3 mo

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

⭐577
+107d
JavaScript
4 mo

Local long-term memory for Hermes, Codex, Claude Code, WorkBuddy and dsh agents: one SQLite store, source-back…

⭐424
+1207d
Python
5 mo

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

⭐285
-1377d
Go
3 mo

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

⭐241
+17d
Shell
3 mo

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

⭐224
+87d
Python
1 mo

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

⭐129
TypeScript
2 mo

dsh-sieve: context engineering & token optimization plugin for DeepSeek Harness (DSH) — tool output filtering,…

⭐109
+27d
TypeScript
2 wk

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

⭐71
JavaScript
5 mo

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

⭐62
JavaScript
2 mo

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

⭐24
Python
5 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