telys_index_repo
Index a code repository by chunking text files and ingesting them into a searchable collection, with incremental updates that re-embed only changed files.
Instructions
Walk a repo directory — respecting .gitignore on git checkouts, else skipping common build/dep dirs; binaries and symlinks escaping the root are refused — chunk every text file, and ingest the chunks into a collection for telys_repo_search. Incremental: re-calls re-fingerprint each file (size, mtime), re-embed only changed files, tombstone removed ones, and no-op fast when nothing changed. All arguments optional: path (repo root; default: the server workspace, else CWD), collection (default 'repo_symbols'), mode ('windowed' default or 'file'), window_lines (48), window_overlap_lines (8), max_file_bytes / max_files / max_seconds (0 = unlimited), force (default false; rebuild every file). Fails when path is not a directory or the collection already exists with a partition key other than repo_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | windowed | |
| path | No | repo root (defaults to server workspace / CWD) | |
| force | No | ignore the fingerprint cache and rebuild every file | |
| max_files | No | ||
| collection | No | repo_symbols | |
| max_seconds | No | ||
| window_lines | No | ||
| max_file_bytes | No | ||
| window_overlap_lines | No |