Index codebase
scratchbook_indexIndex or refresh a codebase so it can be semantically searched. Incremental updates only re-embed changed files and respect .gitignore.
Instructions
Index or refresh a codebase into the scratchbook so it can be semantically searched. Incremental — only files changed since last run are re-read and re-embedded. Respects .gitignore (uses git ls-files when available). Run once when you start working on a project, and again after significant edits. Pass the absolute project root as path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to the codebase root. Defaults to the server's cwd. | |
| reindex | No | Force a full re-embed of every file, ignoring change detection. |