sync_file_changes
Link recent file changes to stored knowledge after commits. Returns relevant lessons and records modifications to build a causal memory of why changes occurred.
Instructions
Associate recent file changes with brain knowledge. Pass a list of changed file paths (from git diff --stat). Returns lessons relevant to those files, and records the file changes in session history. Call this after commits so the brain tracks what changed and why.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | UUID of the cache instance | |
| changed_files | Yes | List of changed file paths | |
| git_diff_stat | No | Output of `git diff --stat` (optional) | |
| commit_msg | No | Commit message (optional) |