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.
Source: DEV · Oct 4, 2026
Five of these in your inbox every morning
The best things people got an AI agent to do, each with the prompt to try it.
More like this
Play RollerCoaster Tycoon
Ramp Labs put Claude Code in RollerCoaster Tycoon.
Play online math games in agent mode
The author had GPT-5 in ChatGPT agent mode play online versions of Math Games with Bad Drawings, and it mostly worked, unlike earlier rental car and tax form attempts.
Play Doom with computer-use agents as an informal benchmark
The OpenClaw team used computer-use agents to play Doom on remote machines, treating game performance as an informal way to improve the computer-use workflow.
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.
Play a button-clicking game via a browser agent
A developer wired Gemini's Computer Use model to Playwright in Java and had it play a simple button-clicking game to verify click-coordinate scaling.
Build a 3D browser game in 24 hours
A developer used Replit's agent to build a 3D browser game entirely in the browser with no local setup.