Skip to main content
ClaudeWave
Slash Command86 repo starsupdated 2mo ago

sync-enable

The sync-enable command automates GitHub synchronization of Claude Code sessions by verifying GitHub CLI authentication, creating a private claude-sessions repository, and enabling automatic session backup. Use this when you want to continue work across multiple Claude platforms by syncing your session state to GitHub.

Install in Claude Code
Copy
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/arpitnath/claude-capsule-kit/HEAD/commands/sync-enable.md -o ~/.claude/commands/sync-enable.md
Then start a new Claude Code session; the slash command loads automatically.

sync-enable.md

# Enable Session Sync

Enable automatic syncing of Claude Code sessions to GitHub. This allows you to continue sessions in Claude Web/Desktop/Mobile.

## What This Does

1. Verifies GitHub CLI is installed and authenticated
2. Creates a private `claude-sessions` repository (if needed)
3. Enables automatic sync on session end

## Run Setup

```bash
bash .claude/scripts/enable-sync.sh
```

## After Setup

- Sessions automatically sync when you exit Claude Code
- Use `/sync` to manually sync anytime
- Use `/sessions` to list synced sessions
- Use `/sync-disable` to turn off

## Requirements

- GitHub CLI (`gh`) installed: https://cli.github.com/
- Authenticated: `gh auth login`