rch
БесплатноЗапускает вложенные скриптыНе проверенOffload cargo/gcc/bun builds to remote workers. Use when compilation slow, "[RCH] local" in stderr, workers unhealthy, hook silent, sync fails, disk pressure…
от Dicklesworthstone★ 72 звезды на GitHubОб этом скилле
RCH — Remote Compilation Helper
rch transparently offloads compilation commands to remote workers via a Claude Code PreToolUse hook (and, for every other agent/shell, via the managed cargo shim). The daemon picks a healthy worker, rsync's the workspace, runs the build, syncs artifacts back, and exits with the worker's exit code.
This skill is the operational layer agents use when that pipeline isn't working — and the much more common case where it thinks it's working but is silently building locally. Single principle: self-resolve before asking the human. Every recovery path here is one the agent can run alone.
Harmonized against remote_compilation_helper main @ b5c0566 (2026-08-25), workspace v1.0.58. The released 1.0.58 binary predates the post-release shim toolchain-wrapper commits; where that matters it is called out. Commands and flags were re-checked against the released rch 2.0.0 (tag v2.0.0); the 2.0.0 changes that alter what a command does (rch gc previews unless --apply, daemon stop/restart refuse during builds unless --drain/--force, rch web --url) are called out inline.
Read This First
When a build feels slow, run one thing:
RCH_VISIBILITY=verbose <your-command> 2>&1 | grep -E '^\[RCH\]'
The summary line is a contract:
| Pattern | What to do |
|---|---|
[RCH] remote <worker> (...) |
Healthy. Done. |
[RCH] remote <worker> failed (exit N) / failed [RCH-Exxx] ... |
Real build/env failure. rch error explain RCH-Exxx; references/ERROR_CODES.md. |
[RCH] local (<reason>) |
Fail-open. references/FAIL_OPEN.md; look the reason up verbatim. |
[RCH] remote required; refusing local fallback (<reason>) |
Fail-closed (strict remote / shim / dispatcher role). Exit 103 = retry after fixing the fleet; exit 1 = permanent. |
no [RCH] line at all |
Hook didn't fire, or the shim isn't ahead on PATH. scripts/protocol_test.sh "<cmd>" then rch shim status. |
If you can't see why offload isn't happening, prove the path in isolation, loudly:
RCH_REQUIRE_REMOTE=1 RCH_VISIBILITY=verbose rch exec -- cargo check --workspace --all-targets
[RCH] remote <worker> (...) ⇒ the offload pipeline is healthy and the problem is upstream (hook classifier, PATH/shim order, the invocation form). A refusal line names exactly what's missing. Then references/RECOVERY_PLAYBOOKS.md.
Operating Model: Self-Healing First, No Permanent Fixes for Transient Illness
RCH self-heals. Most "broken RCH" symptoms are transient; the costly failure is an operator making a permanent change to fix a temporary problem, which turns self-healing capacity loss into real loss.
- Never edit
workers.tomlto fix transient illness. A slow, briefly unreachable or probe-failing worker goes into a temporary bypass with probe backoff, gets one canary build when probes recover, and rejoins on its own. Editing or removing it defeats that. - Never
rch workers disablefor transient illness.disableis permanent operator intent (decommission, maintenance); always give it a--reasonso the incident ledger records why. - Never
rmthe daemon socket orkill"stale" processes by hand.rch daemon restartorrch doctor --fix. - Diagnose before surgery:
rch doctor,rch status --fleet,rch admit "<cmd>".
| Situation | Do | Do NOT |
|---|---|---|
| Worker slow / flaky / briefly unreachable | nothing; rch status --fleet to watch it rejoin |
edit workers.toml; rch workers disable |
| Worker overloaded | rch workers drain <id> -y (reversible), later rch workers enable <id> |
remove it |
| Decommission / hardware maintenance | rch workers disable <id> --reason "..." --drain -y |
leave it silently absent (--fleet alerts) |
Why didn't it offload? rch admit "<cmd>" (or --json) gives a stable reason code and next action:
| Code | Meaning | Next action |
|---|---|---|
RCH-I001 |
no admissible workers | rch status --fleet: absent vs overloaded vs missing capability |
RCH-I003 |
insufficient slots | wait in the queue (RCH_QUEUE_WHEN_BUSY=1, the default); don't add workers reflexively |
RCH-I006 |
missing runtime/toolchain/target | rch workers capabilities --refresh; install it on the worker |
RCH-I008 |
telemetry stale | rch status --remediation; usually self-heals |
RCH-I011 |
local fallback | expected when remote isn't worth it; RCH_FORCE_REMOTE=1 to try anyway |
RCH-I012 |
proof refusal | strict mode refused local fallback (proof lane below) |
RCH-I017 |
wrong user/path worker binary | re-run the fleet deploy/validate; don't hand-patch the worker |
Proof lane: to prove a build ran remotely, fail-closed and with nothing auto-started underneath:
RCH_REQUIRE_REMOTE=1 RCH_NO_SELF_HEALING=1 rch --no-self-healing exec -- cargo test --workspace
Keep the build as direct argv after --: a bash -lc "... && ..." wrapper clas
Установить rch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл rch?
Offload cargo/gcc/bun builds to remote workers. Use when compilation slow, "[RCH] local" in stderr, workers unhealthy, hook silent, sync fails, disk pressure, or SSH/daemon/telemetry recovery.
Как установить скилл rch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rch запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic