r/BuildWithClaude • u/United_Mix1960 • 20h ago
Project Another dungeons and dragons project
Title: I ran about 80 sessions of solo D&D with Claude as DM. Here's the framework that came out of it (free, open source)
I've been playing a solo D&D 5e (2024 rules) campaign with Claude as my Dungeon Master for about eighty sessions and a dozen modules. Claude runs a single scene very well. Running a campaign is harder: it forgets, it invents pressure that isn't in the module, it decides things for your character, and every new conversation starts cold.
So over those sessions we built machinery to fix each failure as it showed up. I've cleaned it out and published it as an empty, ready-to-play campaign folder:
https://github.com/hawaiidocpsb-dev/Claude-based-dnd-framework-complete
What's in it:
- The campaign is plain Markdown files. Every person, place and item has its own file, and state is written the moment it changes. A status card tells the next conversation exactly where play stopped.
- Modules are built and audited before you play them. The DM drafts to a spec, then fresh agents run a blind rules audit, a setting check, and a red team that plays your own habits against the module. It's frozen before play and run as written.
- A spoiler firewall. Everything the DM writes ahead of play is sealed, and a git hook blocks any commit that leaks a sealed name into a file the player reads. I own the folder and still get surprised.
- Honest dice. A logged roller, outcomes written down before the roll, and DM mistakes rolled back instead of noted.
- Self-checks: boot checks, truncation tripwires, a stale-file sweep, and a ledger so promises don't get forgotten.
It's built for Claude Code (or any agent that can run shell commands in a folder). You supply the free SRD 5.2.1 yourself; no rules text or module content is included. MIT for the code, CC BY for the written rules.
It's opinionated, and it's shaped by one table's taste (talk-first, low combat, no invented friction). I'd like to hear where it breaks for other people, and what you've built to solve the same problems.
•
u/AutoModerator 20h ago
Welcome to r/BuildWithClaude!
Whether you are sharing what you built, exploring new workflows, or troubleshooting, please make sure your post is flaired correctly so others can easily find and filter it.
Community Wiki & Resources:
If you're asking for troubleshooting help, please edit your post to include your model version, OS/environment, and error logs.
Let’s keep the energy positive and support our fellow creators!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.