agentic-gm
A gamemaster you can play with on any evening, built from a crew of specialist AI agents instead of one chatbot doing everything. It runs in OpenCode. This manual explains who sits behind the screen, what each of them is allowed to do, and how to add your own games and agents.
Why not just one AI?
One model asked to be narrator, rules lawyer, dice, NPCs and bookkeeper at once tends to fail in the same few ways. Each of the eight seats exists to stop one of them, in the same order as the dossiers below.
The crew, one dossier each
Eight roles, each with a narrow job and a written list of things it must never do. Pick a role to open its file.
Who wakes up, and when
Responsibilities are permanent; calls are proportional. A quick word with a bartender should not summon eight agents. Pick a moment and see the typical crew.
Anatomy of a reply
All that work ends in one message from one voice. Here is what a typical reply looks like, and why each part is there. Tap a marker.
Rain has made the wall slick. Two floors up, a window glows; behind it, someone is arguing on the phone.
You could climb now while the argument covers the noise, wait for it to end, or circle round to the service door: locked, but nobody seems to watch it.
[Climb: Strength 3 + Athletics 4 = 7 dice. Each 5 or 6 is a hit; more than half showing 1 is a glitch. — official rule]
[Before any roll: do you want to spend a resource on it? Your call.]
What do you do?
The table contract
The full set of manners every seat obeys, in plain words. The highlighted ones are the ones players notice first.
What stays on your disk
Every session lives in a folder of plain-text files. Not all files are equal: some are the truth, some are derived from it, one is a novel. Pick a file.
The entry is marked
PENDING WRITE, the saved position does not advance, and you are told plainly.You get a copyable checkpoint marked
NOT PERSISTED. Nobody claims it was saved.The resume reads the log first. The novel can never invent a choice you didn't make.
Your character, across runs
A run ends; your character goes on. Between runs it lives in a record of its own, and that record changes only when a run ends, through a debrief you approve.
The sheet as you created it. Read-only, forever.
<character>/ sheet.md · inventory.md · status.md · progression.mdThe current character, plus an append-only log of every permanent change (P-0001, P-0002…).
characters/player.mdEverything that changes during play stays here and in the run's log.
WHAT HAPPENED
Slipped past the night watch, opened the archive, delivered the ledger. E-0042 → E-0058
WHAT TO KEEP
STAYS IN THE RUN
bruised ribs (healed) · temporary heat · the patrol clock
Skill: /00-rpg-progression init · import · debrief · apply · status
The dice never lie
An AI can “roll” by simply writing a number. This table forbids it. Randomness comes from somewhere real, or the roll doesn't happen.
And always: choices the rules give to you before a roll (spending a resource, pushing harder) are asked first. Nobody spends your resources for you.
What the dice tool hands back, copied untouched into mechanics.md. Example values.
{
"receipt": "roll-3f9c0a17d2e4b851",1
"notation": "7d6",
"purpose": "Agility + Locksmith",2
"faces": [6, 2, 5, 1, 4, 5, 3],3
"total": 26,
"ones": 1,
"hits_5_6": 3,4
"provider": "host-csprng"5
}
Adding your own game
Everything game-related lives in skills: folders of Markdown pages the agents read. The table is one numbered family of skills. Each game is another family stacked on top of it, bringing the real rules and the game's own specifics. Shadowrun and Cypher show the pattern; your game takes the next number.
System-agnostic. Never holds a game's numbers.
sessionstart, checkpoint, resume, endscenefiction-first scenes, the mannersresolutionwhen to roll, the dice boundaryjournalevent log, receipts, chroniclecharacterimported sheets, never overwrittennpcmotives, knowledge limitsworldplaces, factions, clocksadventuresituations, not outcomesconsistencythe auditresumerebuild from the log
01-shadowrun-rulesThe 2019 core rulebook embedded as text, twice (flat, and with columns preserved), critical tables verified by hand with an audit of what was checked, plus quick guides: core mechanics, combat, Matrix, magic, rigging, equipment, characters.
01-shadowrun-loreA Sixth World primer. Every statement is classed: published canon, campaign fact, GM-private, rumor, NPC false belief, unknown.
01-shadowrun-runJobs: credible Johnsons, contacts, legwork, security, Heat, two or three ways in, a complication clock, anchored to your runner's sheet.
02-cyphersystem-rulesThe full 2025 SRD (36 Markdown files) with a checksum manifest and its license, plus quick aids: rules engine, combat and recovery, XP and intrusions, cyphers and gear, GM guide.
02-cyphersystem-catalogHow to look up named types, foci, abilities and creatures: open the whole original entry, never just its heading.
02-cyphersystem-characterPools, Edge, Effort, XP, cyphers; PC and NPC sheet templates.
02-cyphersystem-adventureGenre clocks, open outcomes, GM intrusions offered with correct XP, solo included.
03-yourgame-rulesAlways. The real rules, embedded.
Then only the skills your game actually has: setting lore, a catalog for long option lists, character tracking, an adventure style.
Same skeleton, different organs: Shadowrun needed a lore skill and a job skill; Cypher needed a catalog and a character skill. Build what your game has, not a checklist.
01-shadowrun-rules/ SKILL.md when to use it, procedure, limits references/ core-mechanics.md quick guide: pools, hits, Edge combat.md matrix.md magic.md … offline-source-index.md map of the book core-2019/ the book as text, 8 pages a file core-2019-layout/ same pages, columns kept table-corrections.md tables verified by hand table-audit.md what was checked, what wasn't 02-cyphersystem-character/ SKILL.md assets/ cypher-character-sheet.md templates cypher-npc-sheet.md
00-rpg-resolution loads exactly one local ruleset: 01-shadowrun-rules or 02-cyphersystem-rules. Add yours to that list.
00-rpg-session asks which game: shadowrun-6e or cypher-system. Add your game's id.
system.md lists the skill families and says a session selects one selected rules family. Add your family to the table and to that sentence.
The two families sit on opposite sides of the line. The Shadowrun rules skill embeds the owner's own copy of a commercial book, marked private and not for redistribution. The Cypher rules skill embeds the open SRD under the Cypher System Open License, with the license kept beside it. Know which one you're building before you share it.
Build your own crew
Every seat is one OpenCode agent file in agents/: a frontmatter block for its permissions, then a page of plain text for its role. Copy this one, rename it, sharpen it.
2 · Allow it in agents/gm-voice.md: add map-keeper: allow under subagent:.
3 · Add it to system.md: the crew list, the routing table, and the table-ownership table.
Set up the table
agentic-gm is built for OpenCode: it relies on OpenCode's per-agent permissions, a primary agent, one level of sub-agents and an in-process plugin for the dice.
git clone <agentic-gm> ~/.agentic-gm ln -s ~/.agentic-gm/system.md ~/.config/opencode/AGENTS.md ln -s ~/.agentic-gm/agents ~/.config/opencode/agents ln -s ~/.agentic-gm/skills ~/.config/opencode/skills ln -s ~/.agentic-gm/plugins ~/.config/opencode/plugins
"default_agent": "gm-voice",
"experimental": { "subagent_depth": 1 }
Questions players ask
Do I need to code?
No, not to play or to shape the crew. Roles are one Markdown page each, and games are families of Markdown skills. You need OpenCode and a model; the only executable piece is the small dice plugin, and you can always roll your own dice instead.
Is it only for solo play?
It is built for one player first: no forced party, no filler companions, your character stays the competent lead. The table rules don't assume solo, though, and group runs fit the same contract.
Will it railroad me?
Adventures are prepared as situations, not scripts: pressures, clocks and several ways in. Declining a job, retreating, negotiating or failing are legitimate outcomes. The GM owns consequences, never your choices.
Can I trust a rule it quotes?
Every ruling is labeled: official rule, interpretation, or table ruling, with the source when there is one. Ask for the page and you get it. If two notes disagree, the original text wins.
What happens when it gets something wrong?
The log is append-only, so a mistake is fixed with a new correction entry that cites the old one. Dice are never re-rolled to fix bookkeeping. The story may glitch; the ledger may not.
Can I keep playing my existing character?
Yes, run after run. Your original sheet is never edited; your character lives in a progression record that each run imports, and that changes only at the end of a run, through a debrief you approve. Rewards earned in a session are offered, not silently written into your campaign.
Does anything I say in character trigger real actions?
No. Fiction never authorizes real effects: an in-character “hack the server” stays inside the story. Real operations are separate requests, handled outside the game.