Overview
Walks a project directory, extracts semantic code chunks using AST analysis, embeds them locally, and stores them in a vector index. Subsequent calls skip unchanged files (incremental updates).Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
path | string | required | Absolute path to the codebase root directory |
force | boolean | false | If true, re-indexes all files even if unchanged |
Example
Notes
- Only re-indexes files whose mtime or size has changed since the last run
- Use
force=trueto rebuild the index from scratch (e.g. after changing the embedding model) - The index is stored at
~/.vecgrep/<sha256-of-project-path>/index.db
