holix
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
holix
holix (Holographic + Index) is a local-first context-folding engine and semantic memory MCP server in Rust for code, prose, tables, email, and PDFs, backed by SQLite FTS5, Orion HNSW, and Lean 4/Kani proofs. Unlike standard RAG pipelines that copy files and stuff raw chunks into your prompt, holix folds assets into a local SQLite + Orion index and only hydrates exact byte spans on demand.
Core Problem
LLM agents burn through context windows when they read raw files directly into prompts. holix avoids that by slicing .rs, .py, .md, .yml, .pdf, .csv, .xlsx, and .eml files into folded projections inside a .holix/index.db SQLite WAL and FTS5 database. Every query enforces a strict max_token_budget and keeps raw byte reads behind a fail-closed hydration gate capped at 4 MiB with FNV-1a content hash checks, which gives predictable token usage without losing exact byte provenance.
Related MCP server: velesdb-memory
Architecture
The workspace splits formal invariants, runtime indexing, and transport into three layers so that proof obligations stay isolated from I/O and FFI.
Layer | Crates / Modules | Responsibility | Verification |
Layer 1 |
| Pure | Charon/Aeneas extraction into Lean 4 ( |
Layer 2 |
| SQLite WAL + | Unit tests and Kani bounded model checking ( |
Layer 3 |
| CLI binary ( | Integration and piped stdio E2E tests |
Complexity
Where B is raw corpus bytes, N is indexed entries (folds, edges, blackboard, annotations), D is embedding dimension (64 default FeatureHashEmbedder, 1 byte/dim SQ8 in orion), ef is the HNSW search beam width, K is top-K candidates, and S is hydrated span bytes (<= 4 MiB):
Operation | Time | Space / Disk |
|
| Disk |
|
| Appends to |
|
| RAM |
|
| RAM |
Storage Decoupling (BlobSource and ingest_bytes)
When holix-rs runs inside a backend or object-store pipeline, it should not assume files live on a local filesystem. holix_rs::ingest_bytes accepts an in-memory byte slice, a logical URI, an optional external locator, an immutable flag, and faceted BTreeMap tags. Later reads hydrate exact byte ranges through &dyn BlobSource (content_len, read_range, read_all), skipping full-blob FNV-1a hashing on immutable blobs so hydrating a 200-byte span never buffers a 50 MB PDF in RAM.
use std::collections::BTreeMap;
use holix_rs::hydrate::{hydrate_projection_with_source, BlobSource, HydrateError};
use holix_rs::ingest::ingest_bytes;
use holix_rs::persist::IndexSnapshot;
use holix_rs::store::AssetRecord;
struct MemoryStore(Vec<u8>);
impl BlobSource for MemoryStore {
fn content_len(&self, _asset: &AssetRecord) -> Result<u64, HydrateError> {
Ok(self.0.len() as u64)
}
fn read_range(&self, _asset: &AssetRecord, offset: u64, len: usize) -> Result<Vec<u8>, HydrateError> {
let start = offset as usize;
Ok(self.0[start..start + len].to_vec())
}
fn read_all(&self, _asset: &AssetRecord) -> Result<Vec<u8>, HydrateError> {
Ok(self.0.clone())
}
}
fn example() -> Result<(), Box<dyn std::error::Error>> {
let payload = b"# Agreement\n\nClause 4: Net 30 payment terms.\n";
let mut snap = IndexSnapshot::default();
let mut tags = BTreeMap::new();
tags.insert("project".into(), "core".into());
let asset_id = ingest_bytes(
&mut snap,
"workspace/core/agreement.md".into(),
Some("s3://workspace/core/agreement.md".into()),
"md",
payload,
true,
tags,
)?;
let (store, _, _, _) = snap.restore()?;
let proj_id = store.projections_for_asset(asset_id)[0].id;
let slice = hydrate_projection_with_source(&store, &MemoryStore(payload.to_vec()), proj_id, false, 4096, None)?;
assert!(!slice.bytes.is_empty());
Ok(())
}Feature Flags
Crate | Feature | Purpose |
|
| Enables SQLite WAL snapshot persistence and |
|
| Enables |
|
| Pure-Rust per-page PDF text extraction ( |
|
| Slices |
|
| Slices |
|
| Slices |
holix-rs with --no-default-features stays strictly zero-dependency.
Key Features
Federated Mounts: Upstream repositories mount read-only (
ro) and a global Markdown DMZ repository mounts read-write (rw) through~/.holix/registry.tomland.holix/mounts.toml. Each mount keeps its own SQLite connection and namespace, which prevents asset ID collisions andSQLITE_BUSYcontention.Portable
holix://URIs: References useholix://<repo>/<rel-path>#<anchor>with#b:start-end,#p:page,#t:start-end,#symbol, and@concept/<label>anchors. Path normalization strips Windows verbatim prefixes and matches relative paths across Windows and WSL2, withstale_anchorfallback when line offsets drift.Passive Delta Sync: Reads run lazy
mtime_msand root checks on disk instead of spawning background daemons ornotifywatcher threads. Edits, new files, and deletions sync on the next MCP read, andimmutable == trueobject-store assets skip filesystemmetadatachecks altogether.Sub-2 ms
FTS5and Faceted Tag Filtering:projections_ftsindexes projection labels and asset URIs atomically inside SQLite transactions using quoted prefix queries ("TASK-9042"*) and key-valuetagsfilters.Global DMZ Issue Tracking:
holix dmz init <path>scaffolds a Git-ready Markdown repository, andholix_reportatomically writes YAML-frontmatter.mdreports into anrwDMZ mount before indexing them locally. Writes toromounts fail closed withReadOnlyMountBlocked.
MCP Tools (holix serve)
Tool | Purpose |
| Index files or directories into |
| Run token-budgeted hybrid search across local and mounted repos ( |
| Expand folded projection layers within |
| Perform fail-closed raw byte or |
| Write anchored |
| Manage cross-document semantic edges ( |
| Store and query session or project memory ( |
| Query full concept |
| Write and auto-ingest cross-repo bug or workaround |
CLI Reference and Quickstart
Prebuilt Binaries: Download v1.4.0 archives and .sha256 checksums for Linux (x86_64, aarch64), macOS (x86_64, aarch64), and Windows (x86_64) from GitHub Releases.
Or install from crates.io:
cargo install holix-cli --lockedOr from a local checkout:
cargo install --path crates/holix-cli --lockedCommand | Action |
| Slice and index the current repository into |
| Clean-rebuild |
| Run one-shot |
| Print indexed asset, projection, concept, edge, and blackboard counts |
| Initialize a Git-ready DMZ Markdown repository |
| Register the DMZ mount read-write in |
| Register an upstream repository mount read-only |
| List merged global and local mounts |
| Start the MCP |
| Emit the |
Quick CLI walkthrough:
holix ingest .
holix find "TASK-9042" --jsonExample output:
[{"proj_id":42,"uri":"records.csv","label":"csv rows:1-2 | id,owner,status,priority | TASK-9042,platform-core,open,p1","coord":{"kind":"text_range","start_char":0,"end_char":72}}]MCP client configuration (~/.claude.json, Claude Desktop, Cursor, or any stdio MCP host):
{
"mcpServers": {
"holix": { "command": "holix", "args": ["serve"] }
}
}Needle-in-a-Haystack Benchmark
The in-repo benchmark measures end-to-end discovery, exact span hydration, semantic prose retrieval, and drifted-anchor self-healing across a 168,688-token corpus built from 40 noisy local Markdown decoys alongside planted needles in local .csv, local .eml (with a base64 PDF attachment), local .txt (unstructured prose queried with "customs tariffs mitigated" via OrionRouter), and a mounted .md repository (docs).
Metric | Measured Value ( |
Raw corpus tokens |
|
|
|
|
|
Total |
|
|
|
Total latency ( |
|
Drifted-anchor self-heal | Pass ( |
Reproduce the live release benchmark locally:
cargo test --release -p holix-cli --test mcp_e2e niah_benchmark_measures_recall_at_budget_and_self_heal -- --nocaptureExternal Benchmarks (holix-bench)
External suites in steveSujo/holix-bench test holix (--release, warm OrionRouter) across multi-format workspaces, 32k–131k Paul Graham essay haystacks, and AmazonScience/document-haystack PDFs (results/v1.3.0.md, results/v1.4.0.md):
Suite | Raw Input | Holix Tokens | Reduction | Recall | MCP Latency |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
| — |
|
| |
|
| — |
|
|
In v1.4.0, holix decodes PDFs page-by-page via lopdf (feature = "pdf"), folds extracted text through prose.rs, and hydrates #p:N pages through Layer 1's allow_raw_hydration gate (6/6 hydrated, 0 SpanExceedsMaxBytes errors).
Verification
Run Rust lints, default-feature checks, and workspace tests:
cargo clippy --workspace --all-features --all-targets -- -D warnings
cargo test --workspace --all-features
cargo test -p holix-rs --no-default-featuresRun the WSL2 formal verification pipeline (HolixSpec, HolixProofs, Charon/Aeneas sync, and Kani):
scripts\verify.ps1 -Mode dev
scripts\verify.ps1 -Mode releaseThe WSL2 formal pipeline expects elan, cargo-kani, charon, and aeneas (default $HOME/aeneas, overridable via AENEAS_ROOT).
Acknowledgments
holix builds on several open-source projects and verification toolchains so that formal bounds stay decoupled from runtime I/O:
Formal Verification: Charon and Aeneas for Rust-to-Lean 4 extraction, Lean 4, and Kani for bounded model checking.
Storage and Parsing: SQLite (
FTS5/ WAL viarusqlite), Tree-sitter,lopdf,calamine, andorion-vdb.Benchmarks: AmazonScience/document-haystack and Paul Graham's essays used in
holix-bench.
Architecture, storage invariants, and verification gates were designed and reviewed by hand, while AI coding assistants handled scaffolding, test generation, and doc polish so that every core bound stays checked by Lean 4 (0 sorry), Kani, and E2E benchmarks.
License and Author
Dual-licensed under MIT OR Apache-2.0 (LICENSE-MIT, LICENSE-APACHE).
Written by Steve Sujo Pulikottil.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Token-efficient MCP memory for Markdown vaults. Tiered search, GraphRAG, AI memories.
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Related MCP Servers
- AlicenseAqualityBmaintenanceThe open retrieval layer for AI agents. Index your entire project — code, docs, legal, research, data — and serve surgical context via MCP. FTS5 full-text search, optional semantic search (FastEmbed/ONNX), 10 built-in parsers, incremental auto-sync.8599 PyPI27MIT
- FlicenseAqualityBmaintenanceLocal-first agent-memory MCP server with a why() tool: recall a fact together with its connected subgraph (multi-hop), so linked memories surface even when they share no words with the query. remember/recall/relate/forget/why over one fused vector + graph + columnar engine a single offline Rust binary.8105-
- AlicenseCqualityAmaintenanceLocal-first MCP server that turns project documentation and source code into durable, evidence-backed context for AI agents, with bounded retrieval and explicit gap reporting.8256 npmApache 2.0
- AlicenseNot gradedqualityBmaintenanceLocal-first, event-sourced personal memory engine in Rust for AI coding assistants (SQLite FTS5 + Obsidian projection).Apache 2.0