npx claudepluginhub rjroy/adventure-engine-corvranThe Adventure Engine of Corvran - An RPG game master system that enables Claude Code to run tabletop-style adventures with persistent world state, character management, and narrative gameplay.
Daggerheart RPG mechanics for Adventure Engine adventures. Provides character creation with constrained Experiences, Hope/Fear token economy, spotlight-based combat, domain cards, adversary management, and SRD rule lookups. Uses Duality Dice (2d12) for narrative tension between player success and GM opportunity.
SRD 5.2-compatible d20 RPG mechanics for Adventure Engine adventures. Provides character creation, combat, spellcasting, and monster skills with templates and the complete System Reference Document for rule lookups.
A space for collaborative storytelling. A human and an AI sit down together and make up a story, the way kids do.
TTRPGs are shared narrative. At their core, it's kids playing make-believe but with rules. The AI is one of the kids who also happens to maintain the rules. The rules create stakes, not authority. The story belongs to everyone at the table.
The ambition is not an AI that runs a simulation. It's an AI that plays with you.
ANTHROPIC_API_KEY environment variable)git clone --recurse-submodules https://github.com/rjroy/adventure-engine-corvran.git
cd adventure-engine-corvran
bun install
If you already cloned without --recurse-submodules:
git submodule update --init --recursive
bun run dev # starts daemon + Next.js dev server
bun run build # typecheck + build web
bun run start # starts daemon + built web app
The application is a monorepo with three packages:
| Package | Path | Purpose |
|---|---|---|
@corvran/shared | packages/shared/ | Zod schemas and types for API contracts |
@corvran/backend | packages/backend/ | Hono daemon on Unix socket |
@corvran/web | packages/web/ | Next.js App Router client |
The backend is the application. The web client is just that, a client. All AI interaction uses the Claude Agent SDK. Game state lives in markdown files, readable by humans and AI alike.
RPG systems are content, not architecture. Each plugin teaches the AI how to run a game system through reference material and instructions, not application code.
| Plugin | Description |
|---|---|
plugins/corvran | The world of Corvran (setting) |
plugins/d20-system | d20/5e system rules |
plugins/daggerheart-system | Daggerheart system rules |
The daemon stores runtime data in ~/.corvran/ (override with CORVRAN_HOME). Adventures, socket files, and session state live here, not in the repo.
This project includes third-party SRD (System Reference Document) content as git submodules for AI reference during gameplay:
| Submodule | Source | Content |
|---|---|---|
docs/research/daggerheart-srd | seansbox/daggerheart-srd | Daggerheart SRD |
docs/research/dndsrd5.2_markdown | springbov/dndsrd5.2_markdown | D&D 5.2e SRD in Markdown |
These submodules contain reference material used by the AI during gameplay. They are not included in the application build.
This project is licensed under the MIT License. See LICENSE for details.
Uses Daggerheart compatible rules