Skip to content

Add CLI flag to specify default code index directory #10

@kostia-ivashchenko

Description

@kostia-ivashchenko

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions