Currently, when starting code-memory server, the codebase must be indexed from the current working directory (.). For users managing multiple projects or preferring to run the server from a different location, there's no way to specify an alternative default index directory without passing it to every tool call (index_codebase, search_code, etc.).
This is repetitive when working with a single project directory consistently.
Proposed Solution
Add a --directory CLI flag to set the default index directory:
uvx code-memory --directory /path/to/project
code-memory-server --transport sse --directory /home/user/myproject
Or add the environment variable CODE_MEMORY_DEFAULT_DIR, but it's less discoverable.
Currently, when starting code-memory server, the codebase must be indexed from the current working directory (.). For users managing multiple projects or preferring to run the server from a different location, there's no way to specify an alternative default index directory without passing it to every tool call (index_codebase, search_code, etc.).
This is repetitive when working with a single project directory consistently.
Proposed Solution
Add a
--directoryCLI flag to set the default index directory:Or add the environment variable CODE_MEMORY_DEFAULT_DIR, but it's less discoverable.