Back to list
Dicklesworthstone

remote-compilation-helper-setup

by Dicklesworthstone

Transparent compilation offloading for AI coding agents - intercepts cargo/gcc builds via Claude Code hooks and routes to remote workers

12🍴 2📅 Jan 24, 2026

SKILL.md


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

  • Prerequisites: which rustup rsync zstd (install missing)
  • Install: cargo install --path rch (or --path . from repo root)
  • Configure: Create ~/.config/rch/workers.toml (see below)
  • Hook: rch hook install
  • Daemon: rchd & or systemctl --user start rchd
  • Validate: rch doctor → all checks pass

Worker Config

# ~/.config/rch/workers.toml
[[workers]]
id = "worker1"
host = "192.168.1.100"
user = "ubuntu"
identity_file = "~/.ssh/id_ed25519"
total_slots = 8    # ≈ CPU cores - 2
priority = 100     # Higher = preferred
tags = ["rust"]    # Optional capability tags

Discover from SSH config:

rch workers discover --from-ssh-config --dry-run  # Preview
rch workers discover --from-ssh-config            # Add to config

Verify workers:

rch workers probe worker1 --verbose  # Test single
rch workers probe --all              # Test all
rch workers list --capabilities      # Show detected toolchains

Quick Fixes

SymptomFix
SSH failseval $(ssh-agent) && ssh-add ~/.ssh/your_key
Daemon downrm -f /tmp/rch.sock && rchd &
Hook missingrch hook install --force
No workersCheck config path, SSH connectivity

Test hook directly:

echo '{"tool":"Bash","input":{"command":"cargo check"}}' | rch hook
# Expect: {"allow":true,"output":"..."}

Validation

rch doctor --verbose   # Full diagnostics
rch doctor --json      # Machine-readable
RCH_DRY_RUN=1 cargo check  # Test without remote execution

⚠️ All rch doctor checks must pass before use.

References

TopicReference
Worker schema, selection algorithm, tagsWORKERS.md
All error messages & detailed fixesTROUBLESHOOTING.md
Hook protocol, 5-tier classificationHOOKS.md

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon