Replies: 1 comment
-
|
this actually a known issue people are running into with agentic/worktree setups right now. Because codebase-memory-mcp is built on a local SQLite file, it natively hashes the explicit folder path to create isolated project indexes. When you spin up a new worktree, it treats it as a completely separate project and starts a full re-index from scratch. There is actually an open issue on their GitHub right now (#351) discussing adding automatic canonical repository detection to fix exactly this. Until that feature lands natively, your best workaround is to override the storage path in your config to point your worktrees to the exact same database file, or manually symlink the primary index file into your feature worktree directories. This video gives a quick, helpful overview of the inner workings of the tool: [codebase-memory-mcp overview https://www.youtube.com/watch?v=D2LtdUHtKJM |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am working with a large legacy project, and the codebase-memory-mcp really helps with both token usage and search.
My workflow includes creating separate git worktrees per feature I am implementing. Is it possible to share the index between git worktrees so I can spend less time indexing?
Beta Was this translation helpful? Give feedback.
All reactions