memory_sync
Sync AI agent memory files with a Git repository to maintain shared project context across multiple agents. Supports initializing, pushing changes, pulling updates, and checking sync status.
Instructions
Sync agent memory files with a remote Git repository for multi-agent Swarm Memory. Supports init (setup), push (upload changes), pull (download changes), and status.
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": {
"action": "<action>"
},
"name": "memory_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | init: initialize memory repo & connect remote; push: commit & push local changes; pull: fetch & merge remote changes; status: show sync status | |
| repo_url | No | Remote Git repo URL (required for init, e.g. git@github.com:user/agent-memory.git) | |
| memory_dir | No | Path to memory directory (default: ./memory) | |
| agent_name | No | Agent name for commit messages (default: 'agent') | |
| message | No | Custom commit message (for push) |