Imagine managing AI projects not as a chaotic jumble of prompts but as a stable and scalable operation. Citadel introduces a four-tier routing structure for Claude Code, replacing ad hoc prompting with a deterministic workflow. This system empowers developers to scale their projects efficiently while maintaining control through infrastructure-level hooks and fleet management. The result is a streamlined process that supports complex agent orchestration.
Understanding Citadel's Four-Tier Routing System
Citadel's innovation lies in its hierarchical orchestration model: Skill, Marshal, Archon, and Fleet. The '/do' command automatically routes tasks to the most efficient level. Skills handle single tasks, Marshals manage sequences, Archons oversee multi-session campaigns, and Fleets coordinate parallel agents in isolated worktrees. This tiered system ensures that projects are handled with precision and scalability, reducing the chaos of manual prompt management.
Parallel Processing with Fleet Mode
One of Citadel's standout features is its Fleet mode, which runs parallel agents in separate git worktrees. This reduces file conflict to just 3.1% across 109 waves, thanks to a 'discovery relay' that compresses wave findings into succinct summaries. Developers can leverage this to tackle large-scale projects without the typical headaches associated with concurrent agent operations, leading to more efficient and error-free code development.
Lifecycle Hooks for Reliable Project Management
Citadel enforces reliability through eight lifecycle hooks such as typechecking and quality gates. These hooks run automatically, shifting responsibility from prompts to infrastructure. They ensure that agents adhere to project constraints, reducing the margin of error and preserving code quality across sessions. This governance framework is pivotal for developers aiming for consistency and precision in AI-driven projects.
Achieving Persistence Across Sessions
Campaign persistence allows developers to resume sessions seamlessly with the '/do continue' command. It maintains project state across sessions, a feature absent in raw Claude Code. This persistence is particularly useful for long-term projects, where context continuity is crucial. By tracking campaign states through files, developers can ensure that their efforts are cumulative and not lost between interruptions.
Citadel transforms AI development workflows by combining robust orchestration, persistence, and project governance. Developers seeking deterministic operations over chaotic prompting will find it indispensable.
Here's what you can do with this today: Clone the Citadel repository and integrate it into your current project. Use '/do setup' and assign tasks to orchestrated agents to automate repetitive coding processes.