signalDEV Community2026-10-04
The Goblin Warren: an AI Dungeon Master that never invents a rule
The Goblin Warren is a browser D&D 5e dungeon crawl with an AI Dungeon Master that never invents a rule: every ruling is looked up in Sanity and cited. It uses Sanity Context MCP endpoints for natural language rule prose and exact numbers via GROQ, with 87 rules, 33 conditions, 14 spells, and 15 monsters in both 2014 and 2024 editions. The DM runs on DeepSeek V4.1 Flash, answers in 1.3 to 2.2 seconds, and provides a full trace of its lookups.
- for who
- D&D players and developers building AI tools that must not hallucinate rules.
- why now
- DeepSeek V4.1 Flash and Sanity Context now enable cited, traceable AI rule lookups for builders.
- what changes
- Players get a trustworthy DM that cites sources; developers see a pattern for grounding AI answers in a knowledge base with traceable citations.
- to do
- Try the live demo and inspect the code on GitHub to see how Sanity Context, prefetching, and citation stripping keep the AI honest.
key points
- 87 rules, 33 conditions, 14 spells, 15 monsters in 2014 and 2024 editions
- KB search and GROQ fetch, citations shown in How the DM ruled panel
- DeepSeek V4.1 Flash answers in 1.3-2.2s, no unsourced citations
#ai dungeon master#sanity context#agent workflow#citation tracing
score
score 8 out of 10. 0-10: how dense the facts are, multiplied by how much you can do with them after reading. 8+ means the topic's evidence bar is met: benchmarks and availability for a new model, amount and investors for a funding round, revenue figures for a solo-money story. Below 5 an item does not enter the digest. A press release scores 3 or less, a reprint loses 2, anything older than 14 days loses 1, a headline that misleads loses 3.
read the source