What is Engram?
Engram gives any AI model human-like memory that persists across sessions, systems, and restarts. Connect your AI clients to the same Engram store to share memories across tools.
Most AI tools forget what happened in earlier sessions. Engram stores what your AIs learn and returns relevant memories when a client requests context. The Ollama proxy and Claude Code’s local prompt hook can request it automatically.
┌─ You tell Claude Code about your stack ──→ stored as semantic memory
└─ Next day, different tool, new session ──→ that tool can recall it from Engram
Features
| Feature | Description |
|---|
| 3 Memory Types | Episodic (events), Semantic (facts + knowledge graph), Procedural (trigger→action patterns) |
| 7-Step Recall Pipeline | Embed → Vector search → Graph expand → Score → Rank → Truncate → Log |
| Hybrid Search | Opt in to combine vector similarity with SQLite FTS5 keyword matches in search and recall |
| Memory Decay & GC | Ebbinghaus forgetting curve, auto-archive stale memories, episodic→semantic consolidation |
| Memory Reflection | AI-driven insight engine — the AI connected over MCP reasons over your memories to surface patterns, knowledge gaps, trends, and contradictions. Engram needs no separate LLM or API key for reflection. |
| Atlas dashboard | Map, Recall, Review, Timeline, Insights and Settings; light/dark and ⌘K command palette |
| Optional Namespaces | Stdio MCP scopes to the current project by default. Choose unscoped access, filtering or strict isolation |
| Contradiction Detection | Heuristics nominate candidates; the connected AI verifies them before using 5 resolution strategies (keep_newest, keep_oldest, keep_important, keep_both, manual) |
| Embedding Upgradability | Swap embedding models, store model ID alongside vectors, batch re-embedding pipeline |
| Streaming Recall | SSE delivers selected search matches first, graph neighbors next, then the assembled context |
| Index Persistence | Save/load vector index to disk for fast startup (27-37x speedup) |
| CLI Tool | engram store/search/recall/stats/forget/export/import/reflections/cloud from the terminal |
| Import/Export | Export live memories as JSON or NDJSON via the CLI. Import those records or memory files from Markdown, ChatGPT and Claude. Matching records can merge |
| Webhooks | Subscribe external systems to memory events (stored, forgotten, decayed, consolidated, contradiction, reflected) |
| Tagging & Collections | Tag cloud, filter by tag, prefix-based collections (e.g. project:alpha) |
| Plugin System | 7 lifecycle hooks (onStore, onRecall, onForget, onDecay, onReflect, onStartup, onShutdown) |
| Importance Decay | Source-aware default importance, daily decay for unused memories, protection rules for AI clients |
| Inline Edit & Bulk Ops | PATCH individual memories, bulk tag/archive via API and dashboard |
| Observability | Health and index status, read-only recall explanations with ranks and token budgets, Swagger UI at /docs |
How it works
When a connected AI requests context, Engram:
- Embeds the query locally (384 dimensions with the default model)
- Searches its vector index for similar past memories
- Expands via the knowledge graph to retrieve related concepts
- Scores candidates by semantic similarity + recency + importance + access frequency
- Selects memories for the token budget and formats them by type
- Returns the assembled context to the client and, by default, records the recall