Skip to content

Storage & Architecture

CWM automatically manages storage across tiers:

  1. CPU Memory — Fast, limited capacity
  2. Disk — Large capacity, compressed
  3. Redis — Distributed, shared across instances

Promotion and demotion between tiers is automatic. Fast restore when warm, reliable restore when cold, shared restore with Redis.

Each session gets a unique cache_salt, ensuring:

  • No cross-session data leakage
  • Protection against timing attacks
  • Clean separation between concurrent contexts
  • 366 tests — full async coverage with pytest-asyncio, property-based tests via Hypothesis
  • 7 completed phases — from core infrastructure through integration and polish
  • vLLM + LMCache stack — built on proven inference infrastructure
Terminal window
git clone https://github.com/mcp-tool-shop-org/context-window-manager
cd context-window-manager
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest tests/unit/