Skip to content
Development
Command

/sync

Sync memory between your local machine and GitHub backup — both directions.

From plugin
claude-memory-engine
13418 skills18 commands9 hooks

Command definition

sync.md

/sync -- Bidirectional Memory Sync

Sync memory between your local machine and GitHub backup — both directions.

Usage

# Bidirectional: pull latest from GitHub, then push local changes
bash ~/.claude/scripts/hooks/memory-backup.sh sync

# Push only (same as /backup)
bash ~/.claude/scripts/hooks/memory-backup.sh push

# Pull only (same as /recover)
bash ~/.claude/scripts/hooks/memory-backup.sh pull

What sync does

1. **Pull** — `git pull` from GitHub, then distribute `repo/memory/*.md` into every local `projects/*/memory/` directory (newer file wins) 2. **Push** — scan all local `projects/*/memory/` directories, copy to the backup repo, commit, and push

When to use

  • Switching between devices (laptop vs desktop) — run `/sync` to get the other device's latest memory
  • After a long offline session — push your changes and pull anything new
  • If you're unsure whether you have the latest — `/sync` is always safe

Notes

  • The pull step only overwrites files when the GitHub version is newer than the local version
  • The SessionEnd hook auto-commits locally after every conversation
  • This command handles the **push + pull** to remote (GitHub)
  • `/backup` = push only; `/recover` = pull only; `/sync` = both
@helloruru
Ships withclaude-memory-engine

Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.

Stars on GitHub

Momentum

stars in total
134
Star history of HelloRuru/claude-memory-engine on GitHub, a chart by star-history.com

Other commands on claude-memory-engine.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command