collabmem: The File System That Teaches Claude Code to Remember

A plain-text memory stack for AI collaborators. It turns context into a versioned world model, episodic notes, and explicit memory maintenance commands.

7 min read • View on GitHub • More from visionscaper

A clerk's desk with two ledgers, one packed with indexed history and the other organized as a world model binder. A hand drops a readmem tag into the system while a Git file cabinet stands behind it, showing that memory is curated, versioned, and inspectable.
collabmem treats memory like a filing system, not a black box. Episodic history and world state stay separate, and Git turns both into something humans can audit.
Key Takeaways

Why memory is the wrong word

Most AI memory tools promise recall. collabmem aims higher. It is trying to maintain a shared project state across sessions, not just recover a fragment of old conversation.

That shift matters. A retriever answers, “What did we say before?” A memory operating system answers, “What do we believe now, what changed, and where should that live?”

A narrow bridge connects a small desk of always-visible files to a set of archive drawers. One arrow moves mature knowledge upward into a world model, while another moves overflow downward into episodic notes, showing how the system keeps memory small enough to stay useful.
The system does not hoard everything in context. It keeps a few files close, then moves detail in and out of view on purpose.

The two-layer memory model

The repo splits memory into two different jobs. Episodic memory tracks what happened. World model memory tracks what is true, stable, or preferred.

That separation is the project’s real discipline. It keeps history from getting confused with state, and it gives the AI a place to store facts that should survive one long conversation and still make sense in the next.

This diagram shows the choreography behind the system. The point is not just where files live, but when each layer is allowed to enter the conversation.

The most important idea: Tier 1 vs Tier 2

Tier 1 is the active working set. It stays in context because it is small, high-signal, and constantly relevant. Tier 2 is the archive, searched only when Tier 1 points to something worth pulling in.

That is a cache hierarchy for cognition. It is also the repo’s most opinionated move: instead of asking a vector index to guess relevance, it asks the model to follow a strict reading and updating method.

Through the use of in-context memory index files, the AI can maintain a global awareness of what's in the memory.

visionscaper, Project Creator / Maintainer · visionscaper/collabmem

Sentinel tokens as a tiny command language

The user-facing control surface is deliberately small: readmem, updatemem, and maintainmem. Those tokens are not decoration. They turn memory into an explicit operation instead of an ambient guess.

That choice changes the contract. The AI is not free to rewrite the past whenever it feels like it. It has to read, propose, and maintain under named rules.

How memory stays small enough to survive

The maintenance story is what makes the architecture sustainable. Mature knowledge gets consolidated upward into the world model. Overstuffed files get compacted. Old material is preserved in notes or archives instead of disappearing.

That means the system can grow without letting the active context collapse under its own weight. The goal is not maximum retention. The goal is useful retention.

MechanismWhat it doesWhy it matters
ConsolidationMoves durable knowledge into the world modelKeeps important context visible without rereading everything
CompactionShrinks oversized active filesPrevents Tier 1 from becoming junk drawer memory
ArchivingPreserves removed detail in notes or index archivesRetains history without bloating the working set

Why Git matters here

Git is not just storage in this design. It is the audit trail, the merge strategy, and the explanation layer for how memory evolved over time.

That is why the project feels collaborative instead of personal. A shared repo can hold a shared world model, and the diff shows who changed what the AI believes.

LayercollabmemVector-first memoryPlatform memory
StoragePlain text files in GitEmbeddings and indexed chunksBackend-managed memory store
RetrievalRead, search, then updateSemantic nearest-neighbor searchPlatform-specific retrieval
TransparencyFully inspectableOpaque similarity scoresLimited visibility
CollaborationTeam-readable world modelUsually session-centricTied to one ecosystem

The memory is file-based and represented as plain text (easy to inspect), can be git-tracked (storage & versioning) and can be used to build up knowledge within a team of users. So no databases, no vector stores, no infrastructure. Just files and a methodology that the AI follows.

visionscaper, Project Creator / Maintainer · visionscaper/collabmem

What it trades off

This approach is elegant, but it is not forgiving. The repo’s own framing makes the dependency clear: it works best when the model can reliably follow the methodology and maintain the files with discipline.

That is the central risk. The system is transparent because it asks for structure. If the structure slips, the memory slips with it.

StrengthWeaknessImplication
Legible filesLess automatic than vector searchHumans can inspect and repair the system
Explicit commandsRequires disciplined usageThe agent must follow instructions closely
Git historyMore overhead than hidden storageYou get provenance and collaboration for free

The project creator puts it plainly in the README:

Status: v1.8 — we are actively testing and developing this. The episodic memory (notes, index) is the more mature component; the world model memory is functional but earlier in its development.

visionscaper, Project Creator / Maintainer · visionscaper/collabmem

Where it sits in the landscape

Compared with vector-first memory systems, collabmem is slower in the search-engine sense and stronger in the systems-design sense. It optimizes for clarity, editability, and shared authorship.

That makes it a good fit for AI collaborators that live inside a real codebase. It is less about magical recall and more about making the model’s world state something a team can inspect, change, and trust.