remote-offload
Use when local resource pressure would shrink or coordinator-direct a wave, a wave plan carries heavy build/test/audit roles (test, ui, perf), or the operator…
от Kanevry★ 53 звезды на GitHub
Установить remote-offload в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Remote Offload — routing a wave role to a declared host instead of shrinking it
Repo-side half of #1160: remote-hosts: declares hosts, wave-resource-gate.mjs places work on them, remote-dispatch.mjs runs it. The host-side offload CLI (a separate baseline repo owns its SSOT) is invoked as a subprocess; this skill covers what the repo itself knows about it.
Quick reference
| Task | Command |
|---|---|
| Host readiness | offload doctor -H <alias> --brief |
| Gate (typecheck/lint/test) | offload gate <repo> -H <alias> |
| Run a command | offload run <repo> -H <alias> -- <cmd...> |
| Read-only analysis | offload claude <repo> -H <alias> --model <name> < prompt.txt |
| Implementation + patch | offload claude <repo> -H <alias> --write --patch <path> < prompt.txt |
| Remove finished jobs | offload clean -H <alias> --older-than <hours> |
Exit codes (offload --help, measured 2026-09-02): 0 ok · 1 usage/config · 2 host unreachable/not ready · 3 remote command failed · 4 sync failed · 5 timeout · 6 empty diff on a --write run · 7 account quota exhausted (429) · 8 write lock held · 10 admission refused (only with the stderr line offload: admission=refused as the last admission verdict; offload >= 1.8.0 first waits up to RO_ADMISSION_WAIT, default 600 s, for a slot). Same map as OFFLOAD_EXIT_REASONS in scripts/lib/wave-executor/remote-dispatch.mjs.
1. Decision rule — offload vs reduce
The gate decides, not the coordinator. applyOffloadDecision() in scripts/lib/wave-resource-gate.mjs fires when the resource verdict is reduce or coordinator-direct (and, with offload-first: true, on proceed as well — see below), and only AFTER the HR-004 heavy-repo cap — a capped wave that offloads still respects the cap. It never probes the network; the coordinator supplies a readiness WITNESS:
opts.remoteReady—{ [alias]: boolean }, built from the SessionStart banner lineOffload <alias>: headless-ready=yes …(legacyready=yesonly without new readiness markers;gate-readydoes not authorize Claude dispatch), oropts.probeFn— an async(alias) => booleanfallback, consulted only for aliasesremoteReadydoesn't answer for (backed byremoteDoctor(), i.e.offload doctor -H <alias> --briefparsed byparseDoctorLine()).
With neither supplied, no host counts as ready and the wave stays local — the gate fails toward local, never toward an unverified host. A role in NEVER_FOREIGN_ROLES (scripts/lib/wave-executor/dispatch-common.mjs: impl-core, security-review, migration, release, secrets, incident, refactor-crosscut) is never offloaded regardless of readiness.
With offload-first: true in Session Config (#1465, default false) the placement arm also fires on proceed, so an offloadable role goes to a witnessed-ready host without waiting for local pressure. The witness stays mandatory — without remoteReady/probeFn nothing moves — and a wave that stays local carries a named reason (offload-first: no ready host for '<role>' — staying local, or … no remote-hosts declared — staying local).
2. What is declared where
remote-hosts: in Session Config (docs/session-config-reference.md § Remote Hosts) declares the hosts, in preference order — the gate takes the FIRST host whose roles-allowed accepts the wave role and is witnessed ready:
remote-hosts:
- alias: <ssh-alias> # required, SAFE slug; reaches argv as `-H <alias>`
roles-allowed: [test, ui, perf] # subset of test|ui|perf (default: all three)
repo-path: ~/path/on/host # optional; SAFE path; default null
claude-path: ~/.local/bin/claude # optional; SAFE path; default null
Two enums meet here and must not be conflated: roles-allowed holds agent-mapping roles (test/ui/perf), not wave roles (Impl-Core/Quality/…). The translation table is OFFLOADABLE_WAVE_ROLES in wave-resource-gate.mjs (quality→test, test→test, ui→ui, perf→perf; a wave role absent from that map stays local by default).
An agent-mapping entry of the form <role>: ssh:<alias> routes that wave role to Claude running ON the declared host instead of shrinking the wave; the alias must already exist under remote-hosts, or the config parse throws.
3. Three channels of work
| Channel | Command | Verdict rule |
|---|---|---|
| Gate / arbitrary command | offload gate / offload run |
Exit code decides — use the table above, never the prose in the run's own output |
| Implementation, patch back | offload claude --write --patch <file> via dispatchRemote() |
Empty patch (exit 6) is a FAILURE regardless of what the run reports; the coordinator READS the patch, then applies it with its own git apply — the remote job never touches the repo the coordinator commits from |
| Read-only analysis | offload claude (no --write) |
No patch is produced; treat the transcript as advisory input, same skepti |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл remote-offload?
Use when local resource pressure would shrink or coordinator-direct a wave, a wave plan carries heavy build/test/audit roles (test, ui, perf), or the operator says offload, remote host, or auslagern — reference for routing that wave role to a declared SSH-reachable host instead of reducing agent count
Как установить скилл remote-offload?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл remote-offload запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…