agentusecasesAll 965 use cases
Games & Simulations

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.

Read the original ↗

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