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:
Brain (LLM personas and prompt behaviors)
Logic (orchestration, tools, validation)
Memory (project state files + RAG index)
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:
Architect: plans next actions and targets
Narrator: drafts/revises prose for one Part
Editor: validates prose against scaffold + continuity
Location (typical):
ai_services/
Logic (Deterministic Engine)
The orchestrated runtime that:
selects what to do next
hydrates prompts slice-by-slice
executes file operations through guarded tools
enforces the update cycle
Core modules (typical):
core/orchestrator.py
core/agent_tools.py
core/project_manager.py
core/scanner.py (or equivalent)
Memory (Explicit Project State)
All durable “truth” lives in versionable state and indexes:
Matrix (runtime state): data/matrix.json
Story Bible (creative intent): data/story_bible/
RAG memory DB (long-term continuity): data/memory_db/ (per project)
2) The Deterministic Control Loop
SwarmCraft runs a strict cycle:
SCAN → PLAN → EXECUTE
SCAN
Reads filesystem + state, updates Matrix metrics/status, ingests new prose into RAG memory.
PLAN
Architect selects the next target Part and action (draft/revise/review), based on Matrix status + control signals.
EXECUTE
Narrator/Editor runs for exactly one Part. All mutations occur via tools, then the system returns to SCAN.