Learning HubACFS Academy
Progress
0%
0 of 3333 remaining
  • 1
    Welcome & Overview5 min
  • 2
    Linux Navigation8 min
  • 3
    SSH & Persistence6 min
  • 4
    tmux Basics7 min
  • 5
    Git Essentials10 min
  • 6
    GitHub CLI8 min
  • 7
    Agent Commands10 min
  • 8
    NTM Command Center8 min
  • 9
    NTM Prompt Palette6 min
  • 10
    The Flywheel Loop10 min
  • 11
    Keeping Updated4 min
  • 12
    UBS: Code Quality Guardrails8 min
  • 13
    Agent Mail Coordination10 min
  • 14
    CASS: Learning from History8 min
  • 15
    The Memory System8 min
  • 16
    Beads: Issue Tracking8 min
  • 17
    Safety Tools: SLB & CAAM6 min
  • 18
    The Art of Agent Direction12 min
  • 19
    Case Study: cass-memory15 min
  • 20
    Case Study: SLB12 min
  • 21
    RU: Multi-Repo Mastery10 min
  • 22
    DCG: Pre-Execution Safety8 min
  • 23
    Meta Skill: Local Skills10 min
  • 24
    SRPS: System Protection8 min
  • 25
    JFP: Prompt Library6 min
  • 26
    APR: Automated Plan Reviser8 min
  • 27
    PT: Process Triage6 min
  • 28
    XF: X Archive Search6 min
  • 29
    RCH: Remote Compilation8 min
    NOW
  • 30
    WA: WezTerm Automata8 min
  • 31
    Brenner Bot: Research10 min
  • 32
    GIIL: Cloud Image Downloads6 min
  • 33
    S2P: Source to Prompt6 min
Back to Home
Back
29/33
Lesson 29
8 min

RCH: Remote Compilation

Offload Rust builds to remote workers for faster compilation

New to ACFS?

Complete the setup wizard first to get the most from these lessons.

Go to Choose Your OS
Goal

Offload Rust builds to remote workers for faster compilation in multi-agent workflows.

What Is RCH?

RCH (Remote Compilation Helper) transparently intercepts cargo commands and routes them to powerful remote build servers. Your local machine stays responsive while heavy Rust compilations run elsewhere.

When running multiple AI agents that all trigger builds, your local CPU becomes a bottleneck. RCH solves this by syncing source to remote workers, building there, and streaming artifacts back.

Remote Workers

Build on powerful remote servers

Transparent

Works via Claude Code hook

Fast Sync

rsync + zstd compression

Worker Pool

Priority-based scheduling

How It Works

RCH intercepts cargo commands via a Claude Code hook and offloads them to remote workers.

Build Flow
# Local: You run cargo build
cargo build --release
↓
# RCH Hook intercepts the command
↓
# Source synced to worker via rsync
↓
# Remote: Build runs on powerful server
↓
# Artifacts synced back to local machine
Pro Tip
The hook is transparent. You run normal cargo commands and RCH handles the rest.

Quick Start

Get started with these essential commands.

Install the Claude Code hook
Start the local daemon
Add a remote worker
Check system status
Warning
Make sure SSH keys are set up for passwordless access to workers before adding them.

Worker Management

RCH supports multiple remote workers with priority-based scheduling.

Add a new worker
List configured workers
Check worker connectivity
Verify all workers are reachable
~/.config/rch/workers.toml
# Workers are stored in ~/.config/rch/workers.toml
[[workers]]
name = "build-server-1"
host = "ubuntu@192.168.1.100"
slots = 48
priority = 100
tags = ["fast", "baremetal"]
[[workers]]
name = "build-server-2"
host = "ubuntu@192.168.1.101"
slots = 16
priority = 80
tags = ["secondary"]

Diagnostics

RCH includes comprehensive diagnostics to troubleshoot issues.

Run full diagnostic check
Auto-fix common issues
Check if daemon is running
View current configuration
Pro Tip
Run rch doctor if builds aren't being offloaded. It checks prerequisites, configuration, and worker connectivity.

Configuration

RCH configuration lives in ~/.config/rch/.

Configuration Commands
# View current config
rch config show
# Set default worker
rch config set default_worker=build-server-1
# Update RCH binaries on all workers
rch update --remote
Note
Keep workers in sync with rch update --remote after updating the local RCH binary.

Tool Integration

RCH integrates seamlessly with other flywheel tools.

RCH + NTM

Agents spawned by NTM automatically use RCH for their builds. Multiple agents can compile in parallel without overwhelming local CPU.

RCH + RU

RU syncs repos that RCH then builds remotely. Use ru sync to update sources, then build with RCH-accelerated cargo.

RCH + Beads

Track build-related tasks via beads. Create issues for build failures or optimization opportunities.

Best Practices

Get the most out of RCH with these recommendations.

SSH Keys

Set up passwordless SSH access

Fast Workers

Use servers with many CPU cores

Keep Synced

Update workers with rch update --remote

Monitor Status

Check rch status regularly

Ready to level up?

Mark complete to track your learning progress.

Previous
XF: X Archive Search
Next
WA: WezTerm Automata