mirror of
https://github.com/giancarloerra/socraticode.git
synced 2026-07-03 14:05:21 +02:00
fadfd8a80e
When working with git worktrees (or any setup where the same codebase lives in multiple directories), each path currently gets its own Qdrant collection. This means the same codebase is indexed multiple times. This change adds a SOCRATICODE_PROJECT_ID environment variable that, when set, overrides the path-based project ID generation. All directories sharing the same SOCRATICODE_PROJECT_ID will use the same Qdrant collections (codebase, codegraph, context), eliminating redundant indexing. The value must match [a-zA-Z0-9_-]+ to remain Qdrant-friendly. An error is thrown at startup if the value contains invalid characters.