跳到正文
FunCoding

Holographic Memory

官方 MCP Registry 已收录

Local persistent memory for AI agents with recall, search, forgetting, and encrypted storage.

Star
29
版本
v0.1.2
许可证
Apache-2.0
最近提交
2026年12月1日
WARM logo

WritersLogic Adaptive Retention & Memory (WARM)

Remember, recall, forget, explain.
Local-first memory for agents and apps.

CI crates.io npm PyPI OpenSSF Scorecard OpenSSF Best Practices License: Apache-2.0

Website · Docs · Quickstart · Contribute



A Rust engine that stores text, vectors and facts in a directory on your machine and finds them again. It provides stemmed BM25 and exact-cosine hybrid document search, a graph vector index, a memory API (remember, recall, forget, explain) and a vector-symbolic fact store. Use it inside your application, over HTTP, or from an MCP client. The library makes no network calls and sends no telemetry. Document search is conventional hybrid retrieval; the holographic part is the vector-symbolic layer (concepts).

Install

You are usingInstall
Rustcargo add warm-rust (add --features security for encrypted stores)
Node, embedded enginenpm install warm-memory
JavaScript or TypeScript, HTTP clientnpm install warm-sdk
Python, embedded engineuv pip install warm-python
Python, HTTP clientuv pip install warm-sdk
HTTP server for the clientscargo install --locked --features server,security --bin warm-server warm-rust
MCP client or editornpx -y warm-mcp or uvx warm-mcp

Rust 1.89 or newer builds the crate; local-models and --all-features need 1.94. Nothing is enabled by default (default = []); the features are listed in the API overview.

Quickstart

Rust. The crate is warm-rust; the library is imported as writerslogic_warm.

use writerslogic_warm::{DocumentInput, SearchOptions, WarmCore};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    // A store is a directory; it persists there and reopens with the same arguments.
    let dir = std::env::temp_dir().join(format!("warm-quickstart-{}", std::process::id()));
    let warm = WarmCore::new(4096, Some(dir.display().to_string()), None)?;
    warm.memorize_document(DocumentInput {
        id: "backups".into(),
        text: "Restore deleted documents from verified backups.".into(),
        source_uri: Some("operations.md".into()),
        version: Some("1".into()),
        metadata: None,
        chunk_words: None, overlap_words: None, store_text: None, embeddings: None, title_weight: None,
    })?;
    let hits = warm.search_documents("restore backups", &SearchOptions::default())?;
    println!("{} {:?}", hits[0].document_id, hits[0].source_uri);
    drop(warm);
    std::fs::remove_dir_all(&dir)?;
    Ok(())
}

Node.js, embedded engine:

const { WarmMemorySystem } = require('warm-memory')
const { DocumentMemory } = require('warm-memory/semantic')

async function main() {
  const dir = require('node:fs').mkdtempSync(require('node:path').join(require('node:os').tmpdir(), 'warm-readme-'))
  const memory = new DocumentMemory(new WarmMemorySystem(4096, dir))
  await memory.memorize({
    id: 'backups', text: 'Restore deleted documents from verified backups.',
    sourceUri: 'operations.md', version: '1', metadata: { project: 'alpha' },
  })
  const [hit] = await memory.search('restore backups', { filter: { project: 'alpha' } })
  console.log(hit.documentId, hit.sourceUri, hit.text)
  await memory.flush()
}
main().catch(error => { console.error(error); process.exit(1) })

Python, against a running warm-server (WARM_API_KEY=change-me warm-server --input-dim 384):

from writerslogic_warm_sdk import WarmClient

client = WarmClient(url="http://127.0.0.1:8080", api_key="change-me", tenant_id="demo")
client.memory.remember_many([{"id": "backups", "text": "Restore deleted documents from verified backups."}])
print(client.memory.recall("restore backups", k=3))

The quickstart covers the JavaScript client, MCP and facts that change over time. Runnable versions with a SQLite FTS5 comparison are in examples/quickstart.

Benchmarks

Results are generated by ./benchmarks/competitive/warm-bench table from the committed files in benchmarks/results/competitive/ into docs/benchmarks/COMPARISON.md, with every cell indexed to its source file in comparison.cells.json. Rows are never compared across hardware classes, and a win or loss needs a bootstrap interval that excludes parity. Two single-machine examples from that table (SIFT-1M, 8-core Ice Lake x86_64 VM, recall@10 at least 0.95): WARM 17,431 QPS against hnswlib (native C++) 8,072, and p99 78 microseconds against 177. The same table records where WARM is behind, for example index size on GloVe-100 and text build memory against SQLite FTS5. See benchmarks for the protocol and the losses.

Bindings and integrations

SurfacePackage or path
Rustwarm-rust
Embedded Nodewarm-memory
JavaScript and TypeScript clientwarm-sdk (npm), bindings/js/warm-sdk
Python clientwarm-sdk (PyPI), bindings/python/warm-sdk
Python nativewarm-python
MCP serverwarm-mcp (npm and PyPI), integrations/mcp
Python frameworksLangChain, LangGraph, LlamaIndex, Haystack, DSPy, OpenAI Agents, Pydantic AI, smolagents, LiteLLM, CrewAI, AutoGen, Semantic Kernel, mem0, Letta (integrations/python)
JavaScript frameworksLangChain.js, LlamaIndex.TS, Mastra, OpenAI Agents JS, Vercel AI SDK (integrations/js)
C, Go, Java, .NET, Swift, Kotlin, WebAssemblybindings/ (source builds)
Importerswarm-import for Chroma, Qdrant, Pinecone, pgvector, FAISS and others

Details and tested versions: integrations.

Documentation

Quickstart · Concepts · API overview · Integrations · Server · File format · Benchmarks · Security and stability · FAQ · Changelog

Limits

  • One writer per store; a second writing process fails at open with a lock error naming the holder. Any number of read-only readers open the same store beside the writer (one writer, many readers).
  • Sketches and term counts are not encryption, and storeText: false is not a privacy control (security).
  • Capacity numbers are sweeps over a tested range, not guarantees.
  • Benchmarks are single machines; conditions are in each results file.

Report vulnerabilities privately through SECURITY.md.

Contributing

CONTRIBUTING.md covers setup, the checks CI runs and DCO sign-off (git commit -s, no CLA). See the Code of Conduct.

License

Apache-2.0. See LICENSE. Use, modify and embed it in open-source or proprietary software, including network services, with no copyleft obligation. The historical v0.6.1 source remains available under its AGPL-3.0-or-later license.

同类 MCP Server

官方

Memory

Knowledge graph-based persistent memory system

MOmodelcontextprotocol/servers92k近 7 天新增 200 个 star

Honcho

Memory that reasons: continual learning for stateful agents. Better context, fewer tokens.

PLplastic-labs/honcho8.4k近 7 天新增 102 个 star

PDF Craft

Convert scanned PDFs to Markdown or EPUB, and translate PDF and EPUB books via MCP.

OOoomol-lab/pdf-craft6.8k近 7 天新增 35 个 star

精选

gemini-notebook-mcp-cli

命令行和 MCP Server 访问 Gemini Notebook。

JAjacob-bd/gemini-notebook-mcp-cli6.6k近 7 天新增 78 个 star

精选

Zotero MCP

在智能体里搜索、阅读和引用 Zotero 文献库中的论文。

5454yyyu/zotero-mcp6.1k近 7 天新增 97 个 star