Synchronize knowledge to cloud storage
Synchronize local knowledge base to cloud storage for backup and multi-machine access.
/plugin marketplace add ialameh/sift-coder/plugin install sift-coder@sift-coderpush|pull|status|auto|resolveSynchronize local knowledge base to cloud storage for backup and multi-machine access.
/siftcoder:sync <subcommand> [args]
Upload local knowledge to cloud.
Download and merge cloud knowledge to local.
Display sync status and pending changes.
Enable or disable automatic sync.
Resolve a pending sync conflict.
List all pending conflicts.
Display sync history (recent sync operations).
$ARGUMENTS - Subcommand and any argumentsYou manage cloud knowledge sync using the siftcoder-cloud Rust crate.
/siftcoder:config cloud configure)push:Upload local knowledge to cloud:
siftcoder/scripts/cloud-sync.sh push
.claude/siftcoder-state/knowledge/π€ Pushing knowledge to cloud...
Reading local knowledge...
- 15 patterns
- 8 gotchas
- 3 decisions
Uploading to https://sync.siftcoder.com...
[ββββββββββββββββββββ] 100% (26 entries)
β
Push complete
Uploaded: 26 entries
Skipped: 0 (unchanged)
Failed: 0
Took: 2.3s
β οΈ Conflicts detected
The following entries have newer versions on the server:
[1] pattern-003: Repository Pattern
Local: v1 (2026-01-10 10:00)
Cloud: v2 (2026-01-11 09:30)
Options:
- /siftcoder:sync resolve pattern-003 --local Keep local version
- /siftcoder:sync resolve pattern-003 --remote Use cloud version
- /siftcoder:sync resolve pattern-003 --newest Use newest (v2)
- /siftcoder:sync pull Merge from cloud first
pull:Download and merge cloud knowledge:
siftcoder/scripts/cloud-sync.sh pull
.claude/siftcoder-state/knowledge/π₯ Pulling knowledge from cloud...
Fetching from https://sync.siftcoder.com...
[ββββββββββββββββββββ] 100% (28 entries)
Merging with local knowledge...
- 15 patterns (unchanged)
- +2 new patterns
- ~1 updated pattern (merged)
- 8 gotchas (unchanged)
- 3 decisions (unchanged)
β
Pull complete
Added: 2 entries
Updated: 1 entry
Merged: 0 conflicts
Took: 1.8s
status:Display current sync state:
siftcoder/scripts/cloud-sync.sh status
βοΈ Cloud Sync Status
Connection: β
Connected
Server: https://sync.siftcoder.com
Last Sync: 5 minutes ago (2026-01-11 16:42:33)
Local Knowledge:
- 15 patterns
- 8 gotchas
- 3 decisions
Total: 26 entries
Cloud Knowledge:
- 15 patterns
- 8 gotchas
- 3 decisions
Total: 26 entries
Pending Changes:
- 0 local modifications to push
- 0 cloud updates to pull
- 0 conflicts to resolve
Offline Queue:
- 0 pending operations
Last queue process: 5 minutes ago
Auto-Sync: β
Enabled
- Interval: every 15 minutes
- On knowledge changes: yes
Machine ID: uuid-here
Machine Name: My MacBook
βοΈ Cloud Sync Status
Connection: β οΈ Offline
Last successful sync: 2 hours ago
Offline Queue:
- 3 pending operations
Run: /siftcoder:sync push (will queue for later)
Auto-Sync: βΈοΈ Paused (will resume when online)
auto on:Enable automatic synchronization:
siftcoder/scripts/cloud-sync.sh auto on
β
Auto-sync enabled
- Sync interval: 15 minutes
- Sync on knowledge changes: yes
auto off:Disable automatic synchronization:
siftcoder/scripts/cloud-sync.sh auto off
βΈοΈ Auto-sync disabled
Sync must be triggered manually with /siftcoder:sync push|pull
resolve <conflict-id>:Resolve a pending sync conflict:
siftcoder/scripts/cloud-sync.sh resolve <conflict-id> [strategy]
β οΈ Conflict: pattern-003 (Repository Pattern)
Local version (v1):
"Always wrap async calls in try/catch..."
Cloud version (v2):
"Always wrap async calls in try/catch with specific error types..."
Metadata:
- Local: 2026-01-10 10:00:00
- Cloud: 2026-01-11 09:30:00
Resolution Strategy:
[1] Keep local (v1)
[2] Use cloud (v2) [recommended - newer]
[3] Keep newest (v2)
[4] Manual merge
[5] Skip for now
Choose resolution [1-5]:
β
Conflict resolved
Strategy: RemoteWins
Pattern updated to cloud version (v2)
conflicts:List all pending conflicts:
siftcoder/scripts/cloud-sync.sh conflicts
β οΈ Pending Conflicts (2)
[1] pattern-003: Repository Pattern
Local v1 vs Cloud v2
Created: 5 minutes ago
Resolve: /siftcoder:sync resolve pattern-003
[2] gotcha-002: Environment Loading
Local v1 vs Cloud v3
Created: 1 hour ago
Resolve: /siftcoder:sync resolve gotcha-002
β
No pending conflicts
history:Display sync history:
siftcoder/scripts/cloud-sync.sh history
π Sync History (last 10 operations)
[1] 2026-01-11 16:42:33 β
Push (26 entries)
Machine: My MacBook
Duration: 2.3s
[2] 2026-01-11 16:27:15 β
Pull (+2 entries)
Machine: My MacBook
Duration: 1.8s
[3] 2026-01-11 15:55:00 β
Auto-sync (0 changes)
Machine: My MacBook
Duration: 0.5s
[4] 2026-01-11 14:30:22 β οΈ Push failed (network error)
Machine: My MacBook
Error: Connection timeout
[5] 2026-01-11 13:15:00 β
Pull (1 merge, 1 conflict)
Machine: My MacBook
Duration: 3.1s
When knowledge is added/modified:
on_knowledge_change = true: queue push operationExample hooks in /siftcoder:knowledge:
After add-pattern:
if auto_sync_enabled:
queue_sync_operation("push", delay=5s)
Common errors and responses:
/siftcoder:config cloud configure/siftcoder:config cloud - Configure cloud sync/siftcoder:status - View overall siftcoder status/siftcoder:knowledge - Manage local knowledge base