/autonomous-fleet:autonomous-fleet-adapter-templatefrom autonomous-fleet
TEMPLATE for writing a new autonomous-fleet adapter (e.g. codex, gemini-cli, a custom CLI fleet, or a raw tmux+worktrees setup). Copy this, rename to autonomous-fleet-adapter-YOUR-TOOL, and fill in how YOUR runtime implements each PRIMITIVE the core calls. The missions and the core never change — only this mapping does. Use when adding a new orchestration runtime to autonomous-fleet. Not a runnable mission skill.
Ships in autonomous-fleet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
autonomous-fleet-core is tool-agnostic: it calls a fixed set of PRIMITIVES and never hard-codes a
runtime's commands. To run the whole mission library on a new tool, you implement those primitives
once, here. Copy skills/autonomous-fleet-adapter-template/ to
skills/autonomous-fleet-adapter-<tool>/, set frontmatter name to match the directory, and fill
each section below with your tool's real commands. Then any mission runs by loading the core +
your adapter.
Pick a branch prefix default for your tool. State your tool's CONCURRENCY MODEL (does it have a
persistent orchestration daemon like Orca, or is the coordinator itself a session like Claude
Code?) — that determines whether WAIT() is a real blocking call or ledger-polling, and whether the
file ledger is the sole source of truth or a daemon also holds state.
For each primitive state real (a host mechanic exists and is shown below), degraded (a weaker substitute, e.g. ledger polling for WAIT — say what it loses), absent (no mechanic; name the documented fallback), aliased (e.g. CONTINUE_WORKER → SPAWN_WORKER), or asserted (command believed to exist but not verified on a live host — cite the verification issue). An adapter that presents a fallback as the primitive itself will fail review.
| Primitive | Status | Mechanic |
|---|---|---|
| … | … | … |
List the exact start-up checks for your runtime (runtime reachable / auth / worktree support / gitleaks / BASE exists).
Machine-readable preflight requires-block:
bins: [git, gh]
env: []
auth:
- check: "gh auth status"
skip_if_intent: "no_scm"
intent_gated:
scm: "willClaimExistingPR"
independent → .independent via container-use (OPTIONAL) → if your runtime can register the container-use MCP
(<tool> mcp add container-use -- container-use stdio, needs Docker), reuse the canonical sandboxed
loop in core engine-workers.md → CONTAINER-USE-PLACEMENT and record your registration command +
verification status here. Omit this bullet if unsupported.dependent → <how your tool runs a fresh worker in the current checkout/branch>.<the command(s) to create a worker in the given placement, with the tool's auto/skip-permissions +
max-effort flags. State what "ready" means and how you wait for it before DISPATCH.>
CAPABILITY TIERS. Declare the worker-spawn mechanisms your runtime offers, richest first (e.g.
native multi-agent teams → subagents → a single-session/inbox fallback) and which this adapter uses.
A thinner runtime may collapse to one tier — say so explicitly rather than leaving it implied.
ROLE → AGENT CLI. Map each role to a concrete CLI honouring the cross-vendor rule: builder
@codex (or @grok for design missions), a fresh build-blind reviewer @claude, integrator
@claude. With only one vendor available, keep terminal separation (a fresh reviewer session) and
record the single-vendor mode.
<how a task spec is handed to a worker so it will report completion. If your tool injects a
preamble, say so; if not, how the worker learns the completion contract.>
Required: prepend mission ## Worker skills for the worker's role (see core engine-workers.md WORKER
SKILLS block) before the task spec in every dispatch/inject payload.
<blocking call if the tool has a daemon; otherwise the polling strategy: re-read the file ledger + check worker/git state. State that a timeout is a checkpoint, not failure, and that an active worker is alive, not done.>
<commands to read task/worker/PR/ledger state WITHOUT consuming it.>
<how a worker signals completion (carry the work identifiers + files modified + summary); how a worker asks a blocking question and how the coordinator answers — or, if the tool can't block cross-worker, how DECISION DEFAULTS + ledger-recorded BLOCKED items substitute, never escalating to the user.>
<usually gh via your tool's shell. KEEP the conflict-aware rule verbatim: check mergeable, rebase
onto BASE, resolve, re-test green, re-review if logic changed, then merge with a MERGE COMMIT
(commits preserved, NEVER squash), delete branch. CLEANUP is a WT_CLEAN gate: verify MERGED +
branch-deleted FIRST; apply core engine guard clauses (NEVER remove active/unmerged/dirty worktree);
version-tolerant remove/archive per your runtime; set task-row WT_CLEAN=true; pull BASE.>
<how the tool's native task view is kept aligned with the file ledger — or a note that the ledger + your tool's todo mechanism together are the task view.>
<how your runtime binds native goal APIs to ledger DONE. See core references/runtime-goals.md.
If no goal API (daemon coordinator like Orca), document ledger-only mapping.>
<how to diagnose a worker that finished without reporting; how the coordinator survives its own context limit via the CONTEXT HANDOFF block in the ledger.>
These come from the core and your adapter must NOT weaken them:
Every mission SKILL.md must include:
## Required skills — core + one adapter; pointer to references/composition.md## Optional skills — coordinator-only; Activate when / If unavailable## Worker skills — per role (@grok builder, etc.); injected via DISPATCH## Deferred missions — table routing out-of-scope workfleet-outcome YAML first (fleet-outcome.md), then Recommended next missionsDo not author a second mission loader — chains and conditional DAGs belong in fleet-program.
Follow the single-sourced contract in
autonomous-fleet-core → references/adapter-contract.md (issue #89 — do
NOT re-inline it here; the drift lint fails copies). It covers run_short
branch/worktree namespacing, the CONTINUE_WORKER resume discipline
(RESUME_COUNT / MAX_RESUME_ATTEMPTS), and reviewer write-isolation. This
adapter's only runtime-specific binding:
Declare this adapter's TRACKER binding INDEPENDENTLY of its SCM binding (engine.md: gh is the DEFAULT, not the contract):
<github-issues | linear | none> — how the coordinator reads the issue, derives the
branch name, and marks the issue done.<gh | glab | ...> — OPEN_PR against BASE + conflict-aware MERGE_PR (never squash). A
Linear tracker can pair with a GitHub SCM.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (ravidsrk/autonomous-fleet) — no native marketplace selected
npx claudepluginhub p/ravidsrk-autonomous-fleet12 skills in this plugin
/adversarial-review-and-fix[Tier 2 · moderate autonomy · full review gate · the proven two-phase workhorse] Run a rigorous CODE-GROUNDED adversarial architecture review of a repo, FREEZE it as the source of truth, then close every confirmed finding one at a time until done. Use for a security/architecture/ reliability hardening pass, a pre-production audit-and-remediate, or "review the whole app and fix everything." Phase 0 reviews the actual source (not existing docs) and a skeptic narrows out false findings; Phase 1 fixes the confirmed set with full safety rails. Runs via the autonomous-fleet-core engine. Trigger on: "adversarial review and fix", "audit and remediate", "review the whole app and fix the issues", "harden this before production", "find and fix the architecture problems"./autonomous-fleetEntry point for the autonomous-fleet multi-agent engineering framework. Use whenever the user wants fully-autonomous coding runs, multi-agent orchestration, PR-per-task pipelines, or mentions autonomous-fleet — even if they have not named a specific mission yet. Routes to one mission or to fleet-program for sequential chains, loads autonomous-fleet-core plus a runtime adapter, and runs unattended on the current repo. Install from github.com/ravidsrk/autonomous-fleet. Trigger on: "use autonomous-fleet", "run autonomous fleet", "autonomous multi-agent run", "fleet mission", "which fleet mission should I use".