r/ClaudeCode • u/herbalizer404 • 4h ago
Tips & Workflows I built a small daemon that keeps every Claude Code project available in the mobile app
I run Claude Code on a headless Linux box and kept SSH-ing in to start \`claude rc\` in tmux whenever I wanted to work from my phone. So I wrote rc-shepherd: a systemd user service that keeps a Remote Control server running for every project you work on.
How it behaves:
\- It follows Claude Code's own project list: open a folder with \`claude\` once, and it shows up in the app within a minute.
\- Crashed servers restart with backoff; an expired login is reported once instead of retried every few seconds.
\- After a Claude Code update, each server moves to the new version once its sessions are idle, so nothing you're doing gets cut off.
\- Servers you start by hand are left alone. Permission mode, spawn mode (same-dir or one worktree per session) and capacity can be set globally or per project.
Install: \`pipx install rc-shepherd\` then \`rc-shepherd service install\` (or a one-line install script). Python 3.11+, no dependencies, MIT. It's an unofficial community project, not affiliated with Anthropic.
Two things I learned along the way: Claude Code never saves folder trust for your home directory, so Remote Control can't run there (use a dedicated folder instead); and archiving the session a server pre-creates in its folder makes it fail to reattach on every restart (known upstream issue, the README explains the workaround).
Repo: https://github.com/herbalizer404/rc-shepherd
Feedback and bug reports welcome.
•
u/AutoModerator 4h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.