| name | sync-sessions |
| description | Full bidirectional sync — pulls from remote, stages local sessions, scans for secrets, and pushes. |
To perform a full sync (pull + push):
node ./scripts/sync-engine.js sync
This command:
- Pulls the latest data from the remote sync repo (gets sessions from other machines)
- Copies local session files from
~/.copilot/session-state/ and ~/.claude/projects/ into the sync directory
- Scans all staged files with Gitleaks for secrets
- If secrets are detected: auto-redacts and proceeds
- Commits and pushes to the private sync repository
For background-only push (no pull, non-blocking):
node ./scripts/sync-engine.js push
To check sync status after running:
tail -5 ~/.synctx/security-audit/general.log