King Klown Logo
King Klown& KOA

Architecture Overview

Architectural Lineage (Credits):
SwarmCraft is an architectural fork and deep rewrite of the multi-agent swarm engine created by Mojomast in mojomast/swarmussy.
SwarmCraft’s deterministic “Architect-style” layering is also derived from the meta-structure of Abstract Wiki Architect (AWA).
Full details: Credits & Lineage

POWERED BY GROK

SwarmCraft is a deterministic, data-driven story engine. It transforms explicit project state into prose using a strict control loop and a layered architecture that separates:


1) The Three-Layer Model (Brain / Logic / Memory)

Brain (LLM Personas)

Stateless services that generate or evaluate content. They never own canonical state.

Typical personas:

Location (typical):

Logic (Deterministic Engine)

The orchestrated runtime that:

Core modules (typical):

Memory (Explicit Project State)

All durable “truth” lives in versionable state and indexes:


2) The Deterministic Control Loop

SwarmCraft runs a strict cycle:

SCAN → PLAN → EXECUTE

Details: Deterministic Pipeline


3) Core Data Objects

3.1 Matrix (Runtime State)

data/matrix.json is the machine-readable view of “what exists and what’s next.”

It tracks:

Details: Central Matrix

3.2 Story Bible (Creative Intent)

The Story Bible stores the canonical creative plan:

Details: Story Bible

3.3 Story Scaffold (Templates + Outline + Parts)

The scaffold is the structured narrative “grid” that humans and the Wizard can edit:

Details:


4) Units of Work: Parts, Not Chapters

A Part is the atomic unit SwarmCraft drafts and revises.

Part orchestration: Orchestration: Slice-by-Slice Prompt Hydration


5) Multi-Project Isolation

SwarmCraft supports multiple isolated projects (universes):

Details: Multi-Project Management


6) RAG Memory for Long-Form Continuity

The memory system ingests written prose and enables semantic retrieval:

Details: RAG Memory System


7) Control Surfaces

SwarmCraft is designed to be observable and steerable:


8) Provider Integration (Grok)

SwarmCraft uses a provider adapter to keep the engine model-agnostic:

Details: Provider Adapter: Grok


9) Where to Go Next