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.




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.
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.

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.

Verify through code. Promote on purpose.
- 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.
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.
- 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.
What it's made of, and where it stands.
| Part | Details |
|---|---|
| Server | Elixir on the Erlang VM (OTP), Phoenix and Bandit, PostgreSQL, Docker. Real-time over WebSocket channels. |
| Game scripting | JavaScript in a sandboxed QuickJS runtime, with time and memory limits. |
| iOS client | Swift, SwiftUI and SpriteKit. Plays RPG Maker XP art directly. |
| Map editor | TypeScript, Vite and PixiJS, hosted in the admin site. |
| Agent interface | An MCP server, plus eight skills served to any connected model. |
| Status | Under active development. The site is at getquestclub.com; the game plays on a private staging server. |
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