A deterministic agent orchestration system for Knowledge Work
npm install the-citadelDeterministic Agent Orchestration System – a lightweight engine that turns chaotic agent swarms into an auditable, deterministic Knowledge Factory.
---
Use The Citadel for complex, multi-step objectives: building software features, conducting deep research, synthesizing market reports, or managing content pipelines. By decoupling the process (SOPs) from the execution (Agents), it ensures that even creative work follows a reliable, auditable path.
---
``bash`
npm install the-citadel@0.0.1
---
- Foundry (Workflow Engine) – Compile standard operating procedures (SOPs) into dynamic Molecules (task DAGs).
- Process Integrity – The state machine guarantees Open → In Progress → Verify → Done transitions for every task.on_failure
- Dynamic Bonding – Agents can spawn sub‑tasks in parallel to handle complex objectives (research, coding, analysis).
- Resilient Recovery – Automated handling with conditional skips.max_workers
- Durable State – All context is stored in Git‑backed SQLite Pearls (audit‑ready, restartable).
- Parallel Execution – Configurable and load_factor for high-throughput concurrency.AGENTS.md
- Provider‑agnostic – Works with Ollama, OpenAI, Anthropic, and more.
- Provider‑agnostic – Works with Ollama, OpenAI, Anthropic, and more.
- Context Aware – Adheres to specific project rules and style guides () automatically. Supports YAML Frontmatter for strict ignore, read_only, and forbidden file constraints.context
- Dynamic Data Piping – Pass rich inputs () to tasks and pipe outputs between steps ({{steps.foo.output.bar}}).
---
`bash1️⃣ Install globally
npm install -g the-citadel@0.0.1
citadel start
`
⚙️ The Conductor will orchestrate agents automatically. Log output is written to log.txt courtesy of the shared CitadelLogger.
---
For detailed usage instructions, including advanced configuration, formula creation, and troubleshooting, please refer to the User Guide.
---
The Bridge is the lightweight terminal dashboard built with Ink that shows the orchestration in real time.
`bash`Launch the Bridge (Conductor + UI)
citadel bridge # or
bun run script:bridge
The dashboard remains open until you hit Ctrl+C.
---
``
├─ src/ # Source code
│ ├─ bridge/ # Terminal UI (Ink)
│ │ ├─ index.tsx # Entry point
│ │ └─ components/ # Dashboard panes
│ ├─ core/ # Core engine (queue, logger, pearls)
│ ├─ config/ # Config handling
│ ├─ services/ # Conductor & agent services
│ └─ types/ # Shared TS types
├─ docs/ # Documentation (this file included)
├─ tests/ # Unit tests
└─ README.md # This file
---
- New panels – Add a component under src/bridge/components and import it into Dashboard.tsx.AgentMatrix
- Event‑driven UI – Replace polling in / MoleculeTree with Conductor events.CitadelLogger
- Custom loggers – Hook into the global to emit richer data.
---
`bashTypeScript type-check
bun run tsc --noEmit
---
Contribution
1.
prl ready → Find a work item.
2. prl update → Claim it.
3. execute & verify → Pass all checks.
4. prl close Love to see you play around!