惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
Microsoft Security Blog
Microsoft Security Blog
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
罗磊的独立博客
腾讯CDC
云风的 BLOG
云风的 BLOG
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
U
Unit 42
I
InfoQ
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
美团技术团队
IT之家
IT之家
Stack Overflow Blog
Stack Overflow Blog
F
Fortinet All Blogs
GbyAI
GbyAI
S
SegmentFault 最新的问题

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
My Claude Code setup lived on three machines and none of ...
Branko Stanc · 2026-05-17 · via DEV Community
  • Branko, you built another tool? Yes. Yes I did. And before you roll your eyes — hear me out, because this one scratched an itch that was driving me genuinely crazy.

I run Claude Code on three machines. My laptop. My desktop. My work box. And every single one of them had its own little personality. A CLAUDE.md from two weeks ago on one. A skill I wrote on Tuesday that simply did not exist on the other two. A plugin installed here but not there.

You know the feeling. You sit down at the other machine, go to use that clever little skill you made, and... nothing. It's not there. It's on the laptop. The laptop that is currently at home. On your desk. Mocking you.

So I built ClaudeSync.

"Just use a git repo" — yeah, I tried

I know what you're thinking, because I thought it too. Put ~/.claude in a git repo and be done with it.

And sure. That works. Until you forget to commit. Until you forget to pull. Until a plugin file has /Users/branko/... baked into it and breaks the moment it lands on a machine where you are not, in fact, branko.

And then there's the part nobody mentions: git diff on a folder full of JSON and markdown is not what I'd call a pleasant afternoon. I wanted to see what was different before I synced it. Like a normal person.

Generic dotfile tools? Same story. They don't know what Claude Code is. They see files. They don't see "oh, this is a plugin manifest, that means somebody should run claude plugin install." I wanted something that actually gets it.

The one decision I'm most proud of

No background file watcher.

Let me say that again because it sounds like a missing feature and it absolutely is not: ClaudeSync does not watch your files and sync them automatically.

Here's why. Auto-sync sounds lovely right up until you're halfway through editing a file, the watcher wakes up, and a half-written mess gets pushed everywhere. Or two machines touch the same file and one silently eats the other. For your AI coding setup — the thing that shapes how Claude behaves for you — I did not want surprises.

So every sync is a decision you make. You open the dashboard, hit "Discover", and you get a nice file tree showing what changed — new files, modified files, badges and all. You tick the ones you want. You push. Nothing moves unless you told it to. Boring? Maybe. Predictable? Absolutely. I'll take predictable.

So how does this thing actually work?

Three pieces. Stay with me.

One — a little Node agent that lives on each machine. It does not sit there polling or watching. It connects to Supabase Realtime and just... waits. Listens for orders.

Two — Supabase doing the heavy lifting. Postgres for the metadata, Storage for the actual file contents, Realtime for the command channel, Edge Functions for the API. The free tier carries all of it.

Three — a React dashboard on Netlify. This is the cockpit. Your devices show up here, and this is where you press the buttons.

The little trick I like: the dashboard never talks to the agent directly. It shouts into a Supabase Realtime channel, and the agent — subscribed to that channel — hears it. Which means the agent needs zero inbound network access. It's behind your home router, behind your office firewall, doesn't matter. It's not listening for the world. It's listening for one channel.

Dashboard            Supabase              Agent
   |                    |                    |
   |-- "Discover!" ----->|---- broadcast ---->| scans ~/.claude
   |                    |<--- here's the diff |
   |<-- file tree -------|                    |
   |                    |                    |
   |-- "Sync these" ---->|---- broadcast ---->| reads + pushes files
   |                    |                    |
   |-- "Send to box" --->|---- broadcast ---->| writes ~/.claude
   |                    |                    | auto-installs plugins

Enter fullscreen mode Exit fullscreen mode

The sneaky problem: paths

Here's the bit that actually took thinking.

A plugin file or a settings file loves to contain a full, absolute path. Something like /Users/branko/.claude/skills/my-skill.

Beautiful. On my machine. Send that exact line to your machine and it's nonsense — you're not branko, and your Claude folder might live somewhere else entirely.

So before a file gets stored, ClaudeSync swaps the known path bits for placeholders — {{USER_HOME}}, {{CLAUDE_PATH}}, that kind of thing. Think of it as the file going into storage wearing a disguise. When it lands on another machine and gets pulled, the agent rips the disguise off and fills in that machine's real values.

You never see any of it. The file just works. Different username, different home directory, different install location — it just works. That's the whole point.

"But it's holding my config — is that safe?"

Good. You should ask that. Anything touching ~/.claude should make you a little suspicious.

So — Row Level Security on every single table. Every query Postgres runs is locked to the user who made it. There is no clever path where your files and my files end up in the same bucket. It's enforced down in the database, not up in some application code where one lazy bug leaks everything.

File contents sit in private storage. Downloads happen through short-lived signed URLs. The agent authenticates with a per-user token you can rotate or kill from the dashboard whenever you like. And the agent skips the obvious landmines by default — .env, *.key, *.pem — because your secrets have no business riding along.

And if you trust me exactly zero percent? Fair. Honestly, fair. The whole backend self-hosts on Supabase's free tier in about ten minutes. Same code, your servers, your rules.

The funny part: I built the wrong feature first

I made this to keep my machines in sync. That was the goal. And it does that.

But two things showed up that I didn't plan for, and they turned out to be the good stuff.

Setting up a fresh machine. New laptop, clean OS, an empty dev VM — install the agent, hit "Send files to this machine", and your whole Claude Code world just... reappears. Plugins install themselves. That twenty-minute dance of copying dotfiles around? Gone. Down to about a minute of you watching a progress indicator.

Sharing a setup across a team. One account becomes the single source of truth. Everybody pulls the same approved skills and prompts. New teammate joins? You hand them one install command instead of a Notion page titled "please copy these into your CLAUDE.md, pretty please."

The thing I built it for ended up being the least interesting thing it does. Funny how that goes.

Where it's at

It's AGPL-3.0, it's open, PRs are very welcome. And let me be honest about the rough edges, because I'd rather you hear it from me:

  • It's one user per account right now. A proper team mode with roles is the next big thing on my list.
  • Plugin auto-install only knows the public registry — no private team plugins yet.
  • The hosted instance runs on free-tier Supabase, so if it gets hugged to death it will rate-limit. Self-host if you're serious.
    If you run Claude Code on more than one machine — or you've got a team all sharing prompts over Slack like cavemen — go kick the tires and tell me what's broken.

  • Try it: https://claudesync.netlify.app

  • Issues, stars, opinions: https://github.com/LandB/claudesync
    Thank you for reading, good people. 'til next time!