Memory & RAG
~8 min readUpdated: December 2026

LongMemOS: Zero-LLM-Write Deterministic Enterprise Agent Memory

LongMemOS zero-LLM-write deterministic enterprise agent memory OS in Smoke Monkey

LongMemOS (arXiv:2612.04831) is a single-executable Rust deterministic memory operating system that eliminates write-time LLM and embedding calls ($0 ingestion model cost). Persisting turns into an encrypted append-only store partitioned at 32 KiB UTF-8 boundaries with SHA-256 digests and supersedes version chains, it achieves 95.40% on LongMemEval-S and 92.86% on LoCoMo Cat 1-4.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

LongMemOS: Zero-LLM-Write Deterministic Enterprise Agent Memory: LongMemOS (arXiv:2612.04831) is a single-executable Rust deterministic memory operating system that eliminates write-time LLM and embedding calls ($0 ingestion model cost). Persisting turns into an encrypted append-only store partitioned at 32 KiB UTF-8 boundaries with SHA-256 digests and supersedes version chains, it achieves 95.40% on LongMemEval-S and 92.86% on LoCoMo Cat 1-4. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.

Key Architectural Takeaways
Quick Implementation Examplelongmemos-uamp-agent.ts
longmemos-uamp-agent.tstypescript
import { createAgent } from '@smoke-monkey/harness';
// Attach LongMemOS UAMP v0.2.0 deterministic memory binary to an enterprise coding agent
const agent = createAgent({
agentId: 'longmemos-enterprise-agent',
provider: 'anthropic',
model: 'claude-sonnet-4-5',
workspacePath: process.cwd(),
mcpServers: {
longmemos: {
command: 'longmemos-uamp',
args: ['--ledger', './.longmemos/vault.enc', '--partition-bytes', '32768'],
env: {
LONGMEMOS_VERIFY_SHA256: 'true',
LONGMEMOS_PROTOCOL: 'UAMP-v0.2.0',
},
},
},
permissions: {
read_file: 'allow',
write_file: 'ask',
run_command: 'ask',
},
});
async function main() {
const result = await agent.run(
'Query the UAMP memory ledger for Q3 compliance policy revisions and trace supersedes chains.'
);
console.log('Verified Memory Output:', result.summary);
}
main().catch(console.error);
Video Guides

Watch: Related Video Guides

Agent Memory EXPLAINED - Complete Architecture

The Complete Guide to AI Agent Memory

What Is LongMemOS and Why Avoid Write-Time LLM Extraction?

LongMemOS is a single-executable Rust memory operating system built around a zero-LLM, zero-learned-embedding write path for long-horizon enterprise agents. Instead of invoking an LLM to summarize or extract facts during ingestion, it writes verbatim turns into an encrypted append-only store partitioned at 32 KiB UTF-8 boundaries with monotonic sequence numbers and SHA-256 verification.

Write-time LLM pipelines incur per-turn inference fees, fail when upstream model APIs throttle, and silently overwrite verbatim provenance when summaries mutate. LongMemOS separates durable truth storage from conflict resolution via explicit supersedes version chains and optional asynchronous consolidation—preserving 100% verbatim audit trails while scaling cleanly to 10M-token histories.

Benchmark (10,957 Total Items Evaluated)ItemsLongMemOS Verified Offline Result
LongMemEval-S50095.40% accuracy (477 / 500)
LongMemEval-M50092.40% accuracy (462 / 500)
LoCoMo (Cat 1–4 / Full)1,98692.86% Cat 1–4 (1,430/1,540); 86.61% overall (Cat 5: 65.02%)
BEAM (1M & 10M Subsets)90071.22% pass rate (641 / 900; mean rubric 65.24%)
PersonaMem-v2 128k5,00075.92% mean score (80.36% pass rate; 65.42% >= 0.9)
MemoryAgentBench2,07175.92% micro-average (91.00% CR-SH)

Offline Judgment Verification & Enterprise Binary Footprint

LongMemOS v2.1 measures 40.3 ms median cold start (5.97 MB idle VmRSS) on Linux/WSL2 and 59.3 ms on Windows NTFS (8.33 MiB working set). Even under 10M-token BEAM workloads, the frozen audit binary (6fe5dc92...) stays within ~75 MB typical RSS (47.1 MiB floor) and ~195 MB peak memory.

bash
# Verify the published 10,957-record LongMemOS benchmark kit offline
git clone https://github.com/LongmemOS/longmemos-benchmarks.git
cd longmemos-benchmarks
sha256sum -c SHA256SUMS.txt
python3 -I verify_public_kit.py

Preserve Verbatim Provenance for Regulated Audits

Because LongMemOS persists raw turns at 32 KiB UTF-8 boundaries without lossy write-time summarization, compliance auditors can trace any retrieved policy revision back to its exact monotonic sequence number and SHA-256 request/response digest.

Google Search Questions & Answers

Frequently Asked Questions

Q:Does LongMemOS call an LLM or embedding API when storing new messages?

No. LongMemOS uses a zero-LLM, zero-learned-embedding critical write path, incurring $0 in write-time model charges and avoiding write failures during upstream API outages.

Q:How does LongMemOS handle contradicting or updated user facts?

Updates are tracked through explicit supersedes version chains and an embedded lightweight graph index, allowing newer facts to override older records without erasing verbatim historical entries.

Q:What is the memory and cold-start footprint of LongMemOS?

In v2.1 enterprise benchmarks, LongMemOS achieved 40.3 ms median cold start with 5.97 MB idle VmRSS on Linux/WSL2, and ~195 MB peak RAM on 10M-token BEAM workloads.

Q:How does LongMemOS connect to existing agent frameworks?

It exposes the Unified Agent Memory Protocol (UAMP v0.2.0) data plane specification and SDKs alongside an offline SHA-256 verifier.

Related Alternatives & Comparisons

Related Architecture Guides

View all guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness