sync_vault
Detect and apply repo changes to keep your vault and search index synchronized after code changes.
Instructions
Detect and apply repo changes since the last ingest.
Use this to keep the vault and search index in sync after code changes without re-processing the entire repo. Uses git diff against the commit SHA saved during the last ingest_repo run.
dry_run=True (default): reports changed, new, and deleted files — no changes made. dry_run=False: for each modified file, regenerates its summary and asks Claude whether it's a REAL conflict vs. the existing vault note (not just phrasing/ comment/formatting drift). Only real conflicts replace the note and reindex that file's ChromaDB questions — everything else is left as-is. Either way, the vault note gets a Sync Log entry noting the commit that was checked. New files are ingested for the first time; deleted files are removed.
Always run with dry_run=True first to review the change set, then call again with dry_run=False to apply. Requires the repo to be a git repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| repo_path | Yes | ||
| vault_root | No | ||
| chroma_path | No | ||
| explanations_json_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |