# Repository Briefing: chunxiaoxx/nautilus-compass
> Source: https://repoforai.com/repo/chunxiaoxx/nautilus-compass (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/chunxiaoxx/nautilus-compass
- **Official Docs / Website**: https://compass.nautilus.social
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Python
- **License**: See repository
- **Engineering Health**: B+ (69/100 · Maintenance 35/35 · Adoption 8/25 · Releases 20/20 · License 6/20)
- **Latest Release**: v3.3.2 (2026-11-30) — https://github.com/chunxiaoxx/nautilus-compass/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI, MCP
- **Momentum**: 1,181 ★ total (+0 24h / +0 7d) · 36 forks
- **Topics**: `a2a`, `agent-memory`, `agentic-ai`, `benchmark`, `claude-code`, `cross-agent`, `evaluation`, `llm`, `llm-as-judge`, `local-first`, `long-term-memory`, `mcp`
- **When to Use**: Best for: 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. Skip if: You need a general-purpose vector database, tight first-request latency on untested hardware, or clearly established commercial redistribution terms without further review.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Ingestion: Embeds raw text locally with BGE-m3 without an extraction LLM or graph.
- Retrieval: Routes single-session and knowledge-update queries to turn windows; session-level search fuses BM25 and dense rankings via RRF.
- Drift detection: Scores prompts against failure-transcript anchors with BGE-m3 cosine similarity; held-out AUC was 0.83 in the project evaluation.
- Agent integration: Claude Code hooks automate recall and writing, while MCP serves other clients and the Python package includes an A2A adapter.
- Verification: The `assay` toolkit validates Verdict Schema v2 at structural, semantic, anchoring, and consistency levels.
- Release readiness: v3.3.1 enforces JWT authentication and server-side project mapping on two v14 routes; v3.3.2 fixes startup from a pip-installed `compass-mcp`.
```

## Quick Start / Clone
```bash
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
```
