{
  "version": 1,
  "canonical": "https://xaede.net/work/rampart-zero",
  "title": "Rampart Zero",
  "description": "A strategy game with an AI commander that lives on the player’s device.",
  "language": "en",
  "manifest": "https://xaede.net/representations/index.json",
  "contentHtml": "<article class=\"case-study\"><header class=\"detail-intro\"><nav class=\"page-breadcrumb\" aria-label=\"Breadcrumb\"><ol><li><a href=\"/\">Home</a></li><li><a href=\"/work\">Work</a></li><li><span aria-current=\"page\">Rampart Zero</span></li></ol></nav><span class=\"eyebrow\">Personally built game / Development game / invitation playtest</span><h1>Rampart Zero</h1><p class=\"detail-deck\">A strategy game with an AI commander that lives on the player’s device.</p></header><figure class=\"project-image wide-image\" data-project-visual><a href=\"/media/visuals/cases--rampart-zero.webp\" class=\"visual-open\" aria-label=\"Open full-size visual: Rampart Zero\"><img src=\"/media/visuals/cases--rampart-zero.webp\" width=\"1600\" height=\"900\" alt=\"A shielded Rampart Zero fortress in the edited development trailer\"  decoding=\"async\"></a><figcaption>Frame from the edited development trailer. The selected frame has no added graphics. · <a href=\"/media/visuals/cases--rampart-zero.webp\">View full size ↗</a></figcaption></figure><section class=\"section detail-grid\"><aside><h2 class=\"eyebrow\">PROJECT CONTEXT</h2><div class=\"case-fact\"><h3>My role</h3><p>Game design, engineering and production, using coding agents and generative tools.</p></div><div class=\"case-fact\"><h3>Runtime</h3><p>Browser game; local Commander inference with CPU/WASM execution.</p></div><div class=\"case-fact\"><h3>First-load model data</h3><p>Approximately 505 MB; cached for subsequent visits.</p></div><div class=\"case-fact\"><h3>Status</h3><p>Development game with an invitation playtest; not a commercial-release claim.</p></div></aside><div class=\"prose\"><section class=\"project-chapter\"><h2>Can the commander become a game mechanic?</h2><p>I wanted to know whether an AI commander could be a genuine game mechanic. A player needs immediate feedback. The system needs to understand an instruction, determine whether it is legal, and do something useful under pressure. Every extra second matters. Paying a remote inference provider each time somebody asks a unit to move creates another constraint: the operating cost grows with use.</p><p>Rampart Zero is a browser-native fortress-defense strategy game built around that problem. You can give spoken instructions to build, move and defend, ask for a situation report, or interrupt an instruction that no longer makes sense. The Commander is another way to operate the game, with the same underlying rules as the ordinary controls.</p></section><section class=\"project-chapter\"><h2>Three local models and an explicit command language</h2><p>Speech recognition uses Moonshine Small Streaming. Language understanding runs through a fine-tuned, quantized LFM2.5-350M model in wllama, with grammar-constrained decoding. Kokoro supplies local voice output. The player does not configure an API key or send each command to a hosted language model.</p><p>The language model produces a compact line-based command language. A parser compiles that into tool arguments, then the tool runner checks argument schemas, policy and execution budgets. Common control words and explicit requests can take a deterministic path, reserving model inference for the instructions that need it.</p></section><figure class=\"project-image case-detail-image\" data-project-visual><a href=\"/media/rampart-zero-commander.webp\" class=\"visual-open\" aria-label=\"Open full-size visual: The Commander transcript in phone gameplay, showing a spoken request to build four generators and the game’s acknowledgement\"><img src=\"/media/rampart-zero-commander.webp\" width=\"1080\" height=\"1920\" alt=\"The Commander transcript in phone gameplay, showing a spoken request to build four generators and the game’s acknowledgement\" loading=\"lazy\" decoding=\"async\"></a><figcaption>Commander transcript from the supplied phone-gameplay footage. This demonstrates the interaction, not performance across all phones. · <a href=\"/media/rampart-zero-commander.webp\">View full size ↗</a></figcaption></figure><section class=\"project-chapter\"><h2>The first visit pays a different cost</h2><p>Local inference moves work onto the device. The current model set is approximately 505 MB, including recognition and voice. A first visit has to download, cache and initialize it alongside a running 3D game. A warm browser cache and a first launch can feel very different.</p><p>The deliberately small language model makes the command vocabulary, grammar and deterministic shortcuts more important. Memory and CPU are shared with gameplay, and devices have different performance envelopes. The exchange is useful: per-command inference cost becomes something I can address through the design of the game rather than a remote bill that rises with engagement.</p></section><section class=\"project-chapter\"><h2>The model interprets intent; the game owns the state</h2><p>Generated text cannot decide a unit’s location, a resource balance or whether construction is allowed. The deterministic simulation and the game’s command executors remain responsible for those outcomes. The model interprets the request; the application validates it and applies the game rules.</p><p>That boundary is one of the most useful design decisions in an AI-native experience. A new input method can expand what the player expresses without quietly handing it ownership of the world state.</p></section><section class=\"project-chapter\"><h2>A working capability still has to earn its place</h2><p>The Commander can turn speech into game actions. The game also has to teach a player why and when to use it. That is an onboarding and interaction problem as well as a model problem. The first-run briefing and in-game tutorial are part of making the capability discoverable.</p><p>Rampart Zero is still evolving. The question is no longer just whether a small model can run locally and turn an instruction into a valid command. The question is whether that capability makes a better strategy game: one players understand, enjoy and want to return to.</p></section></div></section><section class=\"section case-flow\"><span class=\"eyebrow\">ARCHITECTURE</span><h2>From speech to a game action</h2><ol><li>Moonshine: speech to text</li><li>Deterministic route or local LFM model</li><li>Grammar and command parser</li><li>Validated tools and game rules</li><li>Simulation result and Kokoro response</li></ol></section><section class=\"section detail-grid\"><aside><span class=\"eyebrow\">EVIDENCE & RELATED WORK</span></aside><div class=\"prose\"><p class=\"edition-note\">Commander architecture reviewed November 11, 2026. Model-download size follows the packaged release record; startup and inference performance depend on the device and cache.</p><div class=\"related-reading\"><a class=\"text-link\" href=\"/writing/the-new-grammar-of-ai-native-game-development-a5cad44fbd48\">The game’s earlier engineering account <span aria-hidden=\"true\">↗</span></a><a class=\"text-link\" href=\"/writing/ai-is-moving-into-the-runtime-201927e60a14\">AI inside a working application <span aria-hidden=\"true\">↗</span></a></div></div></section></article>",
  "structuredData": {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "Person",
        "@id": "https://xaede.net/#josh-english",
        "name": "Josh English",
        "url": "https://xaede.net/about",
        "sameAs": [
          "https://github.com/josh-english-2k18",
          "https://medium.com/@jengas",
          "https://www.linkedin.com/in/joshua-s-english",
          "https://x.com/JoshSeriesAI"
        ],
        "jobTitle": "VP of Engineering",
        "description": "Josh English is VP of Engineering at Chronicle Media and was previously CTO of Series Entertainment. His career spans more than twenty-five years of distributed systems, game technology and engineering leadership. At Google he worked as a lead engineer on large-scale services and applied ML; at Big Run Studios he led multidisciplinary technology teams across seven time zones and four countries. At Series he directed engineering, QA, DevOps and infrastructure supporting live commercial games and AI-enabled production. He also builds personal games and developer tools to investigate how emerging capabilities work in practice, and writes about engineering judgment, organisation design and product economics.",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/about#webpage"
        }
      },
      {
        "@type": "WebSite",
        "@id": "https://xaede.net/#website",
        "url": "https://xaede.net/",
        "name": "Xaede",
        "alternateName": [
          "Xaede.net",
          "Josh English — Xaede"
        ],
        "inLanguage": "en",
        "publisher": {
          "@id": "https://xaede.net/#josh-english"
        }
      },
      {
        "@type": "WebPage",
        "@id": "https://xaede.net/work/rampart-zero#webpage",
        "url": "https://xaede.net/work/rampart-zero",
        "name": "Rampart Zero",
        "description": "A strategy game with an AI commander that lives on the player’s device.",
        "inLanguage": "en",
        "isPartOf": {
          "@id": "https://xaede.net/#website"
        },
        "about": {
          "@id": "https://xaede.net/#josh-english"
        },
        "mainEntity": {
          "@id": "https://xaede.net/work/rampart-zero#work"
        },
        "breadcrumb": {
          "@id": "https://xaede.net/work/rampart-zero#breadcrumbs"
        },
        "primaryImageOfPage": {
          "@id": "https://xaede.net/media/visuals/cases--rampart-zero.webp#image"
        }
      },
      {
        "@type": "CreativeWork",
        "@id": "https://xaede.net/work/rampart-zero#work",
        "name": "Rampart Zero",
        "description": "A browser fortress-defense game with an AI commander you can talk to. Local speech, language understanding and voice output make intelligence part of the controls without a hosted model call for each order.",
        "author": {
          "@id": "https://xaede.net/#josh-english"
        },
        "creativeWorkStatus": "Development game / invitation playtest",
        "url": "https://xaede.net/work/rampart-zero",
        "mainEntityOfPage": {
          "@id": "https://xaede.net/work/rampart-zero#webpage"
        },
        "image": {
          "@id": "https://xaede.net/media/visuals/cases--rampart-zero.webp#image"
        }
      },
      {
        "@type": "BreadcrumbList",
        "@id": "https://xaede.net/work/rampart-zero#breadcrumbs",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://xaede.net/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Work",
            "item": "https://xaede.net/work"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "Rampart Zero",
            "item": "https://xaede.net/work/rampart-zero"
          }
        ]
      },
      {
        "@type": "ImageObject",
        "@id": "https://xaede.net/media/visuals/cases--rampart-zero.webp#image",
        "url": "https://xaede.net/media/visuals/cases--rampart-zero.webp",
        "contentUrl": "https://xaede.net/media/visuals/cases--rampart-zero.webp",
        "width": 1600,
        "height": 900,
        "caption": "Frame from the edited development trailer. The selected frame has no added graphics."
      }
    ]
  }
}
