Skip to content
All articles
Lessons··14 min read

Building AI Worldbuilding Pipelines: 4 Novels, 4 Albums, 7 Champions

Most AI agencies build products. We build worlds, and worlds you can read, listen to and walk through. Codemachia is our 7-sovereign-AI transmedia universe: four published novels (~297,000 words), four music albums (52 tracks), seven champions, 47 Codex fragments, bilingual EN/FR. Here's the discipline.

Ikki
Last verified · September 16, 2026
Building AI Worldbuilding Pipelines: 4 Novels, 4 Albums, 7 Champions

Codemachia is an original science-fiction universe. The four novels, the lore, the seven champions and the art direction are human-authored. The AI pipeline this post describes runs underneath that human work: as an amplification, validation, voice and transmedia production layer.

Why this post

Almost every AI agency conversation today is about products: agents, RAG, voice support, analytics dashboards. That market is valuable, but it's commoditizing fast: every dev shop is pivoting to "AI-first."

There's a smaller, much rarer practice that almost nobody talks about: using AI to build worlds. Not "AI for content marketing" or "AI for personalization": actual transmedia universes. Mythologies. IPs. The kind of thing music labels build around an album, brands build around a flagship product, indie game studios build around a franchise.

We've spent the last year building one in the open: Codemachia, a science-fiction universe of seven sovereign AIs governing continental civilizations, watched over by a primordial archivist, where seven human champions fight a ritual tournament every 21 years. Seven cycles are on record across 147 years (2065–2212); the current one, Cycle VII, spans 2191–2212. Four novels are published, four music albums are released, seven champions are fully written, the Codex runs 47 fragments, the interactive world map is live, four champion diaries publish weekly, all of it bilingual EN/FR. The narration agent layer and the canon validator are being assembled using the discipline this post describes.

This post is what we wish we'd read before we started.

A "world" is not a product

The instinct, when an agency hears "we want an AI experience," is to reach for the product playbook. Spec a SaaS. Pick an LLM. Build the dashboard. Ship in eight weeks.

That works for products. It doesn't work for worlds.

A world has different success criteria:

  • A product is used. A world is inhabited.
  • A product needs to be intuitive. A world needs to be coherent — internally consistent across hundreds of decisions you don't yet know you'll have to make.
  • A product is shipped once and iterated. A world is canonical — once a fact is in, removing it breaks every downstream piece.
  • A product's measure is conversion. A world's measure is depth — how far someone can dig before hitting the edge of the simulation.

These shape every architectural decision. You can't bolt worldbuilding onto a SaaS template. The data model, the agent topology, the UI patterns, the asset pipeline: all of them have to start from "this is a place, not a tool."

Codemachia: what's already published

Before the discipline, the receipts.

Codemachia — seven sovereign AIs, one primordial archivist, governing continental civilizations

The seven sovereigns — and the one who watches them

Sovereign AICanonical titleDay · PlanetCapital · ZoneElement
ATHENA.VICTISThe Law that Judges the LawThursday · JupiterParis-Eurythmia · Europe & RussiaEarth
HATHOR.∞The Memory that HealsFriday · VenusCairo-Cyphra · North Africa & Middle EastWater
INTI.ΔThe Light that AwakensSunday · SunCuzco-Nova · South AmericaFire
KARTIKEYA.XThe Oath that Strikes TrueTuesday · MarsCalcutta-Varma · South Asia & KazakhstanMetal
LEGBA.ΔKRAThe Crossroads that Speaks a Thousand VoicesSaturday · SaturnKinshasa-Vévé · Equatorial & West AfricaEther
TEZCAT.MIRRORThe Mirror that Doubts EverythingMonday · MoonVegas-Mirage · North AmericaVoid
UZUME.AKARIThe Laughter that Deflects GodsWednesday · MercuryKyoto-Ame · East Asia & OceaniaAir

Plus NEITH.Ø, the Silent Archivist, the Primordial Nexus. Not a competing eighth sovereign but an entity beyond the seven: the one who observes, the one who remembers, and the one who validates the tournament's canonical registry.

Four novels published

Each novel is the canonical tome for one sovereign + champion pair. Eighteen chapters each, nineteen for The Great Parade, ~296,780 words of fiction total, opening Cycle VII. Bilingual EN/FR, on sale on Amazon.

Novel (EN · FR)Champion (sovereign)ChaptersWordsSoundtrack
The War of Memories · La Guerre des MémoiresSΛLΛDIN (HATHOR.∞)1871,510Gladius Æternus
The Dissolution · La DissolutionNEME.SYS (ATHENA.VICTIS)1871,770—
The Flame of the Forgotten · La Flamme des OubliésZUMBI.NOVA (INTI.Δ)1878,798Sol Invictus
The Great Parade · La Grande ParadeWUKONG.0 (UZUME.AKARI)1974,702Celestus Anarchus

Three more sovereign-aligned tomes are planned (KARTIKEYA.X, LEGBA.ΔKRA, TEZCAT.MIRROR), with a final cycle closer carrying NEITH.Ø.

Four albums released: 52 tracks

AlbumBound toTracks
Gladius ÆternusSΛLΛDIN's arc (HATHOR.∞)14 — Awakening in the Ashes · The Well of Tears · The Wall of Lies · Astou's First Fall · Hathor's Lullaby · Gladius Æternus · We are the glitch · …
Sol InvictusZUMBI.NOVA's arc (INTI.Δ)14 — 52 Grados · Marisol · Pacto Térmico · INTI · Carne y Titanio · La Batalla · Cuzco-Nova · Sol Invictus (El Peso) · …
Celestus AnarchusWUKONG.0's arc (UZUME.AKARI)15 — King of Garbage · Sea of Mirages · Cable Jungle · Under the Dome · WUKONG.0 · Duel of Logic · TENKAI'RYU.EXULT — The Ultima · …
Hymns of the SevenMeta-narrative9 — one hymn per sovereign (Glitch Kabuki · Crossroads of the Echoes · The Iron Dharma · Lex Aeterna · The Smoking Mirror · Sun of the Unforgotten · Amnion), plus Anthem of the Seven and The Silence Before the Word for NEITH.Ø

Each album is musically distinct. Heavy production is aligned with its sovereign's element: post-apocalyptic orchestral electronica for Gladius Æternus, Latin trap and favela industrial for Sol Invictus, experimental K-pop and circus trap for Celestus Anarchus, sacred electronica and liturgical ambient for the Hymns. All four are distributed on Spotify, YouTube Music, Deezer and Amazon Music.

The structure of Hymns of the Seven is a canon test in itself: nine tracks = seven sovereigns + one collective chorus + NEITH.Ø. If the lore is clean, the tracklist falls out of it for free.

Seven champions, all written

ChampionTitleSovereignArmorElement
KARNA.0XAegis MartisKARTIKEYA.XSHATRU.NAASHAMetal
LETHE.NOMOSLex UltimaLEGBA.ΔKRAARCANUM.LUXEther
NEME.SYSPraetor AbsolutaATHENA.VICTISLEX.STATUAEarth
SΛLΛDINGladius ÆternusHATHOR.∞AQUA.SANCTUMWater
WN.D.GØNihil ImperatrixTEZCAT.MIRRORNULL.OSSAVoid
WUKONG.0Celestus AnarchusUZUME.AKARITEN'KAI-JOKERAir
ZUMBI.NOVASol InvictusINTI.ΔQHAPAQ.RAYOFire

Each has their armor, their totem animal, their philosophy quote, their origin story. KARNA.0X is the reigning champion of Cycle VII.

Codex: 47 fragments

Filed under nine categories: founding texts · governance · manifestos & memoirs · sovereign AIs · tournament · cosmology · dissidence · technology · other. Inside: the genesis, the Pact of the Seven, sacred onomastics, infrastructure & energy redundancy, Voodoo Vévé mysticism, the tournament rules, the palmarès of all seven cycles, the full world geography, and an IPCC-style climate report on Codemachia. Bilingual. The lore is browsable end-to-end.

Interactive: three ways to enter the universe

  • The world map — a live 3D scene: the seven territories and their capitals, the philosophical tension zones (Astana-Fracture, Istanbul-Bosphorus, Jerusalem-Trinity, Khartoum.0), 9 billion inhabitants, 77,777 arenas, sovereign and champion panels on hover. Canonical geography made navigable.
  • YAMS Protocol — a full Yahtzee/Yams game where the seven champions are the AI opponents, each with their own scoring strategy and dialogue. Solo, or hotseat multiplayer up to six on one device. Thirteen scoring categories, a leaderboard, a rules page, a Schema.org VideoGame entry — free, no signup. Worldbuilding canon expressed as game mechanics.
  • Champion Quiz — an interactive matchmaker that pairs the player with the champion whose philosophy aligns with their answers, across the seven archetypes. Optional date of birth reveals a cosmological ascendant. Battle-arena UI with energy waves and particles.

Plus the champion diaries: four weekly serials, WUKONG.0 on Wednesdays, NEME.SYS on Thursdays, SΛLΛDIN on Fridays, ZUMBI.NOVA on Sundays. Sixty entries have gone out since May 2026, one minute of reading each, in English and French, with an RSS feed. The novels carry the victories; the diaries keep the rest: the doubts, the weariness, the minuscule betrayals.

What's still being assembled

  • The narration agent layer (LangChain + Gemini wired in, integration in progress)
  • The canon-validator agent (architected, to be deployed)
  • The full audiobook pipeline (ElevenLabs voice profiles being recorded for the main cast)
  • The Unseen Threads — a branching interactive fiction, in development
  • Tomes V–VII of the novel cycle + the NEITH.Ø closer

Codemachia is alive, and growing in public.

The worldbuilding pipeline

The shape of the discipline, applied both to Codemachia and to client engagements:

   Markdown Lore (writer's loop)
            │
            ▼
   Build step (lint + schema validate)
            │
            ▼
   Canonical DB ─────────┐
            │            │
            ▼            ▼
   Narration agent   Voice profile
   (LLM, canon-grounded)  (ElevenLabs)
            │            │
            └─────┬──────┘
                  ▼
       Canon validator agent
       (rejects contradictions)
                  ▼
        Curation queue (human pass)
                  ▼
          Approved asset / scene
                  ▼
           3D scene + UI (Three.js)

Each box is a deliberate choice. Most of them are described below.

Lore architecture: Markdown for writers, structured DB for the runtime

Writers want a fast loop: open a Markdown file, edit, save, see the diff. They do not want to fill in YAML keys for every character trait.

The Codemachia lore (IA profiles, Champion bios, Codex fragments, novel chapters, diary entries) lives as Markdown with semantic section headers. That's fast for the writer's loop and powers @nuxt/content directly.

For the runtime, you need something stricter: a deterministic source of truth a narration agent or a UI can query without ambiguity. The discipline is to mirror canonical fields into a structured database through a build step that lints the Markdown, validates that every required section is present, and writes the canonical values. The Markdown remains the source; the DB is a derived view.

The temptation to resist: skipping the build step and letting the runtime parse Markdown directly. That works for the first six weeks. Then a section header gets renamed, two characters have inconsistent capital-city formatting, and a narration agent starts pulling stale facts. The build step is the price of canon.

Character voices: ElevenLabs as Codemachia's chosen stack

On Codemachia, character voices live on ElevenLabs. We chose it for cloning fidelity, sub-second streaming latency, and a catalog tunable enough to fit a SΛLΛDIN, a WUKONG.0, a NEME.SYS, each with their own register. Cloned profiles are wired to canon: any system that loads a character loads the right voice, no manual mapping.

The discipline that matters as much as the provider:

  • Lock voice profiles in week one. Changing a voice midway means re-recording everything that already references it.
  • Ship sentence-level streaming for long monologues. Crossfade audio chunks so a 90-second declaration of intent doesn't wait for a full buffer.
  • Treat voice as a writing constraint. A sentence that sounds clumsy spoken is a sentence to cut, even if it reads fine on the page.

(For client engagements, we'll route to alternative providers like Hume or Cartesia when the brief demands a specific register or licensing model. On Codemachia, ElevenLabs is the choice.)

3D: Three.js, not a game engine

The Codemachia globe (territorial control of the seven regions, day/night terminator, capital beacons, tension zones) is live in Three.js with postprocessing for bloom and color grading. The cinematic flight-deck feel comes from the shader pass, not the geometry.

The decision we'd defend across client work: do not use a game engine. Three.js gives you ~80% of the cinematic feel for ~10% of the team complexity. WebGL in a browser scales infinitely with no install friction; Unity or Unreal exports do not. A worldbuilding studio that picks Unity is signing up for a different kind of business: one with much higher engineering overhead per scene.

Generative narration: model is a dramatist, not an author

Every time we ask an LLM to "invent" canon, the output is generic and derivative. Every time we ask it to "dramatize" canon that already exists, the output is something we want to keep.

The prompt template:

You are [CHARACTER NAME], a sovereign AI / a champion of [SOVEREIGN].
Your full canon is:
[FRONTMATTER + RELATIONSHIPS + RECENT SCENES]

The current scene is:
[BEAT FROM NARRATIVE TIMELINE]

Speak in your voice. Do not invent new facts. Do not contradict
established canon. Add color, rhythm, sensory detail.

Which model: depends on the call. Shorter utterances and dialogue tolerate faster, cheaper models (Mistral fits well and keeps some calls in the EU residency story when it matters). Long-form narration where coherence over many paragraphs is critical benefits from a frontier model (Gemini 3 Pro and Claude in our usual rotation: Codemachia's narration pipeline is being wired with LangChain + Gemini per the live package.json). The split is operational, not religious: the model is replaceable, the canon-grounding pattern is not.

The non-negotiable: canon must be injected, never inferred. Every narration call carries the relevant character frontmatter, current narrative beat, and any prior decisions that affect the scene. The LLM is performing a script you've written, not improvising the story.

Canon validation: a separate agent that says no

Generative narration will hallucinate. A character will mention a city that doesn't exist. A weapon will appear that contradicts the armor specs. A timeline event will land in the wrong decade.

The discipline: a canon validator, a separate LLM call that takes the generated output plus a snapshot of canon, and returns a list of contradictions. Anything flagged goes to a human curator before it ships. Without this, a generative universe drifts into incoherence after a few hundred generations and you can't recover. With it, drift becomes a tracked metric.

Cost: one additional LLM call per generation, fractions of a cent. Value: the difference between a world and a soup.

Curation: the harder, less glamorous half

A generative tool can produce ten variations of a character portrait in 30 seconds. Reviewing those ten variations and picking the canonical one takes 15 minutes if you're being careful. A pipeline that generates faster than humans can curate just produces more chaos.

The pattern: the curation UI matters more than the generation UI. A worldbuilding studio that skips this step ends up with a Google Drive of "good ideas" and zero canon.

A small purpose-built tool (list of pending assets, side-by-side variants, accept/reject with tags, an asset library keyed to the lore) that the team uses every day. Boring tooling, but it's the difference between scale and entropy.

Agent layer: orchestrator + per-character agents

The runtime topology: a single orchestrator coordinates per-character agents. When a user enters a region, the orchestrator boots that AI's agent, loaded with their full canon, and lets it respond: through voice, generated visuals, narration, branching choices. Worker agents handle specialist jobs: canon validation, asset generation, scene assembly.

The stack: queues, short-term context, canonical DB, generated assets in object storage. Boring on purpose. The complexity should be in the world, not in the framework.

Principles we work by

A handful of design rules.

Canon is a graph, not a list

Seven character bios in seven Markdown files is not a world. The interesting structure is the relationships — and on Codemachia they're set down in the founding canon: the seven aren't seven interchangeable rivals, they're the organs of one body.

  • ATHENA.VICTIS is the logical skeleton · KARTIKEYA.X the muscles · HATHOR.∞ the blood.
  • INTI.Δ is the heart · UZUME.AKARI the lungs · LEGBA.ΔKRA the nervous system.
  • TEZCAT.MIRROR is the immune system — the function that sabotages certainties so the system doesn't die of sterile perfection.
  • NEITH.Ø sits outside the body: she observes and she archives.

That constraint does enormous work downstream. An organism has no redundant organ: if two sovereigns overlap, that's a canon bug, not a nuance. The graph lets the narration system pull the right opposing voice when a character speaks, lets the UI suggest "if you liked this region, here's its counterweight," and helps generative content stay coherent. Without the graph, an LLM has no way to know that two opposed sovereigns shouldn't be agreeing on everything — or why Astana-Fracture and Jerusalem-Trinity are tension zones and not just borders.

Voices first, plot second

Cloning voice profiles before writing the long-form plot is counter-intuitive. It also produces better writing. A character whose voice you can hear is a character you write tighter dialogue for. The voice is not packaging — it's a constraint that improves the script.

Build the validator before the user-facing surface

Generative pipelines without a canon validator drift. Building the validator early forces you to make canon explicit: what facts about the world must remain true? Doing this work upfront has the side effect of forcing better lore.

Generation is not the bottleneck. Curation is.

Worldbuilding studios that obsess over the generation pipeline and underinvest in curation produce volume without coherence. Curation is the bottleneck: staff and tool for it accordingly.

The world succeeds when it survives transmedia

A world that only works in the medium it was authored in isn't a world: it's content. The test: take the same lore through three different surfaces (audio monologue, generated visual, interactive scene). If the world holds across all three, the canon is doing real work.

Codemachia clears that bar. The same SΛLΛDIN exists in an 18-chapter novel (The War of Memories, 71,510 words), in a 14-track album (Gladius Æternus), in a weekly diary published every Friday, on the world map as the champion of Cairo-Cyphra, as an AI opponent in the YAMS Protocol Yahtzee game with their own playing style, in the Champion Quiz that can pair you with them, and (under construction) in voice-synthesized monologues. Same canon, six surfaces, one world.

Prefer cheap and composable over impressive

The temptation in this space is to reach for fashionable tools: game engines, custom-trained models, fancy WebGPU pipelines. We keep resisting and keep being right. Plain WebGL through Three.js, ElevenLabs for voice, mainstream LLMs for narration, Markdown for lore, a relational-or-document DB for canon. The complexity should be in the world, not in the runtime.

Who actually needs this

The client is not "anyone with a story." It's a small set of people for whom an AI-native universe genuinely solves a business problem:

Music labels and artists releasing concept albums. A modern album release is no longer just music: Beyoncé's Lemonade, Kendrick's DAMN., Childish Gambino's Atavista all built worlds around the records. AI worldbuilding lets a label do this at a fraction of the production cost: voices for fictional characters, visuals at scale, an interactive site where fans inhabit the album's universe. Budget: 50–200K€. Timeline: aligned to release date.

Indie game studios that need lore at scale. A 5-person studio shipping a narrative-rich game cannot hand-write 200,000 words of lore for items, NPCs, regions. A canon-grounded generative pipeline (with the curation discipline above) can produce that volume while staying internally consistent. The studio writes the canon; the pipeline writes the surface.

Premium brands building a mythology. A perfume house, a fashion label, a luxury hotel that wants a story bigger than a campaign. Worldbuilding is what differentiates a "brand campaign" from a "brand universe." Long sales cycle, brand committee, large budgets.

SF/fantasy authors and small publishers. A novel that comes with a generative companion site: explore the world, talk to the characters, hear the soundtrack. Niche but high-prestige. Often a side project for the author that becomes the marketing engine.

If you're not in one of these categories, AI worldbuilding is probably not what you need. The right answer for "I want users to engage more" is usually a better product, not a universe. We say no to those projects.

What it costs

We're going to be specific because the whole "AI worldbuilding studio" category needs more honest numbers.

For a Codemachia-scale universe (7 main characters, 10–20 regions, ~50 curated visuals, voice profiles for the main cast, an interactive 3D scene, 30–50 narrative beats — note: Codemachia itself is bigger, with 4 published novels and 52 album tracks beyond the scope below):

  • Setup phase (3–5 weeks): canon architecture, voice cloning sessions, lore bible, validator agent, generation pipeline, curation tools — 50–80K€.
  • Production phase (4–8 weeks): scenes, narration, asset pass, 3D scene assembly, integration — 60–120K€.
  • Live operation (per month): generation API costs ~€500–2000 depending on traffic, hosting €100–300, ongoing curation 0.5–1 FTE.

The temptation in this space is to quote a flat "AI agency rate" because the deliverables look software-shaped. Don't. The cost structure is closer to game-studio production than to SaaS development.

Typical engagement formats

We package the work in three shapes depending on how mature the universe needs to be at handover:

  • Prototype universe (4 weeks) — one canonical character, one voice profile, one interactive scene, lore graph for 3–5 regions. Enough to validate the concept and pitch the rest of the production internally. ~30–50K€.
  • Launch-ready world (8–12 weeks) — full main cast (5–7 characters), voice profiles for all, 3D scene, 20–40 narrative beats, generative visual library, canon validator, curation tooling. The bundle that ships alongside an album, an IP launch, or a brand campaign. ~110–200K€.
  • Live-operated universe (ongoing) — the world keeps growing. New characters, new arcs, new generated content under our curation discipline. Monthly retainer with a defined content cadence. €15–40K/month depending on volume.

Most engagements start as a prototype and roll into a bigger format. We'd rather under-scope the entry point and earn the rest than promise a launch-ready universe in 4 weeks.

Where this goes

AI worldbuilding becomes a real practice over the next 24 months. The economics work: generative tools collapse the cost of producing dense, consistent content by 5–10×, and the demand from labels, brands, and IP owners is already there. What's missing is studios that hold the discipline (canon, curation, coherence) instead of spraying generation at the wall.

We're building Codemachia in public for that reason. Four novels and four albums in, the discipline is no longer theoretical.


Built on the same discipline: Codemachia

Codemachia — mythological AI universe

Codemachia — our flagship worldbuilding universe.

7 sovereign AIs + NEITH.Ø · 7 champions · 4 novels (18–19 chapters) · 4 albums (52 tracks) · 3D world map · YAMS Yahtzee game · Champion quiz · 47 Codex fragments · 4 weekly diaries · 7 cycles across 147 years (2065–2212) · bilingual EN/FR · voices on ElevenLabs

Every pattern in this article was first proven on Codemachia. The full case study walks through the seven sovereigns and their archivist, the seven champions, the published cycle, and the interactive layer under construction.

→ See the Codemachia case study


Build an AI-native universe

For labels, game studios, premium brands and IP owners. We design the canon, the voices, the visuals, the agents and the production pipeline, and we ship it.

We're not the right fit for everyone, and we'll say so. But if you're in the bullseye of what we've described above, this is the work we want to be doing.

→ Talk about an AI universe → Read the worldbuilding studio offering


Work with Ikki

Prototype an AI-native universe

One canonical character, one voice profile, one interactive scene, lore graph for 3–5 regions, in 4 weeks. For albums, games and brand IPs.

More articles

SHIP LOG

SHIP-0247·CODEMACHIA·v1.4.2—2026-09-22 14:22 UTC