← knowledge.oriz.in

MEMORY.md cross-machine sync via chirag127/claude-memory + sops+age

decision memorysyncsopsageencryptionhooks

MEMORY.md cross-machine sync

Decision

Private GH repo chirag127/claude-memory. sops+age encrypted. Auto-push on Claude Code session end via Stop hook. Auto-pull on SessionStart hook.

What syncs

Not: ~/.claude/settings.local.json (per-machine auth), ~/.claude/history.jsonl (session logs), skills junctions (already synced via agent-skills submodule).

Why private repo + sops

Rejected alternatives

Hook wiring

~/.claude/settings.json hooks:

{
  "hooks": {
    "SessionStart": [{"hooks": [{"type": "command", "command": "sh C:/d/oriz/scripts/memory-pull.sh"}]}],
    "Stop": [{"hooks": [{"type": "command", "command": "sh C:/d/oriz/scripts/memory-push.sh"}]}]
  }
}

Scripts do:

Anti-patterns

Cross-refs