When a teammate clones your repository, they normally pay the full indexing cost before they can use the knowledge graph. The team-shared graph artifact eliminates that wait: you commit a single compressed file to your repo, and anyone who pulls it gets an instantly importable snapshot. Their firstDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/DeusData/codebase-memory-mcp/llms.txt
Use this file to discover all available pages before exploring further.
index_repository decompresses the artifact, applies a small incremental diff for any local changes, and is done in seconds instead of minutes.
What the Artifact Is
.codebase-memory/graph.db.zst is a zstd-compressed snapshot of the SQLite knowledge graph, written next to your source code in a .codebase-memory/ directory at the repo root.
Format details:
- SQLite database, indexes stripped,
VACUUM INTOcompacted, then zstd 1.5.7 compressed - Typical compression ratio: 8–13:1 relative to the raw SQLite file
- Two export tiers for different latency requirements:
| Tier | Compression | Trigger | Use case |
|---|---|---|---|
| Best | zstd -9 + index strip + VACUUM INTO | Explicit index_repository call | Committing to the repo |
| Fast | zstd -3 | Background watcher incremental update | Low-latency local refreshes |
Bootstrap Behavior
When the MCP server starts on a machine where no local database exists but.codebase-memory/graph.db.zst is present in the repo, index_repository automatically:
- Decompresses and imports the artifact into the local SQLite store
- Runs incremental indexing to apply any changes made since the snapshot was taken
- Registers the project with the background watcher for ongoing sync
How to Enable
After runningindex_repository on your project, the artifact is written automatically. Commit it:
git pull.
Merge Conflict Prevention
The artifact is a binary file, so standard three-way merges are meaningless on it. Codebase Memory MCP automatically creates a.gitattributes entry on first export:
The
.gitattributes line is created automatically — you do not need to add it manually. Check it in alongside the artifact on your first commit.Opting Out
If you prefer that every developer reindexes from scratch (for example, on a very large monorepo where the artifact itself would be too large to store in Git), add the directory to.gitignore:
Comparison to Similar Tools
The team-shared graph artifact is conceptually similar to graphify’sgraphify-out/ directory, but implemented as:
- A single compressed file instead of a directory of many files
- Explicit two-tier export (best vs. fast) rather than a single export path
- Integrity-checked import — the decompressed database is validated before the local store is replaced
- Zero merge friction via the auto-created
.gitattributesrule