Neotoma is a state layer for AI agents, positioned as a shared, governed system of record for humans and agent systems. The core problem it addresses is that values produced by agents cannot explain their own version, provenance, or whether they are still valid. Neotoma versions every fact, attributes it to a source, and makes it replayable, thereby answering "what is true."
Purpose Neotoma is not chat memory or a vector cache, but a deterministic state layer. It ingests raw input from sources, stores it as immutable observations, and then reduces observations into the current snapshot of an entity. Nothing is overwritten: corrections or reinterpretations only append new observations, and history remains complete and replayable. Its long-term goal is collective epistemic consistency—not "better semantic memory," but deterministic, governed multi-party state jointly maintained by humans and agents, with attribution, corrigibility, the ability to handle disagreement, portability, and independence from any single model or application. It is complementary to Ateles: Neotoma answers "what is true" (truth, memory, provenance), while Ateles answers "who is authorized" (initiation, delegation, approval).
Main capabilities Three properties run through all interfaces: determinism—entity IDs, observation IDs, event IDs, and reduction outputs are all derived by hashing from inputs, the same observations produce the same snapshot regardless of order or time, and no random numbers or wall-clock values are introduced into the data path; immutability and auditability—sources and observations are append-only, and every field in a snapshot can be traced back to the observation that set it, and then back to the source, interpretation, agent, and timestamp; self-hosting and portability—the engine is embedded SQLite plus content-addressed file storage, located in a user-controlled directory, with optional AES-256-GCM encryption at rest, data is not used for training, it can be fully exported, and in single-user mode the data is entirely local. The processing flow is: source (raw input is deduplicated and stored once by SHA-256 content hash, with a deterministic source ID) → interpretation (structured fields are extracted from the source, and LLM interpretation runs can be performed with the model, temperature, and prompt recorded) → observation (each extracted fact becomes an immutable observation with a hashed ID) → entity resolution (deterministic canonical names driven by type schemas are mapped to entities, creating them when necessary) → snapshot (all observations are reduced according to the field merge strategy, in the order observed_at DESC, id ASC, and a provenance map from fields to observations is generated) → timeline and relationships (date fields generate deterministic timeline events, and typed relationships connect entities into a graph). The capability surface includes about 60 MCP tools and about 100 REST endpoints, all based on the same set of operations. Specifically, these include: ingesting and storing structured records or raw files (file ingestion can extract text from PDF, CSV, Parquet, JSON, and plain text; images and audio are stored as raw sources; writes are idempotent via idempotency_key); looking up entities by identifier, multi-signal identity resolution and confidence scoring, listing observations, retrieving field provenance chains, traversing the relationship graph N hops, pulling the full graph neighborhood, and, once embedding keys are configured, performing semantic vector search over entity snapshots on local sqlite-vec; submitting corrections (as high-priority observations that always win in snapshots, rather than edits); schemas inferred from data, recommended from repeated unknown fields, capable of automatic enhancement or incremental updates and versioned, with new entity types requiring no code changes; creating typed relationships (such as PART_OF, DEPENDS_ON, REFERS_TO, DUPLICATE_OF), and querying timeline events across types and date ranges; managing the entity lifecycle, including merging duplicates, splitting by predicate, soft deletion and restoration, listing potential duplicates, and GDPR-oriented deletion, with merges and splits being transactional and audited; controlling multi-agent access, with each write attributed to an agent identity (verified key fingerprint, JWT subject, or client name), and agent authorization expressing least-privilege capabilities; federation, synchronization, and ingestion, including registering peer instances and synchronizing entities (with configurable scope and conflict resolution: last-write-wins, source-priority, or manual), subscribing to changes via webhook (HMAC-signed) or Server-Sent Events, accepting guest entity submissions, mirroring GitHub issues as conversation threads, and mirroring data as deterministic, git-trackable canonical Markdown; exporting data, including bounded MEMORY.md summaries, JSON snapshot exports with full provenance and attribution metadata, or a complete Markdown mirror of each entity, relationship, source, and timeline day.
Usage There are four access paths to the same state and guarantees, all mapped to one OpenAPI-backed contract: the MCP server, REST API, CLI, and the built-in Web Inspector. The Inspector is a single-page web application packaged into the build and served by the API server (browsers access /, with no separate deployment required). As the console for the data store, it includes entity browsing/detail/field correction/history and provenance/entity timeline, observations/sources/explanations/recent activity, an interactive knowledge graph browser, relationshipsWith a global timeline, pattern and entity types, agents and authorization, peers and subscriptions, issues and session turns (agent audit trail), access policies and compliance, search/analytics/usage, settings (including dark mode), sandbox interface, and the /docs in-app documentation browser. Prerequisites: Node.js 20.x (see .nvmrc) and npm 9+, no .env needed for local storage. The neotoma doctor command checks the environment, database, and security configuration. The CLI also handles MCP configuration scanning and syncing, harness configuration, lifecycle hook installation, peer and access management, plans, transcripts and onboarding imports, server and database management, memory export, and spec mirroring. Agents perform the same operations via MCP tool calls, such as store, retrieve_entities, retrieve_entity_by_identifier; every MCP call logs its equivalent CLI call. Installation is currently via npm and the CLI; guided installation is not yet available. Client SDKs: @neotoma/client (TypeScript) and neotoma-client (Python). Per-harness packages are located under packages/: claude-code-plugin, cursor-hooks, opencode-plugin, codex-hooks, claude-agent-sdk-adapter. Neotoma is also released as a native OpenClaw plugin with kind "memory", which can populate a dedicated memory slot and registers all MCP tools as agent tools. Skills are guided workflows that teach agents to import, extract, and persist data, shipped with the npm package and installed by neotoma setup; ordinary storage and retrieval do not require skills, as the live MCP tool descriptions provided at session start directly cover store/query/recall.
Storage, Privacy, and Security Storage is local SQLite (better-sqlite3, WAL mode) plus content-addressed file storage, located under NEOTOMA_DATA_DIR, distinguishing dev and prod configurations, with semantic search using sqlite-vec locally. Data is not used for training, and log and event payloads carry IDs rather than PII. In single-user modedata is fully local; once MCP OAuth, peer sync, or a hosted multi-user instance is enabled, data is shared according to the corresponding configuration. Optional AES-256-GCM column encryption encrypts sensitive content and metadata, with keys from a key file or BIP-39 mnemonic; some tables (such as event logs) are not yet column-encrypted and require an encrypted volume for full coverage. Authentication includes single-user local authentication, MCP OAuth for hosted use, optional hardware attestation for agents, and explicit per-operation access control.
Use Cases and Limitations Neotoma is primarily aimed at developers building and operating AI agents who need a persistent, deterministic, auditable memory layer shared across tools. The product is delivered as an MCP server and REST API, with out-of-the-box hook packages (Claude Code, Cursor, Codex, OpenCode), a Claude Agent SDK adapter, and TypeScript and Python clients; its core value is memory engine infrastructure for the agent loop, rather than an end-user application. Two other types of users come along with it: individuals running personal cross-assistant memory on a single-user installation, and operators running shared multi-user instances with agent access control. Agent identity and authorization mechanisms are the infrastructure that supports provenance and attribution for all users. It is not aimed at casual note-taking, PKM/Obsidian-style human-driven knowledge bases, or users who need fully managed hosting with nothing running on their own machine—Neotoma is local-first by design, and this is not a temporary state. Neotoma is in developer preview and is already used daily in real agent workflows. Version v0.17.0, license MIT, storage local (SQLite + local files).