This extension provides a tool to index markdown files in a git repository for semantic search.
To install this extension, you can use the gemini CLI:
gemini extension install https://github.com/cloud-aspect/doc-indexerOnce the extension is enabled, you can use the index tool in your Gemini CLI prompts.
This tool clones a git repository, indexes the markdown files, and saves the index to a local context file.
Arguments:
repo_url(string, required): The URL of the git repository to index.output_path(string, optional): The path to save the index file to. Defaults to~/.gemini/doc-indexer/repo_index.json.
Example:
> index repo_url="https://github.com/google/gemini-cli"
To build and test this extension locally, follow these steps:
-
Clone this repository.
-
Run
npm installto install the dependencies. -
Run
npm run buildto compile the TypeScript code. -
Enable the extension for local development:
gemini extension enable path/to/this/repository