engram
/engram
Persistent AI memory backend with semantic search and knowledge graph. Stores episodic, semantic, and procedural memories in a local SQLite database and retrieves the most relevant ones using vector similarity and graph traversal. Use when you need to remember information across sessions, recall past decisions, store facts about a project, detect contradictions between beliefs, or give any AI model a persistent growing brain. All embeddings run locally - no API keys required.
- Author
- ayvazyan10 ↗
- Repository
- engram ↗
- Licence
- MIT
- Last repository change
- 20.10.2026
Assessment and security
- Files in this package
- 19
- Scripts
- 3
- HTML comments
- 0
- URLs in SKILL.md
- 4
No signals detected. Repository changed on 20.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 3 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: ecosystem.config.cjs, scripts/claude-code-hook.sh, scripts/verify-migration-against-real-db.mjs
What it does and when to use it
Persistent AI memory backend with semantic search and knowledge graph. Stores episodic, semantic, and procedural memories in a local SQLite database and retrieves the most relevant ones using vector similarity and graph traversal. Use when you need to remember information across sessions, recall past decisions, store facts about a project, detect contradictions between beliefs, or give any AI model a persistent growing brain. All embeddings run locally - no API keys required.
Original author description
Persistent AI memory backend with semantic search and knowledge graph. Stores episodic, semantic, and procedural memories in a local SQLite database and retrieves the most relevant ones using vector similarity and graph traversal. Use when you need to remember information across sessions, recall past decisions, store facts about a project, detect contradictions between beliefs, or give any AI model a persistent growing brain. All embeddings run locally - no API keys required.
How it works
- Tools (21 total)
- Recommended workflow
- Key tools
- Configuration
- Links
SKILL.md preview
---
name: engram
description: "Persistent AI memory backend with semantic search and knowledge graph. Stores episodic, semantic, and procedural memories in a local SQLite database and retrieves the most relevant ones using vector similarity and graph traversal. Use when you need to remember information across sessions, recall past decisions, store facts about a project, detect contradictions between beliefs, or give any AI model a persistent growing brain. All embeddings run locally - no API keys required."
license: MIT
compatibility: "Requires Node.js 22+ and npm. Works on macOS, Linux, and Windows."
metadata:
author: ayvazyan10
version: "0.10.0"
homepage: https://engram.am
---
# Engram AI Memory
Universal AI memory backend — give any AI model persistent, structured memory that survives sessions, systems, and restarts.
## Tools (21 total)
| Category | Tools |
|---|---|
| **Memory** | `store_memory`, `search_memory`, `recall_context`, `add_knowledge`, `forget` |
| **Stats** | `memory_stats`, `index_status`, `embedding_status` |
| **Lifecycle** | `decay_sweep`, `decay_policy`, `re_embed` |
| **Contradictions** | `check_contradictions`, `resolve_contradiction` |
| **Tags** | `list_tags`, `tag_memory` |
| **Webhooks** | `webhook_subscribe`, `webhook_list` |
| **Plugins** | `plugin_list` |
| **Reflection** | `request_reflection`, `store_reflection`, `get_reflections` |
## Recommended workflow
```
Session start → recall_context("current task or question")
During session → store_memory("decision or finding", type="episodic")
Session end → store_memory("session summary", importance=0.8)
```
## Key tools
- **`recall_context`** — primary recall tool. Assembles the most relevant memories for a query and returns formatted context ready to inject into prompts. Call at the start of every session.
- **`store_memory`** — saves episodic events, semantic facts (`type="semantic"`, `concept="..."`) or procedural patterns (`type="procedural"`).
- **`search_memory`** — semantic similarity search with optional type filter and threshold.
- **`check_contradictions`** — detects memories that conflict with a given memory ID.
- **`resolve_contradiction`** — resolves conflicts via strategy: `keep_newest`, `keep_oldest`, `keep_important`, `keep_both`, or `manual`.
- **`decay_sweep`** — runs Ebbinghaus forgetting curve decay; archives stale memories and consolidates old episodes into facts.
## Configuration
| Variable | Default | Description |
|---|---|---|
| `ENGRAM_DB_PATH` | `~/.engram/engram.db` | SQLite database path |
| `ENGRAM_NAMESPACE` | *(global)* | Namespace filter — alone it only filters memories; set `ENGRAM_NAMESPACE_MODE=isolated` to isolate them |
| `ENGRAM_EMBEDDING_MODEL` | `Xenova/all-MiniLM-L6-v2` | Local ONNX embedding model |
## Links
- [GitHub](https://github.com/ayvazyan10/engram)
- [Documentation](https://engram.am/docs)
- [Privacy Policy](https://engram.am/privacy)
Files in this package (19)
- .gitignore 1 KB
- .npmrc 1 KB
- .prettierrc 1 KB
- CHANGELOG.md 83 KB
- CODE_OF_CONDUCT.md 1 KB
- CONTRIBUTING.md 4 KB
- LICENSE 1 KB
- README.md 27 KB
- SECURITY.md 1 KB
- SKILL.md 3 KB
- docker-compose.yml 4 KB
- ecosystem.config.cjs 1 KB
- package.json 1 KB
- pnpm-lock.yaml 307 KB
- pnpm-workspace.yaml 1 KB
- smithery.yaml 3 KB
- turbo.json 1 KB
- scripts/claude-code-hook.sh 2 KB
- scripts/verify-migration-against-real-db.mjs 12 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · ayvazyan10/engram | 100 | MIT |
| patdolitse/piia-engram | 100 | AGPL-3.0 |
Database snapshot: 13.11.2026 · package version e3f065b83d6a (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100memory
Persistent memory across AI sessions using ChromaDB vector database. Stores and retrieves context from past conversations, decisions, and code. Use when user asks to remember something, search past conversations, recall what was done before, save context for later, or find… - 100agent-memory
Add persistent memory to AI coding agents — file-based, vector, and semantic search memory systems that survive between sessions. Use when a user asks to "remember this", "add memory to my agent", "persist context between sessions", "build a knowledge base for my agent", "set up… - 100memory
Use when you want to explicitly store or recall knowledge across sessions. Prefer engram store/recall over file-based memory for decisions, patterns, insights, and cross-project knowledge. Also use when searching memories from previous coding sessions. - 95engram-memory
Use Engram as persistent memory across sessions — search it before starting work on a project, and save decisions and their reasoning before finishing. Use whenever the user refers to earlier work, past decisions, or something discussed in a previous session. - 100agent-memory
Give an agent persistent semantic memory with @three-ws/agent-memory. Use when code needs to remember facts across sessions, recall them by meaning, read the entity graph, or curate an agent's working context. - 100brain-memory
Gives Claude a persistent, brain-inspired long-term memory kept in a file the user owns (brain_memory.json), organised as a 3D memory cube of time, kind (episodic, semantic, procedural) and topic, with a 21-day spaced-review forgetting curve, associative recall, emotional…