index_repo
Indexes a local folder or Git repository so other tools can search it; re-run after code changes to re-embed only changed files.
Instructions
Index a repository so the other tools can search it. Use this first, and again after the code changes: re-running only re-embeds files whose content changed. A URL is cloned with full history (blobless), so explain_history works. Reports progress while it runs, and returns file counts and the commit indexed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name to index it under. Defaults to the folder or repository name. | |
| source | Yes | A local directory, or an https git URL such as https://github.com/owner/repo. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| root | Yes | ||
| commit | Yes | ||
| seconds | Yes | ||
| files_seen | Yes | ||
| chunks_total | Yes | ||
| full_rebuild | Yes | ||
| commits_added | Yes | ||
| commits_total | Yes | ||
| files_indexed | Yes | Files embedded this run (new or changed). | |
| files_removed | Yes | ||
| files_unchanged | Yes |