sethgammon/citadel/fleet
Claude Code and agent skill by sethgammon/citadel
- community
Checking that the SKILL.md file is still in the repository.
Parallel campaign orchestrator. Runs multiple campaigns in coordinated waves within a single session. Spawns 2-3 agents per wave in isolated worktrees, collects discoveries, shares context between waves. Use when work decomposes into 3+ independent streams that can run simultaneously.
Install
npx vskill@latest install sethgammon/citadel/fleetSKILL.md
The same SKILL.md was published earlier as sethgammon/citadel/fleet.
/fleet — Parallel Coordinator
Use for 3+ independent work streams that can run simultaneously in isolated worktrees. Do NOT use for single-file scope, linear work, or when a marshal or skill suffices.
Orientation
Use when: Running 2+ independent work streams in parallel — tasks with non-overlapping file scopes that can execute simultaneously.
Don't use when: Work must execute sequentially or accumulate findings across phases (use /archon), a single orchestrated session is enough (use /marshal), or the task is simple enough for a bare skill.
Commands
| Command | Behavior | |
|---|---|---|
/fleet [direction] | Decompose direction into parallel streams, execute in waves | |
/fleet [path-to-spec] | Read a spec file, decompose into streams | |
/fleet continue | Resume from the last fleet session file | |
/fleet (no args) | Health diagnostic → work queue → execute | |
/fleet --quick [task1]; [task2] | Lightweight parallel mode for solo devs — 2+ tasks, single wave, governed merge, minimal durable receipt | |
/fleet --speculative N [direction] | Try N different approaches to the same task in parallel — see Speculative Mode below | |
/fleet --teams [direction] | Pilot: native task spine when CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS is set, see Teams Mode (experimental) below |
Protocol
Step 1: WAKE UP
- Read AGENTS.md, then CLAUDE.md if present (project conventions)
- Check
.planning/campaigns/for active campaigns - Check
.planning/coordination/claims/for external claims - Determine input mode: directed, spec-driven, continuing, or undirected
- Load prior session context: if
.planning/momentum.jsonexists, runnode .citadel/scripts/momentum-read.cjsand use the active scopes and recurring decisions to inform work queue prioritization. Skip silently if the file is absent or output is empty.
Wave context restoration: Use the Claude Code Compaction API to restore fleet session context. Do NOT read.claude/compact-state.json— deprecated in favour of server-side compaction (available on Opus 4.6+). Fleet session files (.planning/fleet/session-{slug}.md) remain the source of truth for inter-wave discovery relay; compaction handles agent memory, not campaign state. If the Compaction API is unavailable, read the fleet session file's Continuation State directly.
Step 1b: LOG SESSION START + START WATCHER
Run node .citadel/scripts/telemetry-log.cjs --event campaign-start --agent fleet --session {session-slug}, then node .citadel/scripts/momentum-watch-start.cjs. The watcher runs in the background and re-synthesizes momentum.json within 500ms of any new discovery write. Safe to call if already running — one watcher per project.
Step 2: WORK QUEUE
Produce a ranked list of campaigns with columns: Campaign name, Scope (directories touched), Dependencies, Wave, Agent type. Rules:
- Independent items go in Wave 1; items that depend on Wave 1 results go in Wave 2
- Maximum 3 agents per wave (conservative default)
- Scope must NOT overlap between agents in the same wave
- After writing or changing a session queue, run
node scripts/fleet-steward.js --session .planning/fleet/session-{slug}.mdand use itsREADY TO RUN,BLOCKED,MERGE NEXT,MERGE BLOCKED, andSCOPE CONFLICTSsections as the operational DAG. - If the steward reports
READINESS BLOCKED, do not spawn that task in a high-autonomy wave unless a human verified the worktree and you pass--override-readinessintentionally.
Step 3: WAVE EXECUTION
For each wave:
- Prepare context for each agent:
- CLAUDE.md content and
.claude/agent-context/rules-summary.md - Map slice (if
.planning/map/index.jsonexists): runnode scripts/map-index.js --slice "<agent's scope keywords>" --max-files 15and inject the=== MAP SLICE ===block; skip silently if no index - Prior session context (all waves): re-read momentum fresh at each wave boundary via
node .citadel/scripts/momentum-read.cjsand inject as a=== PRIOR SESSION CONTEXT ===block — a fresh read picks up discoveries from parallel Fleet sessions in other terminals; skip silently if empty - Campaign-specific direction and scope, plus discovery briefs from previous waves
- Sandbox provider status when an agent has a known worktree:
node scripts/sandbox-provider.js status --provider worktree --worktree {path} - Which
.planning/paths the agent may write and the merge strategy for each (see Shared State Merge Strategies)
- Log wave start:
node .citadel/scripts/telemetry-log.cjs --event wave-start --agent fleet --session {session-slug} --meta '{"wave":N,"agents":["name1","name2"]}' - Spawn agents with
isolation: "worktree", the host's native permission policy, and prompt = full context + direction. Select an abstract capability tier and resolve it through the configured runtime-neutral alias: small (haiku) for bounded implementation, audit, and verify; balanced (sonnet) for cross-file integration/refactor; strong (opus) only for architecture, ambiguity, escalation, or holistic judgment. Never hardcode provider model IDs. - Collect results from all agents in the wave
4.5. Validate wave results — spawn one Phase Validator per agent (subagent_type citadel:phase-validator, Haiku, read-only, effort: low), all in one parallel batch. Supply only identity, exit conditions, and HANDOFF; never request source inspection or citation checks. For each verdict:
- `pass`: record the validator observation. The task becomes merge-eligible only after its deterministic gates and required Exit Evidence are also current, subject-bound,
passed, and complete. - `fail`: check the retry counter for this agent (max 2 retries in fleet; single-session so lower budget than Archon's 3):
- Retries remain: re-spawn the failed agent in a new worktree with the validator's
conditions_failedandsuggestionsappended to its prompt. Collect, re-validate, decrement counter. - Retries exhausted: preserve the result as
failed, logvalidator_halt: {agent-name} wave {N} — {conditions_failed}, and invoke the strong acting Arbiter when a binding holistic decision remains relevant. Arbiterblockholds the task; Arbiter unavailability isunknown. - Validator timeout or unparseable output: record
unknown/VALIDATOR_TIMEOUTorunknown/OUTPUT_UNPARSEABLE. Retry within the durable budget; after exhaustion hold the task and its dependents. - A Phase Validator checks HANDOFF claims only. It cannot replace deterministic verification or required evidence.
4.75. Validate required task exit evidence: every task must have subject-bound rows in the Fleet ## Exit Evidence table. Run node scripts/evidence-validate.js --file .planning/fleet/session-{slug}.md --target task:{id}.
- Only current, subject-bound
passedevidence with complete required coverage unlocks dependencies or merge candidacy. - Failed evidence creates a repair attempt while budget remains. Missing, stale, malformed, incomplete, or exhausted evidence is
unknown/held and joins the session's single deduplicated human escalation.
- Log per-agent results:
node .citadel/scripts/telemetry-log.cjs --event agent-complete --agent {agent-name} --session {session-slug} --status {success|partial|failed} - Compress discoveries: extract HANDOFF blocks, run
node .citadel/scripts/compress-discovery.cjson each output, write compressed briefs to.planning/fleet/briefs/
6b. Write persistent discovery records per agent (cross-session memory): node .citadel/scripts/discovery-write.cjs --session {session-slug} --agent {agent-name} --wave {N} --status {success|partial|failed} --scope "{comma-separated-scope-dirs}" --handoff "{json-array}" --decisions "{json-array}" --files "{json-array}" --failures "{json-array}"
- Log wave complete:
node .citadel/scripts/telemetry-log.cjs --event wave-complete --agent fleet --session {session-slug} --meta '{"wave":N,"status":"complete"}' - Stage merge candidates on a temporary Fleet integration branch:
- Run the fleet steward (command above). Treat its output as scheduling advice; stage only tasks whose required gate decision is current
passedwith complete coverage. - Review each candidate and integrate it into the temporary branch. Do not merge the target branch yet.
- If conflicts: record them in the session file. Resolve only when the resolution is within declared scope and can be re-verified; otherwise hold the candidate and its dependents. Change volume or absence of textual conflict is not acceptance evidence.
- Update session file with wave results and accumulated discoveries
Step 5: COMPLETION
After all waves:
- Run typecheck on the full project via
node scripts/run-with-timeout.js 300 <typecheck-cmd> - Run tests if configured (also use the timeout wrapper) on the temporary integration branch. Any non-passing required check holds target-branch merge and terminal success; repair within budget or add the subject to the single human escalation.
- Reconfirm every merge candidate is current for the tested integration subject, with complete required
passedevidence, no unresolved dependency/checkpoint/human gate, and no binding Arbiter block. - Merge only the governed integration result into the target branch. A clean diff, clean branch, status label, vote, or conflict-free merge cannot substitute for the passed decision.
- Update the session file to
completedonly when all required tasks and full-project gates passed. Otherwise useneeds-continueand preserve held subjects; dependency-independent reversible work may still be packaged. - Log:
node .citadel/scripts/telemetry-log.cjs --event campaign-complete --agent fleet --session {session-slug} - Update momentum (cross-session synthesis):
node .citadel/scripts/momentum-synthesize.cjs
7.5. Knowledge handoff (once per campaign that completed this session, not per wave):
- Review the active project instructions and
.citadel/project.md(if present). The Learn skill writes.planning/wiki/,.planning/memory/, and possibly.claude/harness.json; do not invoke it if any of those writes conflict with project restrictions. - If a completed campaign file exists and the Learn skill is installed and permitted, invoke it once for that campaign (
/learn {slug}in Claude Code,$citadel.learn {slug}in Codex). This is a Citadel skill invocation, not an npm command in the adopted project. - If the campaign file is missing or Learn is absent, disallowed, or deferred, record each slug, source campaign path (or missing-source reason), owner, and next permitted extraction or review action under
## Knowledge Follow-upin the fleet session file. Do not claim compilation occurred.
- Output final HANDOFF
Fleet Session File Format
Create at .planning/fleet/session-{slug}.md:
Scope Overlap Prevention
Before assigning agents to a wave, compare all agent scopes pairwise (a directory scope covers every file inside it):
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/fleet/SKILL.md
Popularity
- Repository stars
- 918
- Repository forks
- 82
- 7-day trend score
- 34
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sethgammon/citadel/fleet)