Plugins and integrationsReviewed · MaxFreedomPollard

Compartment

Compartment is an encrypted local memory service for AI assistant users, but recalled text can still enter a connected cloud assistant's context. Its README describes a shared vault accessed through the Model Context Protocol (MCP), with local search, a desktop panel and no required Compartment account or API key.

Researched 14 Nov 2026

In short.

Compartment is an encrypted local memory service for AI assistant users, but recalled text can still enter a connected cloud assistant's context. It documents shared memory across agents, local embeddings, combined semantic and keyword search, source tracking and explicit preference replacement. Capture behavior varies by integration, and the host assistant remains responsible for interpreting stored information. The available evidence establishes the documented design, while implementation correctness, security guarantees and reported performance remain untested here.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is only README.md at [https://github.com/MaxFreedomPollard/Compartment/blob/main/README.md], captured at revision a90b7824f4a14ff96ddbbd7b46ddde57f9a1939d, with the accompanying LICENSE as legal context. Both supplied texts are covered. Linked implementation files, security and format documents, integration guides, comparison sources, release artifacts, dependencies and bundled-model licensing are outside the supplied evidence. Runtime behavior, client compatibility, performance and security were not tested.

The overview

identity

Compartment combines an MCP memory server, command-line tools and a desktop control panel. Its purpose is to let connected AI agents save and retrieve durable information across sessions and projects using a vault on the user's computer.

The project README is at [https://github.com/MaxFreedomPollard/Compartment/blob/main/README.md]. It describes integrations for Claude Code, Claude Desktop, Hermes Agent, OpenClaw, AntiGravity, Codex and other MCP clients. These are documented integrations, rather than compatibility results established here.

assessment

Compartment is a plausible fit when several assistants need reusable preferences, decisions and technical facts without a remote memory database or remote embedding API. Its distinguishing combination is encrypted storage, local retrieval and one embedding process shared across agents.

The author reports median full hybrid search latency of 11.6 milliseconds and p95 latency of 14.7 milliseconds on an 8 GB baseline laptop. Reported memory use is 68 MB for the loaded shared embedding process and approximately 60 MB per MCP server before its vault and index. These measurements were not reproduced; the laptop's exact hardware and supporting benchmark output are not supplied.

users

Developers moving between coding assistants could use it to retain project facts and preferences across sessions. People using multiple agents on one computer could share selected information through the same vault, with documented caller and namespace permissions.

The desktop panel offers passphrase entry, locking and agent connection controls for users who prefer buttons. Experienced developers get CLI commands, MCP tools, configurable grants and import/export facilities. Users needing automatic synchronization between computers would need another arrangement: the README documents moving a locked vault file, rather than an automatic synchronization service.

capabilities

Documented memory features include individual and batch writes, search, recent records, source and discovery dates, expiration, fact/opinion distinctions and explicit supersession. Authored memories have a configurable 200-character default limit and reject lists, headings and paragraphs. Superseded records leave search but remain readable by identifier in an audit chain.

Additional features include dated relationships between entities, caller permissions, signed read-only memory packs, plaintext JSONL export/import and a local read-only dashboard. New vaults include approximately 6,700 reference facts; a setting excludes them from search.

Capture differs between clients. The Claude Code integration installs a hook that copies saved memory files while the vault is unlocked. The Hermes provider is described as recalling and storing each turn, while its portable plugin depends on model tool calls. Universal, complete conversation capture is not established.

Using it

requirements

A connected MCP client, local storage and a user-chosen vault passphrase are needed for the documented agent workflow. Compartment itself requires no account or API key. An entirely offline assistant also requires an offline host model; local memory alone does not supply one.

The README lists macOS, Windows 10/11 and Linux targets, including supported ARM64 systems. Python installations generally support Python 3.11–3.14, with narrower ranges for Intel or older supported Macs and Windows ARM64. Native macOS installers bundle Python and dependencies. Linux's desktop panel needs Tk, and Windows needs the appropriate Microsoft Visual C++ runtime.

ONNX Runtime availability determines several platform limits. Linux's mainstream installation requires glibc 2.28 or newer; Alpine, FreeBSD and Termux use system-provided ONNX Runtime routes. The 8 GB laptop is a measurement baseline, not an established minimum RAM requirement.

mechanism

A bundled 384-dimension int8 ONNX model converts text into vectors representing meaning. Search combines vector similarity with keyword evidence, so both paraphrases and literal identifiers can match. The documented ranking uses weighted negative-log evidence, with vector and lexical weights of 0.75 and 0.25, plus a smaller rank-agreement term. Importance and recency affect ordering.

The README describes overlapping embedding windows for long records, exact vector search below 20,000 records and approximate HNSW search above that when suitable SIMD support is available. Search indexes reside in RAM. A shared embedding daemon avoids loading a separate model for every connected agent.

Documented storage protection uses XChaCha20-Poly1305 encryption, Argon2id key slots and per-record keys. Memories and embedding vectors are encrypted at rest. MCP communication uses standard input/output; the optional dashboard separately serves read-only pages on 127.0.0.1 behind a random URL token. Compartment contains no internal LLM: the host assistant decides what information to store, link and use.

setup

The recommended command-line route is pipx install compartment, followed by compartment init. Initialization prompts for a passphrase, creates the vault, loads reference facts, connects supported installed agents and starts the desktop panel. The documented headless option is compartment init --no-app.

A later connection can use a command such as compartment integrate claude or compartment integrate codex. Manual MCP configuration launches compartment serve over standard input/output. Desktop clients may require the executable's absolute path because their environment does not necessarily include the shell's PATH.

Integration can modify client configuration and install instructions or skills. Claude integration additionally imports existing memory files and installs a capture hook unless those options are disabled. The README says configuration writes are backed up and merged. Review the changes relevant to the chosen client before relying on automatic capture.

example

In a hypothetical workflow, a user tells an assistant, 'Put figures before conclusions in client reports.' The assistant could store that short preference as an opinion, with source 'from chat' and the actual discovery date. An authorized assistant in a later session could search the unlocked vault for reporting preferences.

If the preference changes, the documented opinion mechanism can return an existing similar opinion and require the caller to explicitly supersede its identifier or keep both. The older record then remains available by identifier but leaves normal search. This illustrates the documented behavior; no storage or retrieval was performed.

Assessment & evidence

limitations

The offline claim concerns Compartment's own storage and retrieval design. Because retrieved information is returned to the host assistant, a cloud-connected host may include it in remote model requests. Encryption at rest does not prevent an authorized assistant from receiving plaintext while the vault is open.

Stored-data wrappers and quarantine warnings depend on the host treating recalled content as data. They do not establish resistance to prompt injection or make stored claims accurate. Source labels, dates and an audit chain record provenance and changes rather than independently verifying truth.

Retention and access need deliberate configuration. Expiration can remove wanted memories, the default auto-lock period is 30 idle minutes, and new vaults do not generate a recovery phrase. Plaintext export creates an unencrypted copy. The agent-facing unlock tool is disabled by default because enabling it exposes the passphrase to model context.

Implementation code, the full threat model and security test results were not supplied. Cryptographic correctness, crash recovery, permission enforcement and actual client behavior therefore remain unassessed.

reasoning

The architectural tradeoff is local persistence and retrieval with host-controlled interpretation. This removes a required remote embedding service from the memory layer, but leaves the assistant responsible for deciding what is durable, preserving context when splitting claims and resolving changed preferences.

The default short-record format appears better suited to reusable facts and decisions than intact session narratives. That is a design inference, not a measured accuracy result. Likewise, shared embeddings can reduce duplicated model loading, but total RAM still grows with server processes, vault contents and indexes.

alternatives

The README names @modelcontextprotocol/server-memory, basic-memory, mem0, Graphiti/Letta and Hindsight among alternatives. Its comparison describes server-memory as plaintext JSONL, basic-memory as Markdown plus SQLite, and several other options as database-backed or model-assisted systems.

Those descriptions come from Compartment's own comparison, dated 2 September 2026. The competing projects' current capabilities, privacy defaults, licenses and prices are not independently established here. Useful comparison questions are where plaintext exists, whether remote model calls are required, how capture works and how access is separated between agents.

evidence

The technical evidence is README.md at revision a90b7824f4a14ff96ddbbd7b46ddde57f9a1939d, available at [https://raw.githubusercontent.com/MaxFreedomPollard/Compartment/a90b7824f4a14ff96ddbbd7b46ddde57f9a1939d/README.md]. Legal evidence is the accompanying LICENSE at [https://raw.githubusercontent.com/MaxFreedomPollard/Compartment/a90b7824f4a14ff96ddbbd7b46ddde57f9a1939d/LICENSE].

The README supplies architecture descriptions, commands, integration claims and author-reported measurements. Its claims of 800-plus tests, offline enforcement and recovery behavior are documentation claims rather than observed test results. No commands, installation, integration or benchmarks were executed.

Access & freshness

costs

The accompanying Apache-2.0 license grants no-charge, royalty-free rights subject to its terms. The README says Compartment requires no account or API key and uses local embeddings rather than a required remote embedding service.

No subscription, usage tariff or paid support price is stated. Total operating cost is unknown: hardware, electricity, storage, administration and any connected assistant's provider charges are separate considerations. The evidence does not establish a monthly cost or a measured saving.

rights

The supplied repository LICENSE is Apache License 2.0 and includes Copyright 2026 Max Freedom Pollard. It permits use, modification and redistribution, including commercial use, subject to its conditions.

Redistribution requires a license copy, retained applicable notices and prominent change notices in modified files. Applicable NOTICE attributions must also be preserved if such a file is included in the work. The license includes a limited contributor patent grant, does not generally grant trademark rights and provides the work without warranties. Separate dependency and bundled-model licenses were not supplied and are not assessed.

freshness

The supplied snapshot was captured on 14 November 2026 at 01:59:49 UTC and is pinned to revision a90b7824f4a14ff96ddbbd7b46ddde57f9a1939d. This identifies the documented source precisely; it does not establish the version currently distributed through package registries or release installers.

The README mentions historical releases and dates its competitor comparison to 2 September 2026. Current release contents and compatibility with later client or dependency versions are unknown.

actions

Before adoption, check the platform matrix and the chosen client's capture behavior. Decide which agents need read or write access, whether starter facts belong in search and whether automatic capture and expiration suit the intended information.

Read the linked threat model at [https://github.com/MaxFreedomPollard/Compartment/blob/a90b7824f4a14ff96ddbbd7b46ddde57f9a1939d/SECURITY.md], and consider what the host assistant does with recalled text. Begin with nonsensitive sample memories, inspect their source and dates, check retrieval across sessions and confirm locking and permissions.

The README provides compartment selftest, compartment audit verify and compartment bench for local validation. These are suggested next steps, not completed checks. Plan backups and credential handling before entrusting important information to the vault.

Evidence for this report

LICENSEnotice · checked 2026-11-14
README.mdselected · checked 2026-11-14