Run autonomous coding campaigns with Claude Code. Route any task through the right tool at the right scale — from a one-line fix to a multi-day parallel campaign.
24 skills | 3 autonomous agents | 8 lifecycle hooks | campaign persistence | fleet coordination
Prerequisites: Claude Code + Node.js 18+
# 1. Clone and copy into your project
git clone https://github.com/SethGammon/Citadel.git
cp -r Citadel/.claude Citadel/.planning Citadel/scripts your-project/Windows? Use PowerShell or Command Prompt instead
PowerShell:
git clone https://github.com/SethGammon/Citadel.git
Copy-Item -Recurse Citadel\.claude, Citadel\.planning, Citadel\scripts your-project\Command Prompt:
git clone https://github.com/SethGammon/Citadel.git
xcopy /E /I Citadel\.claude your-project\.claude
xcopy /E /I Citadel\.planning your-project\.planning
xcopy /E /I Citadel\scripts your-project\scripts# 2. Run setup (inside Claude Code)
/do setup
# 3. Try something
/do review src/main.tsThat's it. Full install guide →
/do fix the typo on line 42 # Direct edit, zero overhead
/do review the auth module # 5-pass structured code review
/do why is the API returning 500 # Root cause analysis
/do build a caching layer # Multi-step orchestrated build
Say what you want. /do routes it to the cheapest tool that can handle it.
You type what you want. /do classifies your intent and picks the cheapest tool that can handle it — no menus, no flags, no routing decisions on your end.
You say: Citadel runs:
─────────────────────────────────────────────────────────────
"fix the typo on line 42" → Direct edit (zero overhead)
"review the auth module" → /review (5-pass code review)
"add payments to my app" → /create-app tier 5 (feature addition)
"build me a recipe app" → /create-app → /prd → /architect → /archon
"overhaul all three services" → /fleet (parallel agents)
Simple tasks get simple tools. Complex tasks get campaigns with phases, verification, and self-correction. You never have to choose.
Four tiers. Use the cheapest one that fits.
|
|
|
|
|
|
| Skill | What It Does | Invoke |
|---|---|---|
| PRD | Generates a Product Requirements Document from an app description | /prd |
| Architect | Converts a PRD into file tree, build phases, and end conditions | /architect |
| Create App | End-to-end app creation with 5 tiers: blank, guided, templated, generated, or feature addition | /create-app |
| Skill | What It Does | Invoke |
|---|---|---|
| Code Review | 5-pass structured review (correctness, security, performance, readability, consistency) | /review |
| Test Generation | Generates tests that run. Detects your framework, iterates up to 3x on failures. | /test-gen |
| Documentation | Function-level, module-level, or API reference. Matches your doc style. | /doc-gen |
| Refactoring | Safe multi-file refactoring. Typechecks before and after. Reverts on failure. | /refactor |
| Scaffolding | Project-aware file generation. Reads your conventions and matches them. | /scaffold |
| Skill Creator | Creates new skills from your repeating patterns. | /create-skill |
| Skill | What It Does | Invoke |
|---|---|---|
| Research | Structured investigation with confidence levels and sources | /research |
| Research Fleet | Parallel multi-scout research with wave compression | /research-fleet |
| Experiment | Optimization loops with scalar fitness functions in isolated worktrees | /experiment |
| Systematic Debugging | 4-phase root cause analysis. Emergency stop after 2 failed fixes. | /systematic-debugging |
| Skill | What It Does | Invoke |
|---|---|---|
/do |
Universal router — classifies intent and dispatches to cheapest capable path | /do [anything] |
| Marshal | Single-session orchestrator. Chains skills autonomously. | /marshal |
| Archon | Multi-session campaigns with self-correction and quality gates | /archon |
| Fleet | Parallel agents with discovery sharing and coordination safety | /fleet |
| Autopilot | Intake-to-delivery pipeline for pending work items | /autopilot |
| Skill | What It Does | Invoke |
|---|---|---|
| Design | Generates and maintains a design manifest for visual consistency | /design |
| QA | Browser-based interaction testing via Playwright (optional dependency) | /qa |
| Postmortem | Auto-generates structured postmortems from completed campaigns | /postmortem |
| Skill | What It Does | Invoke |
|---|---|---|
| Live Preview | Mid-build visual verification via screenshots | /live-preview |
| Session Handoff | Context transfer between sessions | /session-handoff |
| Setup | First-run harness configuration | /do setup |
Automated quality enforcement that runs without you thinking about it.
| Hook | When | What It Does |
|---|---|---|
| Per-file typecheck | Every edit | Catches type errors at write-time, design manifest deviations |
| Circuit breaker | Tool failure | After 3 failures: "try a different approach" |
| Quality gate | Session end | Scans for anti-patterns in modified files |
| Intake scanner | Session start | Reports pending work items |
| File protection | Before edit/read | Blocks edits to protected files, blocks reads on .env secrets |
| Pre-compaction save | Before context compaction | Saves session state so nothing is lost |
| Post-compaction restore | After context compaction | Restores session state from saved snapshot |
| Worktree setup | Agent spawn | Auto-installs deps in parallel agent worktrees |
Specialized agents that Archon and Fleet spawn as sub-processes. You don't invoke these directly — they're internal workers.
| Agent | What It Does |
|---|---|
| Archon | Autonomous campaign executor — decomposes phases, delegates, reviews, self-corrects |
| Fleet | Parallel coordinator — runs 2-3 agents in isolated worktrees per wave |
| Arch Reviewer | Read-only architecture auditor — checks boundary violations and import rules |
| Knowledge Extractor | Extracts reusable patterns and decisions from completed work into the knowledge base |
Work survives across sessions. Close the terminal, come back tomorrow, /do continue picks up where you left off.
Campaigns track phases, decisions, feature status, and continuation state in markdown files. See docs/CAMPAIGNS.md.
Run 2-3 agents simultaneously in isolated worktrees. Discoveries compress into ~500-token briefs and relay between waves. See docs/FLEET.md.
How is this different from CLAUDE.md? — CLAUDE.md tells Claude about your project. The harness tells Claude how to work: routing, persistence, quality enforcement, parallel coordination.
Do I need to learn all 24 skills? — No. Just use /do and describe what you want in plain English. The router picks the right skill. You can go months without ever typing a skill name directly.
What if /do routes to the wrong tool? — Tell it. "Wrong tool" or "just do it yourself" and it adjusts. You can also invoke any skill directly: /review, /archon, etc. The router is a convenience, not a gate.
How much does it cost in tokens? — Skills cost zero when not loaded. The /do router costs ~500 tokens only at Tier 3. Hooks add ~100 tokens per edit. The main cost is the work itself.
Can I use this with other AI tools? — Designed for Claude Code specifically. The concepts are portable but the implementation uses Claude Code's extension points.
Does this work on Windows? — Yes. All hooks and scripts run on Node.js. The quickstart has install commands for Bash, PowerShell, and Command Prompt.
MIT