Repository navigation
Local-first, self-hostable Discord bot that runs full D&D 5e games end-to-end. Three-brain architecture: oMLX (narration) + dm20 MCP (rules engine) + discord.py (orchestrator). The LLM never computes game math.
Highlights
- Async MCP client to dm20 at oMLX with WAL SQLite + 35-scenario adversarial sanitizer corpus
- discord.py 2.7.1 bot with DynamicItem persistent buttons + EmbedCoalescer + EDM001 defer-discipline lint
- /start_game + /load_adventure + D&D Beyond URL + OCR/PDF character ingest pipeline
- Combat with turn-gated buttons, dodge shim, MonsterTurnDriver, 8-actor load test
- Timed Riposte UI (Battle Master Fighter RAW) with restart-survival drill
- Multi-backend ingest LLM (D-27): oMLX / Ollama / OpenRouter
- bootstrap.py preflight + run.py entrypoint + launchd plist + systemd unit
- Comprehensive INSTALL.md with 8 Mermaid + 12 ASCII diagrams
Stats
- 5 phases · 16 plans · 889 tests collected · 7/7 import-linter contracts kept · 72/73 requirements satisfied
- Apache 2.0 (with explicit patent grant)
- Audit: passed — see v1.0-MILESTONE-AUDIT.md
Get started
See INSTALL.md for the step-by-step walkthrough.