A Claude mobilalkalmazás és a webes felület lehetővé teszi, hogy a felhasználók a telefonjukról érjék el a számítógépükön futó Claude Code munkameneteket. Ehhez a `claude remote-control` parancsot kell futtatni a kívánt mappában, így a Mac megjelenik az alkalmazás eszközlistáján. Az eszköz alapértelmezetten legfeljebb 32 párhuzamos munkamenetet engedélyez.
A parancs alapértelmezés szerint leáll a terminál bezárásakor, a rendszer újraindításakor vagy hálózati kimaradás esetén. Ennek áthidalására a fejlesztő egy macOS launch agent konfigurációt használ, ami automatikusan újraindítja a háttérfolyamatot, így a távoli elérés folyamatosan rendelkezésre áll. A beállítás a helyi beállításokat, a meglévő CLAUDE.md fájlokat és a mentett memóriát is eléri.
A távoli indítással a telefonon beírt utasítások közvetlenül a Mac munkafüggvényeiben futnak le, ami lehetővé teszi a fejlesztési feladatok elindítását utazás közben is.
Az eredeti szöveg (RUBYLAND (daily.dev))
I already set remoteControlAtStartup: true in my Claude Code settings, so every session I start in a terminal shows up in the Claude mobile app, and I can poke at it from the subway. However, to start a new session requires Remote Control server mode.
This runs a small server, and my Mac shows up under Devices in the Code tab of the mobile app (and on claude.ai/code) by its hostname, dblockdotorg2, with a green dot. Tap it, and there’s the directory, the sessions running on it, and a New session button. Type a prompt, and you get a new Claude Code session running on the Mac, in ~/source, with my usual settings, CLAUDE.md, skills, and memory. It allows 32 concurrent sessions by default (--capacity), and pre-creates one so there’s somewhere to type right away.
The catch is that it’s a process you have to keep running. Close the terminal tab, reboot, or lose the network for about 10 minutes, and it’s gone. To keep things alive I use launch agents.
In my setup ~/source isn’t a git repository, so --spawn worktree isn’t an option, and every new session starts in the same directory. That’s fine, I tell Claude which project to work on, and it finds the checkout by its remote.
The plist lives in my dotfiles, and scripts/osx/schedule.sh symlinks and loads every agent in that folder. By hand, it’s this.
Restart it with launchctl kickstart -k gui/$(id -u)/com.dblock.claude-remote-control, and remove it with launchctl bootout gui/$(id -u)/com.dblock.claude-remote-control.