sync_file_changes
Associate recent file changes with brain knowledge after commits. Record changes and retrieve relevant lessons using git diff data.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instance_id": "<instance_id>",
"changed_files": "<changed_files>"
},
"name": "sync_file_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit_msg | No | Commit message (optional) | |
| 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) |