dos-dispatch-loop
Run recurring `dos-dispatch` cycles, switching to `dos-replan` when the backlog drains and stopping on the kernel's loop verdict. Use for unattended…
от anthony-chaudhary★ 50 звёзд на GitHub
Установить dos-dispatch-loop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
dos-dispatch-loop — the generic dispatch⇄replan cadence
The unattended plan-and-ship loop. It runs
/dos-dispatchrepeatedly and falls to/dos-replanwhen a lane drains, stopping on a typed, kernel-decided condition (not a prose guess). The stop/continue logic is the kernel'sloop_decide.decide— the loop carries counters, the kernel decides. Several loops on disjoint lanes run in parallel, each holding its own lane lease.
The stop conditions are the kernel's, in one place:
- iteration cap — reached
max_iterations(default 10). - drained-twice — a DRAIN after a productive
/dos-replanthat itself followed a DRAIN (the lane is genuinely exhausted). - consecutive-unclear — the dispatch subprocess is failing systematically.
- rate-limited — a usage window is exhausted (don't burn launches).
- launch-failed — a subprocess never started.
- pick-held-invariant — the next unit is held ONLY by a reason a re-dispatch cannot change (draft-class / operator-gated / soak-open / dependency-unmet); re-dispatching it would re-block identically, so honest-STOP + surface the hold.
- pick-cooldown — the next unit was attempted-and-didn't-move inside its cooldown window AND nothing fresher is offerable; re-dispatching it would re-storm a known drain (the ~5%-shipping re-pick loop the bare loop hit).
- not-ratcheting — the OUTER RATCHET (docs/351): the loop has run too many
iterations in a row with no witnessed net gain — the reconcile-VERIFIED
ship-count (Step 3) is not rising, even though each iteration reported SHIPPED.
The loop is running but not improving (the "spinning, narrating progress while
net-shipping nothing real" failure that worsens the longer the loop runs). The
verdict is the kernel's
improveESCALATE, read VERBATIM — not the loop's self-report. Hand the judgment back to a human.
Conditions 6–7 are the docs/207 anti-churn rungs (the loop stops re-picking work
it cannot move); condition 8 is the docs/351 ratchet (the loop stops when it is
moving but not improving — RSI made first-class here, the same improve keep-gate
the /dos-self-improve loop uses, now gating each dispatch iteration's net gain).
Inputs
--lane <name>(optional) — focus the whole loop on one lane (fixed for the run; a bare loop auto-picks a free lane at Step 0).--gate hard|soft|drive(defaulthard) — the verdict policy.hardroutes a non-LIVE verdict through/dos-replan;soft/drivestop on a true DRAIN;driveself-heals a STALE-STAMP inline.--max-iterations <N>(default 10).
Step 0 — Pre-flight: take the lane, read the taxonomy
dos doctor --workspace . --json
python tools/dos_fleet_lease.py --workspace . acquire --lane <LANE> --kind cluster
The fleet lease wrapper materializes the live lease union, feeds it to the kernel
acquire, then republishes this node's held set. For ordinary shard lanes this is the
same-host fast path; for the three global lanes (abi, release, global) it uses
the GitRefStore cross-node transport by default (#21). A REFUSE means a sibling loop
already holds an overlapping lane — pick a free one from kernel.free_clusters or
exit. Initialise the loop counters (iteration=1, the breakers at 0).
dos lease-lane acquireis the lease AUTHORITY;dos arbitrateis ADVISORY. Onlyacquirefolds the durable lane-journal WAL under the lease mutex and journals the grant, so only its verdict binds. Honor its REFUSE; never start editing a tree on the strength of an arbitrate GO alone (arbitrate holds no lock, so even a correct GO can be stale by acquire time).The advisory has two surfaces and they do not behave the same:
dos arbitrate(the CLI) reads the live WAL by default, so it agrees withacquire. Passing--leases '[]'opts out into an empty world.- The MCP tool
dos_arbitratereads nothing — it arbitrates only against thelive_leasesyou hand it, and an omitted argument means "the world is empty", so every lane reads free. Observed live: MCPdos_arbitrateanswered"cluster lane 'tools' free — admitted."for a lanedos lease-lane acquirerefused the same second as"already held by a live loop"(dos-kernel#246). Until that lands, either use the CLI form or pass the real set explicitly (dos lease-lane live/fak leaseref live). A FREE from a checker that cannot see the store is not evidence of a free lane.
Step 1 — Pick-selection: skip held + cooled units (the anti-churn gate)
Before a dispatch iteration offers a unit, screen the candidate unit set so the
loop never re-storms work it cannot move (the docs/207 §6 throughline). For each
candidate, in order:
dos pickable <UNIT> --state '<host-gathered state>' # OFFERABLE=0; HELD=per-reason code
dos cooldown <UNIT>
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dos-dispatch-loop?
Run recurring `dos-dispatch` cycles, switching to `dos-replan` when the backlog drains and stopping on the kernel's loop verdict. Use for unattended dispatch->replan->dispatch work across disjoint lanes.
Как установить скилл dos-dispatch-loop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dos-dispatch-loop запускает скрипты?
Нет, скилл состоит только из инструкций (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…