1.1.1

CaviraOSS/LongMemory1.1.1Oct 30, 2025by nullure

AI Summary

This release introduces a robust Memory Compression Engine to reduce token usage and latency, alongside a VS Code extension that integrates with popular AI tools. It also enhances security with API authentication and rate limiting while optimizing performance through caching and event deduplication.

Key Highlights

  • Memory Compression Engine with 5 algorithms (whitespace, filler, semantic, aggressive, balanced)
  • VS Code Extension with AI Auto-Link (supports Cursor, Claude, Windsurf, Copilot, Codex)
  • Performance optimizations including ESH (Event Signature Hash) and MVC (Micro-Vector Cache)
  • API Authentication with rate limiting middleware

New Features

  • Memory Compression Engine (auto-select, batch compression, live metrics)
  • VS Code Extension (HTTP/MCP mode toggle, zero-config setup)
  • API Authentication (key-based, timing-safe comparison)
  • CI/CD GitHub Action for Docker build testing

Full Release Notes

# Changelog

### Added

- **Memory Compression Engine**: Auto-compresses chat/memory content to reduce tokens and latency

  - 5 compression algorithms: whitespace, filler, semantic, aggressive, balanced
  - Auto-selects optimal algorithm based on content analysis
  - Batch compression support for multiple texts
  - Live savings metrics (tokens saved, latency reduction, compression ratio)
  - Real-time statistics tracking across all compressions
  - Integrated into memory storage with automatic compression
  - REST API endpoints: `/api/compression/compress`, `/api/compression/batch`, `/api/compression/analyze`, `/api/compression/stats`
  - Example usage in `examples/backend/compression-examples.mjs`

- **VS Code Extension with AI Auto-Link**

  - Auto-links OpenMemory to 6 AI tools: Cursor, Claude, Windsurf, GitHub Copilot, Codex
  - Dual mode support: Direct HTTP or MCP (Model Context Protocol)
  - Status bar UI with clickable menu for easy control
  - Toggle between HTTP/MCP mode in real-time
  - Zero-config setup - automatically detects backend and writes configs
  - Performance optimizations:
    - **ESH (Event Signature Hash)**: Deduplicates ~70% redundant saves
    - **HCR (Hybrid Context Recall)**: Sub-80ms queries with sector filtering
    - **MVC (Micro-Vector Cache)**: 32-entry LRU cache saves ~60% embedding calls
  - Settings for backend URL, API key, MCP mode toggle
  - Postinstall script for automatic setup

- **API Authentication & Security**

  - API key authentication with timing-safe comparison
  - Rate limiting middleware (configurable, default 100 req/min)
  - Compact 75-line auth implementation
  - Environment-based configuration

- **CI/CD**
  - GitHub Action for automated Docker build testing
  - Ensures Docker images build successfully on every push

### Changed

- Optimized all compression code for maximum efficiency