| name | remote-compilation-helper-setup |
| description | Configure RCH workers, install hooks, fix SSH/daemon issues. Use when setting up remote compilation, adding build machines, troubleshooting rch doctor, or "no workers available". |
RCH Setup
Offloads cargo build, bun test, gcc to remote workers. Transparent—same commands, faster builds.
Workflow
1. rch doctor # What's broken?
2. rch doctor --fix # Auto-fix common issues
3. rch doctor # All green? Done.
If --fix can't solve it, continue below.
Setup Checklist
Worker Config
[[workers]]
id = "worker1"
host = "192.168.1.100"
user = "ubuntu"
identity_file = "~/.ssh/id_ed25519"
total_slots = 8
priority = 100
tags = ["rust"]
Discover from SSH config:
rch workers discover --from-ssh-config --dry-run
rch workers discover --from-ssh-config
Verify workers:
rch workers probe worker1 --verbose
rch workers probe --all
rch workers capabilities
Quick Fixes
| Symptom | Fix |
|---|
| SSH fails | eval $(ssh-agent) && ssh-add ~/.ssh/your_key |
| Daemon down / stale socket | rch daemon restart — never rm the socket by hand |
| Hook missing | rch hook install (--force only after rch hook status) |
| No workers | rch status --fleet + rch admit "cargo build" — find the real cause; do not edit workers.toml for transient illness |
Test the hook:
rch hook test
Validation
rch doctor --verbose
rch doctor --json
rch diagnose "cargo check" --dry-run
⚠️ All rch doctor checks must pass before use.
References