Back to browse
GitHub Repository

Your AI's anchor to reality. ⚓

59 starsTypeScript

Anchor Engine – Deterministic Semantic Memory for LLMs Local (<3GB RAM)

by BERTmackl1n·Mar 6, 2026·5 points·2 comments

AI Analysis

MidBig BrainShip It

Deterministic graphs instead of vector embeddings sound clever, but long-context windows and RAG tools already solve this problem cheaper.

Strengths
  • STAR algorithm (deterministic traversal over vector embeddings) is architecturally interesting—avoids embedding drift and improves explainability.
  • Genuine constraint engineering: runs in <3GB RAM, WASM-based PGlite means zero native compilation, truly cross-platform.
  • Real user story: author hit context limits across 40+ sessions (~28M tokens), solved it for themselves—not hypothetical.
Weaknesses
  • Solves a shrinking problem: Claude 200K, GPT-4o 128K, and Gemini 2M context windows make persistent memory less urgent than it was 18 months ago.
  • No live demo, no benchmarks vs. conventional RAG (Pinecone, Weaviate), no evidence this retrieves better context than vector search in real applications.
Target Audience

AI developers, prompt engineers, individuals building personal AI agents with long-term memory requirements

Similar To

LlamaIndex · Mem0 · ChromaDB

Post Description

Anchor Engine is ground truth for personal and business AI. A lightweight, local-first memory layer that lets LLMs retrieve answers from your actual data—not hallucinations. Every response is traceable, every policy enforced. Runs in <3GB RAM. No cloud, no drift, no guessing. Your AI's anchor to reality.

We built Anchor Engine because LLMs have no persistent memory. Every conversation is a fresh start—yesterday's discussion, last week's project notes, even context from another tab—all gone. Context windows help, but they're ephemeral and expensive. The STAR algorithm (Semantic Traversal And Retrieval) takes a different approach. Instead of embedding everything into vector space, STAR uses deterministic graph traversal. But before traversal comes atomization—our lightweight process for extracting just enough conceptual structure from text to build a traversable semantic graph.

*Atomization, not exhaustive extraction.* Projects like Kanon 2 are doing incredible work extracting every entity, citation, and clause from documents with remarkable precision. That's valuable for document intelligence. Anchor Engine takes a different path: we extract only the core concepts and relationships needed to support semantic memory. For example, "Apple announced M3 chips with 15% faster GPU performance" atomizes to nodes for [Apple, M3, GPU] and edges for [announced, has-performance]. Just enough structure for retrieval, lightweight enough to run anywhere.

The result is a graph that's just rich enough for an LLM to retrieve relevant context, but lightweight enough to run offline in <3GB RAM—even on a Raspberry Pi or in a browser via WASM.

*Why graph traversal instead of vector search?*

- Embeddings drift over time and across models - Similarity scores are opaque and nondeterministic - Vector search often requires GPUs or cloud APIs - You can't inspect why something was retrieved

STAR gives you deterministic, inspectable results. Same graph, same query, same output—every time. And because the graph is built through atomization, it stays small and portable.

*Key technical details:*

- Runs entirely offline in <3GB RAM. No API calls, no GPUs. - Compiled to WASM – embed it anywhere, including browsers. - Recursive architecture – we used Anchor Engine to help write its own code. The dogfooding is real: what would have taken months of context-switching became continuous progress. I could hold complexity in my head because the engine held it for me. - AGPL-3.0 – open source, always.

*What it's not:* It's not a replacement for LLMs or vector databases. It's a memory layer—a deterministic, inspectable substrate that gives LLMs persistent context without cloud dependencies. And it's not a competitor to deep extraction models like Kanon 2; they could even complement each other (Kanon 2 builds the graph, Anchor Engine traverses it for memory).

*The whitepaper* goes deep on the graph traversal math and includes benchmarks vs. vector search: https://github.com/RSBalchII/anchor-engine-node/blob/d9809ee...

If you've ever wanted LLM memory that fits on a Raspberry Pi and doesn't hallucinate what it remembers—check it out, and I'd love your feedback on where graph traversal beats (or loses to) vector search.

We're especially interested in feedback from people who've built RAG systems, experimented with symbolic memory, or worked on graph-based AI.

Similar Projects

AI/ML●●Solid

Kremis – Deterministic memory graph for AI agents (Rust)

Deterministic graph memory vs. embeddings is clever, but fragmentation of AI memory ecosystems is already painful.

Big BrainWizardry
M2Dr3g0n
103mo ago