dos-dispatch
Plan and ship the next batch on one lane: run `dos-next-up`, acquire a lease with `dos arbitrate`, gate empty work, dispatch the packet, and archive the run…
от anthony-chaudhary★ 50 звёзд на GitHub
Установить dos-dispatch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
dos-dispatch — the generic chained snapshot→ship cycle
The concurrency-safe dispatch. It chains
/dos-next-up(the packet) to a ship, but first takes a lane lease through the admission kernel so several dispatches on disjoint lanes run in parallel without editing the same files. The "may I run on this lane" decision is the kernel's (dos arbitrate), not inline prose. Every path/lane comes fromdos doctor --json; nothing is hardcoded.
The shape: discover → take a lane → snapshot → gate → ship → archive. The
lane taxonomy and the run-dir location are data ([lanes], [paths]); the
admission and the gate verdict are kernel syscalls.
Inputs
--lane <name>(optional) — the lane to dispatch on (a name from the active[lanes]). Omitted = a bare auto-pick: the arbiter picks a free lane from theautopickladder.--leases <json>(optional) — the live leases other dispatches hold, as a JSON list of{lane, lane_kind, tree}(the arbiter keys exclusivity onlane_kind, so include it —cluster/keyword/global). In a real loop these come from a status query; for a single dispatch this is usually[].
Step 0 — Discover the layout + the lane taxonomy
dos doctor --workspace . --json
Read lanes (the taxonomy), paths.next_packets (packet output), and
paths.runs (the run dir to archive under). Use these; never hardcode a lane
name or a run path.
Step 1 — Take a lane lease (the admission kernel)
Ask the kernel whether this dispatch may run on the requested lane, given the live leases. The arbiter runs the tree-disjointness algebra over the lanes' declared trees — two dispatches on disjoint trees both ADMIT; overlapping trees COLLIDE.
dos arbitrate --workspace . --lane <LANE> --kind cluster --mode exclusive
# Or record the persistent lease in the lane journal:
dos lease-lane acquire --lane <LANE> --kind cluster
Read the JSON output. On success, lane is the admitted lane and
outcome is "acquire" (with tree declaring its file tree).
outcome: "acquire"-> admitted. The top-levellaneis the lane to run on (may differ from the request when auto-pick reassigned it);treeis its file tree. Proceed.outcome: "refuse"-> not admitted.reasonexplains why;free_clusterslists lanes you could pick instead. Stop (or retry on a free lane). Do not force ---forceis an operator-only override, not an automation default.
The exit code mirrors the wrapper verdict (0 = acquire, 3 = refused/contended), so
the screenplay can branch on it directly. The wrapper is the #21 activation seam:
ordinary shard lanes stay on the local WAL fast path, while abi, release, and
global materialize/publish through GitRefStore by default.
Step 2 — Snapshot the portfolio (the packet)
Run /dos-next-up scoped to the acquired lane:
/dos-next-up --scope <LANE>
It writes a packet under paths.next_packets and returns its path + a gate
verdict. Capture the packet path and its .dispositions-<tag>.json sidecar.
Step 3 — Gate the empty case (typed verdict)
Before shipping, classify the packet so an empty packet doesn't launch a no-op ship:
dos gate --workspace . <paths.next_packets>/.dispositions-<tag>.json
Branch on the exit code (the verdict IS the code):
0LIVE → there is dispatchable work; proceed to Step 4 (ship).3DRAIN → empty backlog; skip the ship, archive a no-op, report drained.4STALE-STAMP → shipped-but-unstamped drift; skip the ship, surface the drift for reconciliation (a/dos-replancan stamp it).5BLOCKED → picks blocked; skip, surface.6RACE → lost a render race; retry the snapshot once.
Step 3b — Price multi-agent fan-out (default admission)
If Step 4 would launch more than one worker/pick, price that fan-out before the first worker starts. This is the default admission step, not an optional operator check:
fak dispatch price --json
Build the partition from the acquired lane tree plus each pick's declared tree or scope. Honor the returned action:
LAUNCH_ALL→ proceed with the full dispatch list.LAUNCH_SAFE_SET→ launch only the priced safe set; serialize the colliding picks into a later wave.REPARTITION_AND_REPRICE/SERIALIZE_UNKNOWN_SCOPE→ stop or narrow the partition; do not launch a colliding or unknown-scope fan-out.
Record the S0 counts (collisions_avoided, lanes_utilized,
serialization_wasted) with the run archive when the pricing surface provides
them. The reactive fleet lease acquire in Step 1 remains mandatory; pricing does
not replace it.
Step 4 — Ship the packet (LIVE only)
Launch the packet's dispatch list (the per-pick prompts /dos-next-up rendered).
How you ship is host-shaped — the generic baseline launches each pick's prompt as
its own agent. Record what shipped.
Step 5 — Archive the run
Write a run record under paths.runs (the run d
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dos-dispatch?
Plan and ship the next batch on one lane: run `dos-next-up`, acquire a lease with `dos arbitrate`, gate empty work, dispatch the packet, and archive the run. Use when a single lane should move end to end with collision safety.
Как установить скилл dos-dispatch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dos-dispatch запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet 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…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…