reindex_project
Builds and updates a project symbol index from source code using AST parsing and regex. Run at project start or after code changes to enable accurate code symbol checking and overview.
Instructions
Build or refresh the project symbol index. Extracts all functions, classes, variables, and exports using AST parsing (JS/TS) or regex (Python/Go/Rust). Run this when starting work on a project for the first time, or after significant code changes. The index powers check_symbols and get_project_overview. Fast: ~350 files in under 2 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | Max directory depth to scan. Default: 8. | |
| max_files | No | Max files to scan. Default: 2000. | |
| project_path | No | Project root path. If omitted, auto-detects from cwd. |