Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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.

  1. Never edit workers.toml to 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.
  2. Never rch workers disable for transient illness. disable is permanent operator intent (decommission, maintenance); always give it a --reason so the incident ledger records why.
  3. Never rm the daemon socket or kill "stale" processes by hand. rch daemon restart or rch doctor --fix.
  4. 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

Полный SKILL.md на GitHub

Установить rch в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/workers-template.tomlreferences/COMMANDS.mdreferences/CONFIGURATION.mdreferences/DISK_AND_PRESSURE.mdreferences/ERROR_CODES.mdreferences/EXEC_MODES.mdreferences/FAIL_OPEN.mdreferences/HOOKS.mdreferences/MACHINE_INTROSPECTION.mdreferences/MULTI_AGENT_CONTENTION.mdreferences/OPERATIONS.mdreferences/PATH_DEPENDENCIES.mdreferences/RECOVERY_PLAYBOOKS.mdreferences/SELF_HEALING.mdreferences/SHIM.mdreferences/SSH_KEY_RECOVERY.mdreferences/SSH_TUNING.mdreferences/TELEMETRY_RECOVERY.mdreferences/TROUBLESHOOTING.mdreferences/WORKERS.mdscripts/auto_recover.shscripts/diagnose-rch.shscripts/mine_rch_history.shscripts/multi_agent_safety.shscripts/protocol_test.shscripts/validate-setup.shscripts/worker_disk_triage.sh

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить rch с