chunxiaoxx/nautilus-compass
Local-first hybrid retrieval and drift detection for agent memory over MCP
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Compass is a Python agent-memory layer, not a general-purpose vector database. It embeds raw text locally with BGE-m3 without an extraction LLM or knowledge graph. At query time, single-session and knowledge-update questions route to turn-window chunks; other queries use session-level retrieval that fuses BM25 and dense rankings with reciprocal rank fusion (RRF). This preserves fine-grained evidence without forcing every query through a turn-level index.
In Claude Code, UserPromptSubmit injects recalled memory, a drift signal, and profile facts into the prompt context. PostToolUse writes observations during the session, and Stop writes a session summary. The same memory capabilities are available through an MCP server; the Python package also ships an A2A adapter. The Docker build starts from python:3.12-slim and installs FastAPI, Uvicorn, python-jose[cryptography], and the project's e2ee extra alongside modelscope and fast-download.
Key Capabilities & Differentiators
MCP separates observation ingestion (ingest_obs), hybrid recall (recall), time-bucketed session search (session_search), profile aggregation (profile), and drift scoring (drift_check). Drift scoring compares prompts with anchors from failure transcripts using BGE-m3 cosine similarity; the held-out evaluation produced AUC 0.83. A missing anchors.json triggers an explicit error and alert instead of returning a normal-looking low-risk result.
The project-run LongMemEval-S retrieval test across 500 questions recorded P@1 0.890, P@5 0.978, and MRR 0.929. Separately, session summary cards and a date-anchored timeline helped the end-to-end run reach 75.4% on all 500 questions without changing retrieval. For evaluation workflows, v3.3.0 packaged assay with Verdict Schema v2 validation and migration from v1; NACRE judge v1 is a separate 1.7B LoRA judge artifact, not a dependency of local recall.
Trade-offs & Limitations
The strongest comparison with mem0 2.0.19 is retrieval: on the same 500 LongMemEval-S questions, with infer=False on both sides, Compass scored 0.890/0.978/0.929 versus 0.774/0.916/0.834 for P@1/P@5/MRR. Each system used its own default embedder, so this was a comparison of configured systems, not an isolated test of retrieval logic. Compass's 75.4% end-to-end score and mem0's self-reported 94.4% come from different harnesses and should not be ranked directly. The comparison provides no matching LongMemEval-S retrieval results for Letta or Zep.
Local ingestion avoids extraction API calls, but shifts the cost to model residency, indexing, and maintenance. First recall after daemon idling can take up to 90 seconds; budget for cold starts rather than relying on warm-daemon timings. Raw-session retention and prompt injection of retrieved material also warrant explicit access, retention, and trust policies. The comparison table says “Mod. MIT,” but license metadata is unspecified; verify the terms in LICENSE and LICENSE-ANCHORS before commercial use or redistribution.
Hardware & Deployment Guide
For a local Claude Code trial, the clone-based path uses install.sh to wire hooks and daemon_start.sh to start BGE-m3. For a packaged MCP rollout, use v3.3.2 or later and smoke-test compass-mcp from outside the checkout: v3.3.2 fixed a missing mcp_durable subpackage and imports that only worked from the repository root. Validate that a newly written observation can be recalled; setting COMPASS_USE_INOTIFY=0 disables discovery of new files. CPU works for the retrieval benchmark; GPU is recommended for the full 500-question run, but no minimum VRAM is established.
Docker is a self-host option; the visible manifest identifies the base image and build dependencies but does not establish the final entry point or port. For a networked rollout using the v14 endpoints, avoid affected PyPI versions 2.3.0 through 3.3.0. The v3.3.1 patch requires verified Bearer JWTs and server-controlled project mappings via COMPASS_V14_PROJECT_MAP for /v1/v14/recall and /v1/v14/ingest_obs. The hosted beta is a separate option: it exposes https://compass.nautilus.social/mcp/ over streamable HTTP with scoped Bearer tokens.
assay toolkit validates Verdict Schema v2 at structural, semantic, anchoring, and consistency levels.compass-mcp.Agent teams that need searchable session history, local BGE-m3 embeddings, and a shared MCP interface, and can validate cold starts and access boundaries before rollout.
You need a general-purpose vector database, tight first-request latency on untested hardware, or clearly established commercial redistribution terms without further review.
Quick Start & Installation
pip install nautilus-compass # ships the CLI, the MCP server, the A2A adapter and session tools: # nautilus-compass · compass-mcp · compass-a2a # compass-drift-history · compass-session-search · compass-session-writer
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| nautilus-compass ★ | 1.2k | — | Python | — | Local-first hybrid retrieval and drift detection for agent memory over MCP |
| EverOS | 14k | +41 | Python | Apache-2.0 | Local Markdown and indexes give AI agents portable long-term memory |
| LEANN | 13.9k | +33 | Python | MIT | Graph-based vector retrieval that cuts local RAG storage by recomputing embeddin |
| Scrapling | 107.9k | +1.8k | Python | BSD-3-Clause | Python HTTP and browser crawlers that turn websites into RAG-ready Markdown |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/chunxiaoxx/nautilus-compass.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about nautilus-compass
How does an agent integrate with Compass?
compass-mcp entry point for self-hosting.Can I run it on CPU or on a machine with 16 GB of memory?
Can we self-host it commercially or redistribute a bundled image?
LICENSE and LICENSE-ANCHORS, and verify the terms for any model weights and datasets you plan to deploy.When should we choose Compass over mem0?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy