remote-control-control for claude code
README.md

rcctl #

Ad-hoc claude remote-control session manager. Spawn, stop and list Claude Code remote-control sessions in any local project directory as systemd --user instances — driven by natural language or /rcctl:session, typically from a primary always-on remote-control session so you can start new sessions on other projects without physical access to the machine.

What it does #

claude remote-control bridges a local Claude Code session to claude.ai/code and the mobile app. This plugin lets you run one such session per project directory on demand: each becomes a transient systemd --user service, distinct in the app, and is consent-gated on first use (same workspace-trust semantics as opening Claude in that folder).

Components #

Path Purpose
skills/session/SKILL.md /rcctl:session — resolves a project name/intent to a path and runs the trust-consent dialog
bin/rcctl the mechanism: escaping, trust gate, systemd lifecycle (on PATH while the plugin is enabled)
claude-remote-control@.service the systemd --user template unit (one-time manual install — see below)

Prerequisites #

  • Linux with a systemd user session (systemctl --user).
  • jq, systemd-escape, journalctl on PATH.
  • Claude Code installed; the unit expects the claude binary at ~/.local/bin/claude (adjust ExecStart/PATH in the unit if yours differs).

Install #

/plugin marketplace add git@code.feldbach.haus:rian.feldbach.haus/claude-plugins
/plugin install rcctl@rians-plugins

Access: the marketplace and this plugin are hosted on a self-hosted Tangled knot with SSH-only git (no anonymous HTTPS clone). Installing requires an SSH key authorised on code.feldbach.haus, with the host in your known_hosts and the key loaded in ssh-agent. Browse the source at https://tangled.sh/@rian.feldbach.haus/rcctl.

Then the one-time systemd step (a plugin cannot register systemd units):

install -Dm644 "$CLAUDE_PLUGIN_ROOT/claude-remote-control@.service" \
  ~/.config/systemd/user/claude-remote-control@.service
systemctl --user daemon-reload

Usage #

Natural language (model-routed):

start a remote session in myproject stop the remote control session for some-project list remote sessions

Explicit:

/rcctl:session up <project>
/rcctl:session down <project>
/rcctl:session ls
/rcctl:session status <project>

Or the CLI directly (takes a concrete existing path, no name resolution):

rcctl up ~/Projects/myproject      # first use prompts for trust
rcctl up ~/Projects/myproject --trust
rcctl ls
rcctl down ~/Projects/myproject

Trust model #

rcctl never silently trusts a directory. On first use:

  • interactive terminal → y/N prompt;
  • non-interactive (agent) → exits 5 with TRUST_REQUIRED: <dir>, the skill asks you for explicit consent, then re-runs with --trust.

--trust is the sole authorization to record trust in ~/.claude.json (atomic write, backup at ~/.claude.json.rcctl.bak).

Exit codes: 2 bad/missing dir · 4 interactive decline · 5 TRUST_REQUIRED.

License #

MIT — see LICENSE.