sync_memory
Add shared rules to every agent instruction file via a managed block and sync missing rules across targets, returning a diff before applying changes.
Instructions
Add shared rules to every agent's instruction file via a managed block.
rules: rules to add; omit to sync the drift (rules some agents are missing). targets: agents to update (claude -> CLAUDE.md, codex/cursor/opencode -> AGENTS.md, gemini -> GEMINI.md); defaults to agents that already have one. scope: "project" (repo files) or "user" (~/.claude, ~/.codex, ~/.gemini). Returns a unified diff. Writes only when apply=true, and only edits the
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sync_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | ||
| rules | No | ||
| scope | No | project | |
| project | No | ||
| targets | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |