Back to browse
GitHub Repository

Claude Code Contextual Memory Virtualisation (CMV)

77 starsTypeScript

CMV – Virtual memory for Claude Code sessions

by CosmoSantoni·Feb 19, 2026·2 points·0 comments

AI Analysis

●●●BangerSolve My ProblemShip It

Git-like versioning for Claude's context window—finally replay work without rebuilding understanding.

Strengths
  • Solves real friction: Claude's context resets between sessions, forcing repetitive explanation of codebase state.
  • Clever analogy to OS virtual memory makes the mental model intuitive and memorable.
  • Concrete trim feature (50-70% reduction) is technically nontrivial—strips noise without losing conversation history.
Weaknesses
  • Requires Claude Code specifically; won't work with other agents. Ecosystem lock-in risk if Claude Code adoption stalls.
  • No evidence of multi-user workflow support or collaboration features—solo developers only today.
Target Audience

Claude Code users working on large codebases

Similar To

Cursor context pinning · Continue persistent sessions

Post Description

Claude Code sessions (or any coding agent of your choice) build up real understanding of your codebase, but it all lives in context. Once that fills up, /compact compresses hours of work into a few sentences.

The idea is that contextual memory virtualisation snapshots that context so you can branch from it later. Spend 40 minutes mapping your codebase, snapshot it, then fork into independent sessions for each task, that way they all sharing the same base understanding. When context gets bloated, trim strips the dead weight (raw file contents, base64 blobs) while keeping every message verbatim. 50-70% smaller, nothing lost from my testing.

TLDR; build understanding once, reuse it, trim the bloat.

Similar Projects