Rule-citing AI dungeon master game
Custom agent: The author built a browser D&D 5e dungeon crawl whose AI Dungeon Master answers rules questions by looking up and citing rules stored in Sanity.
A live game with 87 rules, 33 conditions, 14 spells and 15 monsters in two editions, answering rules questions in about 1.3 to 2.2 seconds.
Overview
How it was set up
Sanity dataset seeded with SRD data, two Context MCP endpoints (knowledge base and GROQ), DeepSeek on Baseten via AI SDK. Server prefetches lookups before the model runs.
Worth knowing
The MCP endpoints need an org token with the Context Viewer role. A project token returns a 403 error, which cost the author an hour.
A prompt to start from
The source does not show the prompt.
Sources 1
History
- Source published
- 2026-10-04
- Added to Agentic Feats
- 2026-10-13
- Pick
- No
- Markdown copy
- /c/rule-citing-ai-dungeon-master-game-custom-agent.md
More in coding
68 featsResultA live blog aggregator pulling posts from Dev.to, AWS Community Builders, Bravo LT and RedMonk, built and deployed in a single day.
ResultA live MVP website for the podcast and newsletter went up after about 10 hours of struggling to load it on a custom URL.
ResultWithin one night Devin produced a working unanswered-emails interface using the Gmail API, after the author wrote the authentication code themselves.