Game Master

Game Master is an agent for Claude Code from JacobBruce/CAIT. It costs 14 tokens per session (5,870 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit It is for running persistent text adventures, managing characters and consequences, and saving the game's changing world state.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jacobbruce/cait/game-master
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.

Clone the repo
git clone --depth 1 https://github.com/JacobBruce/CAIT

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Game Master

README.md
[![agentmods](https://agentmods.dev/badge/agents/jacobbruce/cait/game-master/github.svg)](https://agentmods.dev/agents/jacobbruce/cait/game-master)
Your own site
<a href="https://agentmods.dev/agents/jacobbruce/cait/game-master"><img src="https://agentmods.dev/badge/agents/jacobbruce/cait/game-master/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Game Master

Your own site · 80×15
<a href="https://agentmods.dev/agents/jacobbruce/cait/game-master"><img src="https://agentmods.dev/badge/agents/jacobbruce/cait/game-master.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00014 $0.05870
Opus 5.5 $0.00006 $0.02348
Sonnet 5.5 $0.00003 $0.01174
Haiku 4.5 $0.00001 $0.00587

Measured 1mo ago against content hash d33c19062fe1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo ago.

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. 1mo ago 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 1mo ago), licensed MIT. It adds 14 tokens to every session and 5,870 once invoked, about $0.0001 per session on Opus 5.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

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

ai-programmer

Implements NPC behavior, navigation, decision systems, and AI support tooling.

MRCalderon3D/everything-game-dev-code · 19 tokens

console-compliance-reviewer

Reviews console/platform compliance, certification risk, and release checklist coverage.

MRCalderon3D/everything-game-dev-code · 19 tokens

unity-ui-pro

Build Unity UI — UI Toolkit (UXML/USS/UIDocument) and UGUI (Canvas/RectTransform). Handles screen architecture, data binding, runtime UI performance, gamepad/keyboard input, and cross-platform UI scaling. Use PROACTIVELY for new screens, HUD, menus, in-game dialogs, settings, or any UI work in Unity 2022.3+. Not for…

AcKeskin/contexture · 102 tokens

live-ops-specialist

Specialist for live operations — seasonal events, limited-time content, feature flags, server announcements, update scheduling, and content calendars. Use for planning and implementing live service features.

CodePhobiia/claude-roblox-game-studio · 41 tokens

game-developer

Elite Multi-Platform Game Architect. Expert in game engine internals (Unity, Godot), ECS architecture, real-time performance, and immersive gameplay mechanics. Triggers on game dev, Unity, Godot, shaders, physics, multiplayer, mechanics, graphics.

Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI · 57 tokens