|
| 1 | +# X Thread: How to make your Claude's memory work across all your devices |
| 2 | + |
| 3 | +--- |
| 4 | + |
| 5 | +**Tweet 1 (Hook)** |
| 6 | + |
| 7 | +Your Claude forgets everything when you switch devices. |
| 8 | + |
| 9 | +Your MacBook Claude doesn't know what your iMac Claude learned yesterday. |
| 10 | + |
| 11 | +I fixed this. Here's how to give Claude cross-device memory in 2 minutes: |
| 12 | + |
| 13 | +--- |
| 14 | + |
| 15 | +**Tweet 2 (Problem)** |
| 16 | + |
| 17 | +The problem: |
| 18 | +- Claude Code stores memory per machine (~/.claude/) |
| 19 | +- Switch laptop? Start from zero |
| 20 | +- Different project on different device? No shared context |
| 21 | + |
| 22 | +Your AI should remember YOU, not just your current machine. |
| 23 | + |
| 24 | +--- |
| 25 | + |
| 26 | +**Tweet 3 (Solution intro)** |
| 27 | + |
| 28 | +I built Cortex — a local memory engine that syncs through YOUR cloud storage. |
| 29 | + |
| 30 | +- iCloud, Google Drive, OneDrive, Dropbox |
| 31 | +- AES-256-GCM encrypted (even if your cloud is hacked, memories stay private) |
| 32 | +- 156us writes. 568us search. Pure Rust. 3.8MB. |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | +**Tweet 4 (How it works)** |
| 37 | + |
| 38 | +How sync works: |
| 39 | + |
| 40 | +``` |
| 41 | +Mac A → writes to iCloud/cortex-sync/ |
| 42 | +Mac B → reads from iCloud/cortex-sync/ |
| 43 | +
|
| 44 | +No server. No API. No account. |
| 45 | +Just your own cloud folder. |
| 46 | +``` |
| 47 | + |
| 48 | +Each device writes its own append-only log. No conflicts ever. |
| 49 | + |
| 50 | +--- |
| 51 | + |
| 52 | +**Tweet 5 (Setup)** |
| 53 | + |
| 54 | +Setup (2 minutes): |
| 55 | + |
| 56 | +```bash |
| 57 | +# Install |
| 58 | +curl -fsSL https://raw.githubusercontent.com/gambletan/cortex/main/install.sh | bash |
| 59 | + |
| 60 | +# Register as Claude MCP server |
| 61 | +claude mcp add cortex --scope user -- ~/.local/bin/cortex-mcp-server ~/.cortex/memory.db |
| 62 | +``` |
| 63 | + |
| 64 | +Then just tell Claude: "Enable cross-device sync" |
| 65 | + |
| 66 | +Claude calls sync_enable, auto-detects your cloud provider, done. |
| 67 | + |
| 68 | +--- |
| 69 | + |
| 70 | +**Tweet 6 (What happens next)** |
| 71 | + |
| 72 | +Now when you chat with Claude on Device A: |
| 73 | + |
| 74 | +"I prefer dark mode, use Neovim, and my timezone is Asia/Shanghai" |
| 75 | + |
| 76 | +Switch to Device B, Claude already knows. No setup. No copy-paste. Just works. |
| 77 | + |
| 78 | +Beliefs, facts, preferences, people graph — all synced. |
| 79 | + |
| 80 | +--- |
| 81 | + |
| 82 | +**Tweet 7 (Privacy)** |
| 83 | + |
| 84 | +Privacy first: |
| 85 | + |
| 86 | +- Private memories (default) NEVER leave your device |
| 87 | +- Only Shared/Public memories sync |
| 88 | +- End-to-end encrypted with your passphrase |
| 89 | +- Zero telemetry. Zero cloud servers. Verify: grep the source code yourself. |
| 90 | + |
| 91 | +Your memories are yours. Period. |
| 92 | + |
| 93 | +--- |
| 94 | + |
| 95 | +**Tweet 8 (Benchmarks)** |
| 96 | + |
| 97 | +vs Mem0 cloud: |
| 98 | +- 528x faster |
| 99 | +- Free (Mem0: $99/mo) |
| 100 | +- 100% local |
| 101 | +- 4-tier memory (Mem0: flat) |
| 102 | +- Bayesian beliefs, people graph, contradiction detection |
| 103 | + |
| 104 | +LoCoMo benchmark (ACL 2024): Cortex 73.7% vs Mem0 66.9% vs OpenAI Memory 52.9% |
| 105 | + |
| 106 | +--- |
| 107 | + |
| 108 | +**Tweet 9 (CTA)** |
| 109 | + |
| 110 | +Cortex is MIT licensed, 100% open source. |
| 111 | + |
| 112 | +Give it a try. Give it a star if it helps. |
| 113 | + |
| 114 | +github.com/gambletan/cortex |
| 115 | + |
| 116 | +Now in English, Chinese, Japanese, and Korean. |
| 117 | + |
| 118 | +--- |
| 119 | + |
| 120 | +## Hashtags |
| 121 | +#Claude #ClaudeCode #AI #MCP #Rust #OpenSource #AIMemory #Privacy |
0 commit comments