Reference

API at a glance

Everything is imported from memcommit. The docstrings in each module are the full reference.

Store

NamePurpose
memcommit.open(path)A MemoryStore on a SQLite (.db) or JSON-lines (.jsonl) log.
MemoryStoretransaction, put, find, latest, get, invalidate, rollback_to, as_of, history, move, refresh, save_snapshot, guard, subscribe, defer.
Memory, Record, Commit, StateThe values and the fold.
query_ref(kind, key, scopes, **where)A reference to a read.
RejectedRaised when a guard refuses a commit.

Structure

NamePurpose
Schema, KindDeclare kinds; attach, record, put, audit, describe, load, version.
check_bodyThe JSON-schema subset validator.

Sessions, notes, dreaming

NamePurpose
Session, EpisodesEpisodic memory.
KnowledgeNotes: add, update, delete, read, ls, index, search, fetch, tools, call, take_reads.
Dreamer, Learning, Change, DreamReport, heuristic_extractorOffline consolidation.
Trace, traceRuns as typed steps.
Compactor, outlineTraces into summaries.

Working memory and recall

NamePurpose
TieredMemory, AccessLog, by_scope, by_traceThe cache and its tiers.
FIFO, LRU, LFU, TwoQueue, ARC, Forgetting, Scored, TTL, LearnedEviction policies.
AccessCount, ImportanceAtLeast, KindIn, AnyOf, AllOf, NeverPromotion policies.
Recall, LexicalIndex, VectorIndex, AnnIndex, CacheSyncSearch.

Agents and defense

NamePurpose
AgentSession, scope_guardAn agent's view, and the write rule.
Blackboard, Agent, StepCoordination.
verify, lineage, blast_radius, quarantine, diff, provenance_guard, sealAudit.

Storage and processes

NamePurpose
MemoryEngine, JsonlEngine, SqliteEngine, Engine, ENGINESWhere the log lives.
memcommit.storagecompact, ArchivedOlderThan, AutoSeal, check_seal.
memcommit.serverMemoryServer, RemoteStore.
AsyncMemoryStoreCommits in a worker thread.

Measurement

NamePurpose
memcommit.benchReplay writes and uses under any policy.
memcommit.evaluationmake_workload, evaluate, table: the memory benchmark.