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
131 featsResult$28,335 spent, 9,350 commits across 145 repos, with spend up 7.4x in April after parallel git worktrees. Only 0.7% of tool calls ran overnight.
ResultOpus 5.5 recorded the repo's demo video itself using the record feature, and the author uses the tool constantly for debugging.
ResultA nightly workflow found a meteor on 25 October 2026. The bundled night detector found 95% of planes and 90% of meteors on held-out nights.