Case study · Personal project · 2026

An online RPG platform, built with a team of AI agents.

Quest Club is a multiplayer role-playing game platform in the style of RPG Maker, where anyone can build a game and other people can play it together. I designed the system architecture and I'm building it almost entirely with Claude Code, and the project is as much an experiment in how to run AI-driven development as it is a game: specialized skills, parallel agents, a test-first sandbox, and a staging server I can play on from my phone.

500 commitsin the first week of the rebuild
~58k linesof Elixir on the server
~970 testsacross 83 test files
8 skillsthat teach agents how to make game content
Quest Club iOS app showing The Golden Banana title screen
A game's title screen
Gameplay in the Banana Grove map with a dialog box, an NPC and a campfire
Playing in the iOS client
Game picker listing several games with one account
One account, many games
Quest Club login screen
Login
Where it came from

An idea from the 2000s, redesigned from the ground up.

The original work on this game began in the 2000s. This rebuild keeps the idea and replaces everything underneath it. I designed the new architecture myself: one deployable Elixir application on the Erlang VM in place of separate services and a message broker, a process for every running map, JavaScript scripting in a sandbox, and the MCP interface that lets agents build alongside people. The AI agents write much of the code, but the decisions about how the pieces fit, and where the boundaries and safety rules go, are mine.

How it's built

AI does the building. The system around it keeps the work correct.

Letting an agent write code is the easy part. The work is in the structure that makes its output trustworthy and repeatable: written rules it reads every session, skills that carry hard-won know-how, tests it can run without me, and an environment where a mistake costs nothing.

Agent instructions as a living spec

The repository carries an AGENTS.md that every session reads first. It holds decisions, not just style: how every feature is checked against three reference models (RPG Maker for how a game works, Roblox for how a platform works, World of Warcraft for how players play together), and the rule that anything a game maker can do must exist in both the editor and the API in the same change.

Parallel agents in isolated worktrees

Several Claude Code sessions work at once, each in its own git worktree on its own feature, such as movement, route commands or per-event state. Each test run gets its own database partition, so parallel agents can't lock each other's rows and fake a flaky failure.

Skills that carry know-how

Eight skills in the repo teach an agent to do a job the way the session that first worked it out did: pixel art, tilesets, maps, story and dialogue, sound, multiplayer story design, and a game-builder skill that orchestrates the others to ship a whole game. A cheaper model can then follow the same procedure.

The skills are served to other agents too

The same files are exposed over MCP, so any connected model can list and load a skill before building. The documentation pages are compiled from those files, so the docs and the agents never disagree.

The Skills documentation page listing game-builder, map-maker and other skills
The skills page, generated from the same files the agents read
The game is an API for agents

Every tool a human game maker has, an agent has too.

The engine runs an MCP server with around a hundred tools: create maps, paint tiles, write events and scripts, edit the item, enemy and quest database, upload art and audio, publish a game. The rule is that nothing ships in the editor without the same capability over MCP, and both go through the same validation. So an agent can author live content the way a person does, and players in a running map see the change right away.

  • Agents act as an account. A token inherits exactly what its owner may edit, and every tool checks access through the game that the target belongs to.
  • Agents can look. Tools render a map and report which cells are walkable, so an agent can check its own layout instead of guessing.
  • Agents can test in a copy. A playtest set runs scripts and simulates battles against the agent's own draft character, inside a rolled-back transaction, with stand-ins for anything that would reach real players.
The web map editor open on the Vine Woods map with tileset, layers and tools
The web map editor. Anything it does, an agent can do through MCP.
Sandbox, then staging

Verify through code. Promote on purpose.

Agentsparallel worktrees Sandboxchannel tests, dry runs DevMac, simulator for visuals Stagingonly when I push Staging changes only on request, so progress on the phone isn't overwritten by accident. It runs in Docker with its own database, reached over a private Tailscale network. Nothing is open to the internet.
  • Tests are the main check. A server feature counts as verified when a test plays it through real sockets: join the map, interact, answer dialogs, fight, and assert on what was pushed and saved. The slow simulator is for what a person has to see.
  • Draft games stay private. A game is unpublished until its owner says otherwise, and the server refuses everyone else, even with an old token.
  • Staging is a deliberate copy. One command pushes the pushed code, a dump of the dev database and the art to a LAN server, so I can play real builds on my phone before anything is public.
The multiplayer architecture

Every running map is its own process.

The server is Elixir on Phoenix, and it leans on the runtime's strengths. Each running copy of a map is one lightweight process that owns that map's live state: its blocked tiles, who is in it, where they stand, and its events. All changes go through that process, so they apply one at a time, and every client sees them in the same order.

CLIENTS EDGE · ELIXIR + PHOENIX ON BANDIT ERLANG VM (BEAM / OTP) · ONE RELEASE · EVERYTHING BELOW IS A SUPERVISED PROCESS DATA AND CONTRACTS iOS clientSwift · SwiftUI · SpriteKit Map editorTypeScript · Vite · PixiJS AI agentsClaude Code · any MCP client Phoenix ChannelsWebSocket · map and player topics LiveView admin + JSON APIeditor host · game list · uploads MCP server~100 tools · token acts as an account Map processesone per running map copyordered changes, server-sidewalking, per-player events Battle processesturn engine for a whole partyformulas, states, EXP andlevel-ups Script processes (JavaScript)QuickJS sandbox per player2 s compute · 16 MB · dialogsblock without using the budget Registry + PubSubfind a map, player or battleby key; broadcast each changeto everyone on the topic OTP supervision tree Solomon.Supervisor → MapSupervisor · Battles.Supervisor · Scripting.TaskSupervisor · watchers. A crash restarts one process, not the world. PostgreSQL via Ectoplayers, maps, Database, quests Art and audio storageRPG Maker XP layout · core + uploads Protocol schemasJSON Schema → Swift + TS types
  • Server-authoritative movement. A client only asks where to go. The server finds a path around walls and walks the player one tile per step interval, so tapping fast or a modified client can't move anyone faster.
  • One world, many views. Everyone shares the map and its characters, but each player sees events as their own state makes them: the event page that matches their switches and items. Quest progress and script changes are per player.
  • Scripts can't stall the world. Event scripts run in their own processes, so a long cutscene for one player never holds up movement for the others.
  • Shared or solo, by setting. A game sets a maximum number of players per map. Unset, everyone shares one copy and sees each other. Set to one, each player gets a private copy of every map, which is how single-player games run on the same engine.
  • Idle maps shut down. A map with nobody in it stops itself, and its blocked-tile data is held in memory so a move never touches the database.
  • Many games, one platform. One account plays any game, and each game keeps its own character, position, inventory and quests for that account, the way Roblox separates experiences.

Groups of real players (shared instances, split rewards, co-op battles) are designed against World of Warcraft's party model but are not built yet. Battles already run a whole party through one engine, which is where that work will plug in.

Stack and status

What it's made of, and where it stands.

PartDetails
ServerElixir on the Erlang VM (OTP), Phoenix and Bandit, PostgreSQL, Docker. Real-time over WebSocket channels.
Game scriptingJavaScript in a sandboxed QuickJS runtime, with time and memory limits.
iOS clientSwift, SwiftUI and SpriteKit. Plays RPG Maker XP art directly.
Map editorTypeScript, Vite and PixiJS, hosted in the admin site.
Agent interfaceAn MCP server, plus eight skills served to any connected model.
StatusUnder active development. The site is at getquestclub.com; the game plays on a private staging server.
What it shows for client work

Agents can do real production work when the system around them is built for it.

  • Agents get the same tools people have. Every action in the editor is also an MCP tool with the same validation and permissions. In a client project that means agents work through your systems the way your staff do, not around them.
  • Written know-how makes agents repeatable. Skills and an agent instructions file turn one good session into a procedure any agent can follow. The same approach captures how your team does a task today.
  • Nothing reaches production by accident. Tests, a sandbox and a staging step that only moves when a person says so. Client workflows get the same gates: drafts first, a person approves what matters.

Have a workflow agents could take over?

Tell me what you're working on. I'll reply within one business day.

miguel@deeporbitlabs.com