mem-sync
Installation
SKILL.md
mem-sync — Cross-Device Memory Sync
Synchronizes <repo>/.memories/ across machines through a dedicated, isolated
per-user branch memories/<email-localpart> using a background git worktree, so the
active development branch and your editor workspace are never disturbed.
Per-User Branch
The sync branch is derived from git config user.email: the part before @,
lowercased and slugified (non-alphanumeric runs become -). User@Example.com →
memories/user. Each user pushes/pulls only their own branch, so two developers on
the same repo never collide on same-date log filenames.
Commands
Discover the script path dynamically (do NOT hardcode):
- Global scope:
~/.agents/skills/mem-sync/scripts/mem-sync-git.sh - Project scope:
<repo>/skills/mem-sync/scripts/mem-sync-git.sh - Fallback: search for
mem-sync-git.sh.