type: decision
status: active
timestamp: 2026-07-03
confidence: high
durability: durable
tags: [memory, sync, sops, age, encryption, hooks]

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

Private GH repo with sops+age encrypted MEMORY.md and per-project memory/ trees. Auto-push on session end, auto-pull on session start.

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


Edit on GitHub · Back to index