agent-memory vs deja-vu
Persistent memory for coding agents compared
agent-memory and deja-vu help coding agents reuse project context across sessions. agent-memory turns captured notes into tiered memory, while deja-vu indexes existing agent histories for local search and recall.

agent-memory: Give Coding Agents Persistent, Tiered Memory
A TypeScript memory system for coding agents, built around XState workflows. It turns session notes into tiered memory and generates AGENTS.md context for harnesses such as Amp, Cursor, and Codex.

deja-vu: Search Coding-Agent History for Reusable Memory
deja-vu is a Go-based local memory tool that indexes existing session history from Claude Code, Codex, Cursor and 39 more coding agents. It provides search, MCP recall and hooks without requiring an LLM, so agents can reuse earlier decisions and fixes.
| agent-memory | deja-vu | |
|---|---|---|
| Language | TypeScript | Go |
| License | — | MIT |
| Stars | 7 | 1.2k |
| Forks | 0 | 128 |
| Last analyzed | Oct 28, 2026 | Oct 19, 2026 |
Key differences
- agent-memory is a TypeScript system that captures journal entries and consolidates them into topic memory; deja-vu is a Go tool that indexes existing session files.
- agent-memory organizes memory into hot, warm, and cold tiers and generates AGENTS.md context; deja-vu offers search, MCP recall, and hooks over indexed histories.
- agent-memory supports harnesses including Amp, Cursor, and Codex; deja-vu indexes histories from Claude Code, Codex, Cursor, and many other agents.
- agent-memory’s consolidation workflow uses an LLM command; deja-vu supports local lexical search and MCP recall without an LLM, with optional semantic search via embeddings.
- agent-memory is marked quiet, with no commits in the last 90 days and no release in over a year; deja-vu has frequent commits and releases but is described as changing quickly.
- deja-vu is MIT-licensed and lists Go 1.25, Node.js 18 or later, and Docker among its requirements; agent-memory provides filesystem storage and adapter interfaces.
Choose agent-memory if you…
- want to turn session notes into organized, tiered project memory.
- need generated AGENTS.md context with hot memories inlined and warm memories listed.
- prefer a filesystem-based workflow with a CLI and harness adapter interfaces.
Choose deja-vu if you…
- want to search existing session histories across multiple coding agents.
- need local lexical search, MCP recall, or automatic recall hooks without requiring an LLM.
- want tools for recovering prior fixes, decisions, commands, and project context from agent history.
Compare the numbers side by side, or add more projects
This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.