IT-RAT the stack/engram Live demo Stack Guides Console
knowledge plane · wave 1

Engram. The memory that remembers why.

Engram is an embeddable memory in one SQLite file. It stores raw episodes, distills them into facts with confidence scores, records when each fact was true, and answers why() for every belief it holds, with the episodes it came from.

releaselatest · PyPI engdbram
corePython 3.11+
storagesingle SQLite file + sqlite-vec
recallhybrid BM25 + vector
integrationsMCP · LangChain · LlamaIndex
licenceApache-2.0
sixty seconds, one reflection

Watch five episodes become ten facts.

A simulation, but not a fantasy: it replays the shape of the live validation run, the first time Engram's reflection pipeline processed real Claude output instead of fixtures. Five episodes go in, ten subject-predicate-object facts come out, each scored and traceable to its source.

under the hood

One file on disk. Model calls only when you ask.

Your agent calls observe() and recall() against one .engram file, in-process; only reflect() and compress() leave the machine. In the guide

agent observe · recall engram.db · SQLite + sqlite-vec episodic · semantic bitemporal facts spreading activation Ebbinghaus decay working memory median write 8 ms · no LLM in the write path LLM adapter 6 adapters incl. Ollama via TokenFuse base_url reflect facts MCP server · stdio Claude Desktop · Cursor remember/recall/why/forget no network listener agent-event NDJSON memory_written·reflection_run contradiction·memory_forgotten opt-in · off by default
what it holds

Not a log of text. Beliefs with receipts.

one fact, from episode to recalldistilled
A fact's life in Engram: episodes are observed with no model, reflect() distils them into a fact with a confidence and a why() chain; each fact carries valid time and recorded time, so Ivan's Acme fact is closed when Globex opens; a model's fact never closes the person's own, contradictions() lists the pair and refute_fact() closes a fact while keeping it; recall() runs hybrid, cosine or spreading activation.1 · DISTILLEDepisodeepisodeepisodeobserve(): no modelreflect()only when askeda facts · p · o+ confidence+ why() chainto its episodes2 · DATEDIvanworks_at Acmeworks_at Globexvalid_to set: closed, never deletedvalid_from / valid_to: when it was truerecorded_at / superseded_at: when it was learnedas_of March answers with what March believed3 · CONTESTEDperson's factprovenance usermodel's factfrom reflect()contradictions()lists the pair; neither is closedrefute_fact()closed and kept; derived: undermined4 · RECALLEDrecall()one callhybrid · BM25 + cosine · defaultcosine · same meaning, other wordsspreading · walks the entity graph

Observing writes an episode with no model in the path; reflect(), only when you ask, distils episodes into facts that each keep a why() chain. In the guide

in the stack

The plane that remembers.

Engram is the knowledge plane of the stack. Every memory_written, reflection_run, contradiction_found and memory_forgotten goes out as an agent-event on the same NDJSON bus Idryx correlates into the identity graph.

try it now
pip install engdbram

The PyPI name is engdbram (the plain name was taken); the import stays from engram import Engram.

Full install and configuration in the guide →
limits

Agent events are off by default, and reflect() is not an MCP tool.

Provenance over MCP

The MCP server sets provenance and scope, and it cannot see what an agent read outside engram.

In the guide

No reflect() over MCP

reflect() is deliberately not exposed to MCP clients.

In the guide

Events are opt-in

Agent events are opt-in and off by default.

In the guide
common questions

What a memory has to do that similarity search cannot

Does it need a server, a container or an API key?

None of the three to write a memory. It is one .engram file on SQLite plus sqlite-vec, in-process, installed with pip. A model only enters the picture when you ask for reflect() or compress(), and even those calls can be pointed at a local model or routed through TokenFuse so thinking has a budget too.

Can I delete everything about one person?

Yes, and the cascade is the point. Erasing an entity removes the episodes about them, the facts derived from those episodes, and the graph edges that made them findable, and reports how many of each it deleted. That erasure reaches every agent in a shared store on purpose, because the request is about the person. What one agent cannot do is erase another agent's episodes by id: forget() is agent-scoped.

Does it work with Claude Desktop, Claude Code or Cursor?

Yes, over MCP on stdio, so there is no network listener and no port to guard. Those clients get remember, recall, why and forget against the same store with no integration code.