Storage & Architecture
Storage tiers
Section titled “Storage tiers”CWM automatically manages storage across tiers:
- CPU Memory — Fast, limited capacity
- Disk — Large capacity, compressed
- Redis — Distributed, shared across instances
Promotion and demotion between tiers is automatic. Fast restore when warm, reliable restore when cold, shared restore with Redis.
Session isolation
Section titled “Session isolation”Each session gets a unique cache_salt, ensuring:
- No cross-session data leakage
- Protection against timing attacks
- Clean separation between concurrent contexts
Production status
Section titled “Production status”- 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
Development
Section titled “Development”git clone https://github.com/mcp-tool-shop-org/context-window-managercd context-window-managerpython -m venv .venvsource .venv/bin/activatepip install -e ".[dev]"pytest tests/unit/