Neotoma

Memory models

Compare memory models first, then evaluate representative tools inside each model. This keeps the focus on guarantees and failure modes rather than brand checklists.

Platform memory

Platform memory is the built-in memory provided by model vendors (Claude, ChatGPT, Gemini, Copilot). It is convenient but opaque: storage and eviction policies are controlled by the provider.

Typical behavior: you ask a model to remember a preference, and future sessions may include it. There is rarely an append-only log, typed schema enforcement, or deterministic replay capability.

User: "Remember I prefer morning meetings."
Model platform: stores preference internally
Operator: cannot inspect full lineage, replay state transitions, or export a deterministic log

For production agent workflows, this model typically fails key guarantees in the comparison table (versioning, replay, audit, and deterministic resolution). Compare with retrieval memory and deterministic memory.

Retrieval memory

Retrieval memory reconstructs context at query time (RAG/vector search). It excels at relevance search, but does not guarantee deterministic or complete state reconstruction.

Similarity ranking is sensitive to embeddings, chunking, and index updates. The same intent can return different top-k items over time.

Query A: "How should I schedule with Ana?"
-> top-k returns preference "morning meetings"

Query B: "Summarize Ana's profile"
-> top-k may omit that same preference

This model can satisfy semantic search needs but not core state-integrity guarantees. See platform memory, deterministic memory, conflicting facts risk, and the comparison table.

File-based memory

File-based memory stores state in Markdown, JSON, or similar artifacts. It is portable and easy to edit directly, but integrity guarantees are manual.

Typical implementations append notes or overwrite JSON blobs. Without a deterministic reducer and observation lineage, teams rely on ad-hoc conventions for conflict handling.

{
  "contact": "Ana Rivera",
  "city": "Barcelona"
}

# Later overwrite
{
  "contact": "Ana Rivera",
  "city": "San Francisco"
}

This model can work for lightweight workflows but usually fails deterministic guarantees at scale. See platform memory, deterministic memory, schema constraints, and the comparison table.

Deterministic memory

Deterministic memory enforces state integrity through deterministic reduction, immutable history, schema validation, and provenance. Neotoma is the reference implementation.

Invariant stack: versioning, replay, auditability, and schema constraints. Together these guarantees make memory reproducible under load, across tools, and across time.

# Store from one interface
neotoma store --json='[{"entity_type":"task","title":"Finalize architecture review","status":"open"}]'

# Retrieve from another interface (MCP/CLI/API) and get identical canonical snapshot
neotoma entities list --type task --limit 5

Compared with platform, retrieval, and file-based models, deterministic memory prioritizes guarantees over convenience defaults. See platform memory, retrieval memory, file-based memory, and deterministic state evolution.

Memory model comparison

Platform memory

Claude, ChatGPT, Gemini, Copilot. These are the built-in memory features offered directly by model providers. They manage memory behind the scenes, typically as convenience layers tied to a specific product. Platform memory is the easiest to adopt but the hardest to audit, version, or port between providers.

Retrieval memory

Mem0, Zep, LangChain Memory. These systems reconstruct context at query time by embedding past interactions and retrieving the most similar results. They excel at surfacing relevant context but introduce non-determinism: the same question asked twice may surface different facts depending on index state and re-ranking.

File-based memory

Markdown files, JSON stores, CRDT docs. File-based approaches store memory as plain artifacts on disk or in collaborative documents. They are simple and human-readable, but lack schema enforcement, conflict detection, and audit trails unless those are layered on manually.

Deterministic memory

Neotoma. Deterministic memory systems guarantee that the same observations always produce the same entity state. Every fact traces to provenance, every state transition is versioned, and the full history is replayable. Neotoma is the reference implementation of this model, providing the deterministic state evolution, versioned history, and auditable change log guarantees that production agents require.