Memory and state
Persistent memory layers that give agents recall across turns and sessions: knowledge graphs, vector stores, and session-capture tools that survive a restart. The state a harness needs but rarely ships with.
| # | Project | Stars | Tier | OSS | Description |
|---|---|---|---|---|---|
| 1 | claude-mem memory | 89.3k | slightly complex | ✅ | Claude Code plugin that captures everything an agent does during a session, AI-compresses it (via claude-agent-sdk), and injects the relevant context into future sessions—session-to-session memory as a drop-in. |
| 2 | Mem0 memorypython | 62.3k | slightly complex | ✅ | Universal memory layer for AI agents: stores user/org/session memory, retrieves on demand. Apache-2.0; the de-facto memory primitive paired with most harnesses in 2026. |
| 3 | cognee memoryragworkflowpython | 29.7k | slightly complex | ✅ | Open-source memory layer for agents: an extract–cognify–load pipeline that turns your data into a queryable knowledge graph plus vector store, so agents recall facts and relationships across sessions instead of re-reading context. |
| 4 | beads memory | 25.8k | mostly simple | ❓ | Portable persistent-memory layer for coding agents: tracks decisions and task state outside the harness's own context window so it survives session resets and model swaps. |