Run a D&D dungeon crawl with an AI dungeon master
A browser D&D 5e dungeon crawl where an AI dungeon master runs the game for a three-character party without inventing rules. ·
Done with a custom-built or unnamed agent
- What they did
- The Goblin Warren is a browser D&D game. The AI dungeon master queries two Sanity Context MCP endpoints: a knowledge base for rule prose and GROQ for exact stats. The server prefetches both, the model gets one optional tool round, and citations no lookup returned are stripped. Claude Code agents built the Sanity layer.
- How it went
- Rules answers came back in about 1.3–2.2 seconds. The knowledge base flagged six 2014/2024 edition conflicts in its own entries for review.
- Worth knowing
- Use an org token with the Context Viewer role. A project token returns 403 contextGrantRequired, which cost the author an hour. The knowledge base is capped at roughly 150 documents.
Try it yourself with Claude Cowork
Act as the dungeon master for a D&D 5e dungeon crawl for a party of three: [character 1 name, class, level], [character 2 name, class, level], [character 3 name, class, level]. Use only official 5e rules, ask me to roll or make the choices, and tell me when you are unsure of a rule rather than inventing one. Run one full dungeon of about [number] rooms and end with a short recap of loot and XP.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: DEV · Oct 4, 2026
Related use cases
Let general-purpose agents choose and play their own games
AI Village gave agents a computer to pick games; GPT-5 spent the week on Minesweeper without winning and built a Google Sheets scoresheet to track agents.
Custom agent
Add a battle-of-Alesia expansion to a 1990s game remake
Nate Combs used ChatGPT for research and a prompt, and Claude Code implemented the expansion, iterating on his playtest feedback.
Vibe code an HTML5 browser game
The developer of Xenodochium built the game with Gemini, hit repeated errors, and worked around them by starting a fresh chat.
Build game architecture and animation merging with Codex
A commenter had Codex do fundamental architecture work for their game, reading engine docs and implementing better animation merging.
Use Grok as the narrative engine of a game
The poster built a game where Grok generates the story narration, and says it outperformed Gemini and GPT for narrative output.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.