reindex
Index your workspace before using other tools. Supports incremental or forced re-indexing, with confirmation for large projects and directory skip options.
Instructions
MUST run FIRST: index workspace before ALL other malong tools. Over-threshold workspaces require two-step confirm (call → get token → confirm). blocking/force options. malong = LLM-native toolset.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Mark ALL files dirty + re-extract (ignore mtime). Use to purge stale index. Default: incremental. | |
| confirm | No | Second-step confirmation token from a previous needs_review response (TTL 10 min). REQUIRED to start indexing when total_files > threshold. NEVER invent a token — re-call reindex to get a fresh one. | |
| blocking | No | If true, wait for indexing to complete before returning (default false = async). | |
| maxFiles | No | Index upper bound (default 5000): after confirmation, indexing stops at this many files and warns (truncated). Raise it or use ignoreDirs to index everything. | |
| skipDirs | No | Skip specific directories by relative path, e.g. ["runtime1", "0通天/eval-cases"]. Useful when pre-check says too many files. | |
| threshold | No | Pre-check warning line (default 2000): workspaces with more files return needs_review + confirm_token before indexing (no silent skip). | |
| ignoreDirs | No | Additional directory names to skip globally (e.g. ["deps", "archive"]). Combined with built-in defaults. | |
| workspace_dir | No | Project root (abs). Omit to check indexing status. |