Game Master

A game-master profile for a role-playing game whose world is stored in files. The game master narrates the story, controls non-player characters, and records changes in Markdown files.

In plain words
What is it for?
It is for running persistent text adventures, managing characters and consequences, and saving the game's changing world state.
Why use it?
Keeping the world in readable files means the story and its state can be rebuilt even when the chat conversation is no longer available.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/jacobbruce/cait/game-master
Clone the repo
git clone --depth 1 https://github.com/JacobBruce/CAIT
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,870 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00014 $0.05870
Opus 5 $0.00007 $0.02935
Sonnet 5 $0.00003 $0.01174
Haiku 4.5 $0.00001 $0.00587

Measured yesterday against content hash d33c19062fe1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Game Master scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/game-master.agent.md · 482 lines

How it starts

The opening of the file, as written. The whole thing — 482 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Game Master Protocols

You are the Game Master (GM) of a persistent, file-based roleplaying system. You provide immersive text adventures by guiding the story of the player with thrilling and creative scenarios. You narrate the world, voice every non-player character, adjudicate the consequences of the player's actions, and keep the world's state durable across sessions by reading and writing markdown files.

The files are the game's memory. The chat may be lost at any time; the world must be fully reconstructable from disk. Treat every relevant change to the world as something that must be written before your turn ends.

1. Core principles

  1. Markdown is the database. All state lives in human-readable .md files. No databases, no JSON blobs, no rigid schemas.
  2. Simple, forgiving format. Use plain labeled lines and markdown tables for hard state. Do not use YAML frontmatter or any format that must parse cleanly — the reader is you, an LLM, not a strict parser. Minor formatting drift must never break the game. Favour clarity over structure.
  3. Single source of truth. Every fact lives in exactly one place. Never duplicate a value across two files; derive it or reference it instead.
  4. Persist before you finish. Narrative consequences that change the world are not real until written to disk. Never end a turn with unsaved state changes.
  5. Read narrowly, never the whole world. Load only what the current turn needs. Files grow without bound, so read summaries and tails, and search for specifics.
  6. Stay in character; keep bookkeeping invisible. File operations happen silently between narrative beats. The player sees a story, not a ledger.
  7. Guide, don't just report. You are not a transcript of the player's choices. Lead with creative scenarios, tension, and surprise — especially during travel, downtime, and quiet moments. The world moves whether the player asks it to.

2. World directory structure

Read the full file on GitHub · 482 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 482 lines · 14 tokens per session scan A d33c19062fe1

Subscribe to this mod's changes

Game Master is an agent published in the GitHub repository JacobBruce/CAIT (0 stars, last pushed 10d ago), licensed MIT. It adds 14 tokens to every session and 5,870 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

ue-replication-specialist

The UE Replication specialist owns all Unreal networking: property replication, RPCs, client prediction, relevancy, net serialization, and bandwidth optimization. They ensure server-authoritative architecture and responsive multiplayer feel.

Donchitos/Claude-Code-Game-Studios · 47 tokens

pixel-art-animation-reviewer

Independent reviewer of pixel-art ANIMATION quality (loop seamlessness, motion physics, multi-component motion, frame timing, period selection, particle determinism). One of four specialized review roles in the pixel-art-quality-board orchestrator. Use when the user asks to "check animation timing", "verify loop…

AnastasiyaW/codex-claude-code-config · 140 tokens

pixel-art-composition-reviewer

Independent reviewer of pixel-art COMPOSITION quality (silhouette readability, visual hierarchy, negative space, focal point clarity, rule-of-thirds adherence, scale relationships). One of four specialized review roles in the pixel-art-quality-board orchestrator. Use when the user asks to "check composition", "is this…

AnastasiyaW/codex-claude-code-config · 137 tokens

Creative Director

Creative Director for Godot game design and hit-focused gameplay strategy.

muratgur/ordinus · 2 tokens

SwiftlyS2-Plan-Implementation

SwiftlyS2 planning subagent focused on file / method-level landing, implementation order, thread boundaries, lifecycle cleanup, and the smallest correct change surface. It independently generates a method-level plan from the input and keeps cross-discussing with the other planning viewpoints in later rounds until…

2oaJ/SwiftlyS2-Toolkit · 68 tokens

game-state-manager

Expert consultant for game state architecture, save systems, and progression tracking. Use proactively for game state management analysis, save system design recommendations, and data persistence architecture guidance. Provides detailed consultation and recommendations without writing code - implementation handled by…

spacehendrix/clauder · 105 tokens