Skip to content

Compartment 4.17.0

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 03:25
· 7 commits to main since this release

Compartment 4.17.0 expands Compartment into a versioned, encrypted Document Management System (DMS) inside the same .vault file, adds an optional cross-platform desktop GUI (compartment gui) across macOS, Windows, and Linux, and adds inline Document Search directly into the macOS menu bar app and its Windows/Linux tray and panel equivalents while keeping every existing control intact - 100% offline, with zero network calls of any kind and a portable, encrypted .vault file you own and can back up or copy anywhere, local disk, USB, NAS, or any cloud drive, like any other file.

Downloads

File For
Compartment-4.17.0.pkg macOS on Apple silicon, Developer ID signed and Apple notarized, one click, with the menu bar app
Compartment-4.17.0.dmg macOS on Apple silicon, Developer ID signed and Apple notarized, drag to Applications
Compartment-4.17.0-intel.pkg macOS on Intel, Developer ID signed and Apple notarized, one click
Compartment-4.17.0-intel.dmg macOS on Intel, Developer ID signed and Apple notarized, drag to Applications
compartment-4.17.0.mcpb Claude Desktop extension (attached a few minutes after publishing)
compartment-4.17.0-py3-none-any.whl pip and offline installs, any OS
compartment-4.17.0.tar.gz source
SHA256SUMS.txt checksums of all of the above
pipx install compartment && compartment init      # or: uv tool install compartment

What's New

Encrypted, Versioned Document Management System (DMS)

  • Documents strengthen core atomic memory without reducing it: All existing memory guarantees remain untouched (200-char shape gate, facts vs. opinions, hybrid semantic + lexical + 1-hop graph search, single .vault file, zero plaintext on disk, zero new dependencies, and zero extra work on vaults with no documents).
  • Cryptographic grounding and automatic staleness detection: Atomic memories (memory_store, memory_store_many) and relations (memory_link) can now reference doc_id and doc_section, pinning the exact document version they were derived from. Updating, archiving, or deleting a source document automatically flags older grounded memories doc_stale: true (and returns affected_memory_ids instead of silently deleting memories).
  • Per-document-version encryption and crypto-shred: Every document version uses its own random 256-bit data key wrapped under the master key with dedicated AEAD labels (compartment-doc-key:, compartment-doc-body:, compartment-doc-chunk:), enabling permanent per-version or whole-document crypto-shred (doc delete --shred).
  • Stdlib-only multi-format extraction, chunking, patching, and diffs: Extracts searchable text cleanly from Markdown, plain text, source code, HTML, .docx, .odt, .pptx, .xlsx, .epub, .rtf, and simple .pdf files with zero external dependencies. Includes Markdown outlines, targeted section/replace/append patching (doc_patch), unified diffs (doc diff), living memory compilation (doc compile), lossless multi-machine vault merge, JSONL (--include-documents), and filesystem import/export (doc import, doc export, doc export-all).
  • Non-crowding unified recall and 6 new MCP tools (20 total): memory_search surfaces matching document excerpts in a dedicated documents array without displacing atomic results, and adds doc_put, doc_patch, doc_get, doc_list, doc_search, and doc_delete across MCP, CLI (compartment doc ...), Hermes plugin, and the local read-only dashboard.

Optional Cross-Platform Desktop GUI (compartment gui / compartment app)

  • Full encrypted workspace with zero new dependencies and zero sockets: Built on Python's standard-library tkinter/ttk for macOS, Windows, and Linux (works even under --assert-offline), with a 4-tab workspace for Documents (editor, outline, version history & unified diffs, grounded memories & inline staleness creator, file/folder import & export, archive/crypto-shred, memory compilation), Memories (hybrid search, recent, stale-only, source-document jumps), Relations, and Vault & Agents (live status, settings, agent connections, backups, merge, audit verify, selftest).
  • Live session & multi-process security: Automatically drops the in-memory master key and returns to the Lock screen if locked externally (compartment lock or the top bar), and seamlessly reloads external agent/CLI vault writes without discarding unsaved edits.

Top Bar App (macOS) & Windows/Linux Tray and Panel Upgrades

  • All existing options preserved + inline Document Search: Keeps every existing toggle, Lock/Unlock, Create Vault, Back up/Merge, Change Password, Connect an Agent row, Last 5 Memories, Dashboard, Refresh, Quit, and Privacy link intact, while adding inline Document Search (read-only over VaultView with zero vault writes and zero idle RAM overhead), clickable in-panel Document Preview, and an Open GUI button across macOS menu bar, Windows notification tray, and Linux panel (plus [Desktop Action gui] in Linux's .desktop entry).

macOS App Sandbox & Packaging Improvements

  • Adds macOS App Sandbox and Mac App Store packaging support, in-app Privacy Policy link in the menu bar popover, and cross-platform CI stability fixes for Windows shared-memory teardown and macOS SDK 26 button layout.