cimble — self-splitting project memory for Claude Code
A CLAUDE.md that grows by branching, not by piling on. A section outgrows its slot — it moves into its own file, with a backlink.
Plain markdown, no server, no vector DB.
Quick start:
pip install cimble
cimble init my-project
cimble audit my-project
Or as a Claude Code plugin (adds the cimble skill and the growth-threshold hook):
/plugin install cimble --marketplace 34823/cimble
Works with any agent that reads a CLAUDE.md-shaped file.
Codex and shared instructions
Checks also support AGENTS.md. When both instruction filenames exist in one directory,
AGENTS.md is checked once and CLAUDE.md remains a compatibility entry point. This works
with Claude wrappers containing @AGENTS.md; AGENTS-only projects are included in audits.
The existing claude_md_threshold setting applies to either instruction filename.
cimble init continues to create legacy CLAUDE.md scaffolds.
For Codex, configure a command PostToolUse hook running python3 -m cimble.codex_hook
with cimble installed in that Python environment. Approve the new hook through Codex's
normal hook review. The adapter understands apply_patch's tool_input.command; for
shell edits it compares instruction/memory mtimes in the current directory, ancestors,
immediate projects, shared Claude auto-memory and the main checkout of a git worktree.
It does not interpret shell commands, follow memory-directory symlinks or walk archives.
The first scan establishes a baseline for old files; explicit patch paths and recent edits
are checked immediately. Later changes are checked once per session fingerprint.
Warnings are advice only: the adapter never rewrites memory or blocks a successful tool.
Progressive, self-splitting project memory for Claude Code (and any agent that reads a
CLAUDE.md-shaped file).
Named after cambium — the living layer in a tree trunk where old growth turns into new
growth — kept simple. Cambium, but simple.
The cycle
Work gets logged to a diary. CLAUDE.md holds everything about a project — operational
info and an index of topics — as one file, as long as every section in it stays small. The
moment one section (including the topic index itself) outgrows its slot, that section — and
only that section — gets carved out into its own file under memory/, with a line pointing
back to where it came from. Carved-out files grow and split the same way, one layer at a time.
That's the whole idea. Everything below is detail.
Why
CLAUDE.md files rot in one of two directions: they stay too small to be useful, or they grow
into a 400-line wall nobody reads before editing. cimble gives growth a shape instead of a
ceiling — a project's memory is allowed to get big, but only by branching, never by piling on.
Why not an MCP memory server
Most "memory for Claude Code" projects solve retrieval by adding infrastructure: an MCP
server process, a vector database, embeddings, a background indexer — sometimes several of
these stacked together. That buys semantic search, at the cost of a service to run, a schema
to maintain, and results that even the person who set it up can't fully predict or audit.
cimble bets the other way. Memory is plain markdown files, read the exact same way the agent
already reads CLAUDE.md — no server, no embeddings, no ranking step to get wrong. Retrieval
is a fixed rule, not a similarity score: lazy descent from CLAUDE.md, one hop into
memory/ only if a hook matches the task. What gets read is exactly what a human can predict
by reading the same file the agent just read. Growth is bounded by construction — the
40/120-line thresholds — not by summarization after the fact, so there's no slow drift toward
context bloat that then needs its own compression layer to fix. And because it's just files in
git, every memory is diffable, reviewable in a normal PR, and portable to any agent that reads
a CLAUDE.md-shaped file — not locked to one vendor's plugin format.