reindex
Update the local code index after major file changes or for a subdirectory. Control postprocessing level to skip enrichment for faster runs.
Instructions
Trigger (re)indexing of the project or a subdirectory. Mutates the local index (SQLite). Use after major file changes; for single-file updates prefer register_edit instead. The optional postprocess flag controls how much work runs after raw symbol extraction: "full" (default) does everything; "minimal" skips LSP enrichment + env-var scan + git history snapshots (~30-50% faster on warm CI runs); "none" also skips edge resolution and gives you raw symbols only. Idempotent — safe to re-run. Returns JSON: { status, totalFiles, indexed, skipped, errors, durationMs, postprocess }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Subdirectory to index (default: project root) | |
| force | No | Skip hash check and reindex all files | |
| postprocess | No | Postprocess level. full = everything (default). minimal = skips LSP/env/snapshots. none = also skips edge resolution. |