The IDE's installation directory is unnecessarily indexed.
My environment:
- Windows 11
- Antigravity IDE 2.0.3
- codebase-memory-mcp 0.7.0 with auto indexing on (true)
Behavior: This tool indexes the IDE installation directory with binary files and creates a database.
"C:\Users\xxxi\.cache\codebase-memory-mcp\C-Users-xxx-AppData-Local-Programs-Antigravity IDE.db"
"C:\Users\xxx\.cache\codebase-memory-mcp\C-Users-xxx-AppData-Local-Programs-Antigravity.db"
Indexing the IDE's own installation directory is unnecessary and takes up hundreds of MB of space. We only need to index the projects that are open within the IDE.
Thanks for the report — the IDE's install directory should not be swept into the index. Will investigate the default exclusion rules.
Opened a focused fix for this: https://github.com/DeusData/codebase-memory-mcp/pull/468
The patch handles the case where auto-index passes the Antigravity install directory itself as the discovery root. It normalizes the full root path and returns an empty discovery result for roots, with a regression test covering a synthetic install tree.
Correction on the path pattern from my previous comment: the PR skips roots matching AppData/Local/Programs/Antigravity* after normalizing path separators and case.
Quick update, @EnziinSystem — thanks again for the clear report.
I closed the focused patch in #468: it special-cased the literal Antigravity path and returned an empty result silently, which we can't put in the discovery core (it reports "success" with zero files and no warning, and doesn't generalize to the next IDE).
The right home for this is the configurable skip/exclude layer we're building:
- #500 — make the built-in skip list user-overridable (umbrella; design is a config key +
.cbmignorenegation) - #497 —
.ignore-style override layer - #543 — the first half (a
.cbmignore!negationun-skips a built-in dir) — in review
Your case maps to the deferred config-key half of #500: a user-settable exclude in the global config (~/.config/codebase-memory-mcp/config.json — the same file that already holds extra_extensions), so you could tell cbm once, globally, to never index **/AppData/Local/Programs/**, and have auto-index honor that when it picks roots — not just when walking subdirectories. That root-selection part is the real fix here: auto-index is currently choosing the IDE's own install directory as a project root, and it shouldn't pick up install/Program-Files-type locations on its own.
Linking this to #500 and keeping it open so the root-selection angle isn't lost. 🙏
This issue now has a first-class, durable reproduction in the cumulative bug-reproduction suite landing in #667 — a test that pins the exact failing behaviour, so it's tracked and guarded against silent regression. Where #667 also lands the root-cause fix, that's called out in the PR; otherwise the reproduction makes the eventual fix straightforward and verifiable.
The reproduction goes live once #667 merges. (Posted from the release branch's QA pass.)
Fixed on main in 202ea657 (PR #1848, "fix: block sensitive program roots before background work").
Thank you for reporting it. Indexing an IDE's own installation directory is wasted work at best, and on some layouts it means walking into program directories that should never have been touched — so the fix blocks sensitive roots before any background work starts rather than filtering results afterwards. Noticing that the indexer had wandered somewhere it had no business being is exactly the kind of thing that goes unreported because it looks like slowness rather than a bug.
Fixed on main in
202ea657(PR #1848, "fix: block sensitive program roots before background work").Thank you for reporting it. Indexing an IDE's own installation directory is wasted work at best, and on some layouts it means walking into program directories that should never have been touched — so the fix blocks sensitive roots before any background work starts rather than filtering results afterwards. Noticing that the indexer had wandered somewhere it had no business being is exactly the kind of thing that goes unreported because it looks like slowness rather than a bug.
What do we do if the IDE path exposes the source code of native code which for obvious reasons need to be indexed as they are part of the application source?