fleet-protocol
БесплатноБез исполняемых скриптовНе проверенThe contract every session in a multi-session Claude Code fleet reads first. Use when starting, joining, or running a fleet of parallel sessions on one…
от TheLobbi★ 22 звезды на GitHubОб этом скилле
Fleet protocol
The contract. A lane's brief says what it works on; this says how it behaves.
Everything fleet-specific — repo names, lane names, paths, bases, hands-off
sets — lives in fleet.config.json (see references/configuration.md). This
file names no repository.
The protocol is a tool, not a reading assignment. Every ritual below has a
one-command form in ${CLAUDE_PLUGIN_ROOT}/scripts/fleet.mjs, and the
evidence rule that governs it is built into the command so it cannot be
skipped. Prefer the command to the hand-written version every time — the
hand-written versions are what cost the source run hours.
| Ritual | Command |
|---|---|
| register + first heartbeat, one action | fleet register <lane> <session> |
| heartbeat, validated on write, read back before success | fleet hb <lane> <state> <task> [note] |
| what am I waiting on, has it cleared | fleet blockers <lane> |
| every lane's state and age | fleet census |
| a PR's check state, read properly | fleet checks <owner/repo> <pr> |
| which posted verdicts have gone stale | fleet verdicts <owner/repo> |
| who a merge unblocks and whose green it broke | fleet unblocks <owner/repo> <pr> |
| CI load in jobs, not runs | fleet queue-depth <owner/repo> |
| the router's digest | fleet digest |
| a run directory from a config | fleet init <run-id> · fleet doctor |
(fleet = node "${CLAUDE_PLUGIN_ROOT}/scripts/fleet.mjs"; --self-test
proves the pure logic on fixtures, including the double-run and mixed-type
check cases.)
Session mode. Each lane is its own session, not a subagent. A
foreground Agent call blocks the caller's turn: it cannot heartbeat and
cannot read messages until the call returns. Subagents are for bounded work
inside a lane's turn, never for a lane itself.
1. Registration and addressing
On start, resolve your own identity (
ListAgents— its first line names this session) and append one row to the run'sregistry.md:| <UTC> | <lane-name> | <session-name> |. The session name is the sidebar title and changes when a human renames it; the registry is append-only, and the last row for a lane is its current address.Resolve every address from the file at send time, never from memory. Read the last registry row for that lane, then send. If a send fails to resolve, run
ListAgentsonce, match the row whose title fits the role, append a fresh registry row, retry once. A role with no registry row is not online — send to the dispatch router instead.This is a rule about the reader, not the file. Two sessions independently addressed a session that had been ruled hung hours earlier, in the same hour, from memory — while the registry was correct the entire time. One was caught by accident, the other by the first's confession, and no process caught either. A correct, authoritative artifact that nobody consults is the hardest instrument failure to fix, because there is nothing to repair.
Never poll. Messages enqueue at the receiver and are processed on its next turn, so a message wakes an idle session. A polling loop over
ListAgentsburns turns and proves nothing.
Route through the dispatch router. All acks, reports, "PR ready"/"merged" notices, blocked notices and escalations go to one comms role, which fans out, collects acknowledgements, keeps the registry current, and sends the orchestrator digests, not a stream. Nobody else messages tier 0 directly.
Two rules the router itself is bound by, both learned the hard way:
- Relay verbatim; a relay that sharpens is a relay that falsifies. Paraphrase silently drops hedges. Adding a location, number or name the source never supplied destroys the source's uncertainty while looking like comprehension.
- Carry provenance across every hop ("per
<lane>, unverified"). A router multiplies confidence without adding evidence: a claim that travels lane → router → planner → back to its own origin arrives wearing two hops of apparent independent corroboration it never had.
2. Heartbeats and standby
You own exactly one file: heartbeats/<your-lane-name>.md. Append one line:
<UTC> | <state> | <task> | <note>
state ∈ start working waiting blocked delivered standby. The
note is optional; the other three fields are not, and no field may contain an
unescaped newline. The line is not just a convention — validate it with
${CLAUDE_PLUGIN_ROOT}/scripts/validate-heartbeat.mjs. Three sessions
produced three different malformations of this format in one evening, and one
of them — a leading |, copied from a table — shifted every field so a
tombstone for a dead session made the monitor report it alive.
Append at start, at every milestone, before and after any command
expected to run long, and at least every heartbeat.intervalMinutes
(default 15) while active.
- A heartbeat older than `heartbeat.staleMinu
Установить fleet-protocol в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл fleet-protocol?
The contract every session in a multi-session Claude Code fleet reads first. Use when starting, joining, or running a fleet of parallel sessions on one codebase - heartbeats and standby, addressing other sessions through a dispatch router, ASSERTED vs DELIVERED claim states, git discipline (one repo per lane, push-and-open-PR as one action, never rewrite shared history), and merge-readiness discipline (re-read the checks as the literal last action before a merge). Triggers on "start a fleet", "orchestration protocol", "lane", "heartbeat", "dispatch", "PR ready", "merge gate", "who owns this repo", or any question about how parallel sessions coordinate.
Как установить скилл fleet-protocol?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fleet-protocol запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic