
bardo
io.github.bardo-ttrpg/bardo
A tabletop RPG Game Master that plays fair: rules, dice, secrets and the world, in plain files.
Documentation
Bardo
Bardo turns any coding agent that can run commands (Claude Code, Codex, OpenCode, Gemini CLI, Cursor, Copilot and others) into a tabletop RPG Game Master.
Version 1.0 is released on npm as @bardo-ttrpg/cli.
The agent tells the story. Bardo is the referee and the memory: it rolls the dice fairly, keeps the rules you agreed, remembers what each character knows, hides what the GM keeps secret, runs the clock and lets you undo. Bardo calls no AI of its own, so it needs no API key and no account. Everything lives in plain files in a folder on your computer.
What Bardo does
Your agent tells the story. Bardo takes care of everything else:
Before the game: session zero
- Asks how you want to play before the first scene, one question at a time: the game and its rules, the setting and genre, which modules the game needs, the tone, your limits (lines that never appear, veils that stay off-screen), the party, character creation, difficulty and danger, whether you see the dice, the length and goal, the narration style and the opening scene.
- Lets the agent add questions of its own, and takes "you decide" as an answer.
- Waits to play until every question is answered and a main quest exists; building the world and creating characters (including rolling their stats) stay open meanwhile.
- Keeps your answers in the campaign and shows your limits at the top of every scene, every session.
Safety at the table
- Your limits are a list anyone can add to at any time: lines that never appear, veils that stay off-screen. Every scene and every brief starts with them.
- Anyone at the table can stop the game (
bardo pause, an X-card). Nothing moves on until the table is ready: you can rewind, skip past it or add a limit first, and nobody has to say why. bardo checkwarns the agent when something it wrote uses a word of one of your lines. It is a safety net, not a guarantee.
Several players (a module)
- When more than one person plays, Bardo knows who plays which character. Your names stay out of the story.
- The spotlight: Bardo counts what each player's characters did this session and tells the agent who has had the least, so the quiet player gets a turn too.
- Handouts: a note, a letter or a secret for one player alone. Only that player's characters learn what it says; the others see only that a handout was given.
Languages (a module)
- Each people in the world speaks its own language, with words built from its own sounds: a few hundred common words, the same every session. Ask for a phrase in it, for flavour.
- Bardo knows who speaks what. When someone speaks a language your characters do not know, you hear that they spoke, and in which tongue if you know of it, but not a word of what they said. Once a character learns the language, they follow it.
Characters that grow
- Character creation by your rulebook's rules: Bardo rolls the dice in the open or checks your point buy, and lets you place your rolls where the rules allow.
- Experience and levels by your rulebook's rules: Bardo adds experience, tells you when a character can advance, and applies exactly what the new level gives. The agent writes the rules in its own words; Bardo keeps no rulebook text.
Only what your game needs
- A small core every campaign has, and modules you switch on when the game needs them: a generated, living world (continents and seas, kingdoms with borders and rulers, faiths with their feasts, peoples who live somewhere and a dated history, in fantasy, plain or starfaring words), a calendar of the setting's own, a world that moves on its own day by day, fights with a turn order, the world's factions, the players at your table, the languages its peoples speak, items, money and markets, exploration (hidden ways, travel by road and weather, supplies and the map), an oracle for solo play, encounters on the road, downtime between adventures, and puzzles.
- Session zero lists each module with what it is good for; you can switch one on or off at any time (
bardo module on world), and switching one off keeps its files. - The agent's guide is short: the core it needs every turn, and a table of topics it reads with
bardo guide <topic>when the game reaches them, listing only the modules that are on. It keeps your own notes when Bardo writes it again. - Campaigns made before modules keep everything they had, and Bardo upgrades them by itself. A module added later starts off.
Gear, money and markets
- Backpacks, chests and pouches hold things. A closed one hides what is inside from everyone but whoever carries it.
- Characters wear or hold their gear, and a sheet shows what each carries and wears, and what it is worth as far as you know.
- A thing's history as you saw it: who held it and where it went (
bardo thing). - Items (a module): rarity, wear that breaks a sword when it runs out, and loot rolled from tables.
- Money (a module): the setting's own currencies and coins, a purse for each character, paying each other, and buying and selling at a market's prices, which follow the season and the news. Paying in a foreign currency changes it at the rate. The agent narrates the haggling; Bardo keeps the sums.
People, factions and clocks
- Each person can have a profile the agent plays them by: personality, motive, goal, fear and voice. It is the GM's alone; your own character's is yours to read.
- Bonds: how someone feels about someone, from hostile to devoted, with a short note. You see a bond change when you are there to see it, and learn the rest the way you learn anything else.
- Factions (a module): guilds, cults and houses, who belongs to which, spies included, what each thinks of the party, and what they are working toward. A spy looks like anyone else until you find them out.
- Progress clocks: a count of segments toward something, like a ritual or a rival's plan. A clock can count down with time ("the ritual completes in 6 days"), and a GM clock stays hidden.
Exploration (a module)
- Secret doors and hidden places: a way or a place the party has not found stays off every view, route and map until a character discovers it, usually by a check. Whoever is there learns it, and can tell the others.
- Travel that feels the road and the weather: a trail is slower than a road, a river faster, a ford or a ferry costs time, and rain or a storm slows them all.
bardo routeplans a journey before you set out, by the weather you can see. - Supplies: rations, water or whatever your rules count, spent for each day on the road, with a warning when they run low. What going hungry does is your rules' call.
- A map of what the party knows: the places it has been and heard of, the ways it has seen and how long they take, as text or as a picture you can open.
A story with a purpose
- One main quest at a time, the campaign's purpose, plus side quests, secret quests (hidden until a character learns of them) and personal quests (tied to one character).
- Each quest has a goal, stakes, who gave it, ordered steps, clues tied to it and, in the end, an outcome: done, failed or abandoned.
- Deadlines on the world clock: the threat happens on time whether or not the party arrives, and closing the quest cancels it.
- Every scene shows each open quest's next step;
bardo quest listanswers "what are we doing?" without spoilers. - Warns the agent when there is no main quest, a quest has no next step, a quest has stalled, or a deadline is close.
- Threads keep the story's open questions, promises and foreshadowing that are not quests, and the agent closes each one with what came of it. Threads only the GM knows stay hidden.
- Clues the party may find, each tied to what it is evidence of. The party sees a clue once a character finds it, and what it points to only once they know that.
- People pass on what they believe, true or not: when an NPC tells the party a rumour or a lie, everyone there hears it, and it reads just like the truth. A character can doubt what they were told. Only the GM's view says which beliefs are wrong.
Any game, your rules
- Plays any tabletop RPG by the rules you give it, in your own words, or by rules the agent drafts from your rulebook.
- Named checks with their dice and outcome bands (such as 10+ success, 7–9 a cost), ties and opposed rolls.
- A check is rolled only after you approve its exact rule, and again whenever the rule changes.
- A rule may also say what each outcome does: a hit takes 1d8 hit points from the target, a miss leaves you off balance for a round, each shot costs an arrow. Bardo rolls those dice and applies them in the same step as the check, so they are never forgotten or softened, a second roll is flagged, and undo takes the whole exchange back. You approve them with the rule.
- Situational modifiers (+2 for high ground) only within the range the rule allows, and always with the reason logged.
- Conditions that last a while, on the clock or for a few rounds of a fight, and end by themselves.
Fair dice
- Bardo rolls every die, never the agent, and logs each roll with who rolled, the reason and every face.
- Sums, keeps the highest or lowest, counts successes, explodes on the highest face, rolls Fudge dice and rerolls low faces once.
- Adds the roller's own stats and reports the outcome band; a rule may say a natural face (a 20 on the d20) always gives its top band, or its bottom one.
- GM rolls: dice the GM rolls in secret, which no player view shows.
- Flags re-rolls, so nobody quietly rolls again; undone rolls stay in the log, marked void.
Tables and the oracle
- Random tables kept in the campaign: encounters, rumours, loot, the weather. The agent writes them from your setting or rulebook in its own words, and Bardo checks that they cover their dice and rolls on them: by range, by weight, or on a d66.
- An entry can roll dice of its own and another table ("{1d4} wolves from {table:pack}"); every die is logged.
- A few starter tables of Bardo's own to copy and adapt: inspiration words, an NPC trait, a complication, a place detail.
- GM-only tables for what the party must not see yet.
- An oracle for solo play (a module), or when nobody at the table knows the answer: ask a yes-or-no question at the odds the story suggests, and get yes, no, or either with an "and" or a "but", now and then with a twist. Asking the same question again is flagged like a re-roll.
Encounters on the road (a module)
- Encounter tables that fit where and when the party is: the terrain, the kind of place, the region, the time of day, the season and the weather. Bardo picks the one that fits best and rolls it, every die logged.
- Each leg of a journey and every few hours of passing time is checked by chance, at odds the table, the region or the world pack sets. A check is the GM's alone: no player view tells a hit from a miss, and a hit makes nothing by itself, so the agent narrates it or lets it pass.
- Two small starter encounter tables of Bardo's own to copy and adapt.
Downtime between adventures (a module)
- A week of training, crafting or rest is one step: the clock runs, the activity's check is rolled each day or week, its cost is paid and its results applied, as the activity's rule says. Undo takes all of it back.
- Several characters can spend the same time together; an NPC's downtime is the GM's alone.
Puzzles (a module)
- Riddles, locks and ciphers with their solution kept from the players: hints given in order, every answer they try logged and checked (case, accents, punctuation and a leading "the" aside), and the reply says only whether it is solved.
- The GM can mark an answer right in spirit as solved, and a solved puzzle can complete a quest step.
Secrets that stay secret
- When something happens, Bardo works out once what each character perceived of it, and the player views are built from that, so what nobody in the party saw does not reach them; tests that play twin campaigns, differing only in what the party never saw, check every view and reply reads alike.
- GM-only notes on any character, place or thing stay out of the player's view.
- Secret facts are hidden wherever they appear, shown as
[hidden]. - NPCs keep their real names hidden behind a description ("a hooded pilgrim") until a character learns them.
- Each character knows only what they saw or were told: witnesses learn what happens where they are, a character can learn from another, and forget.
- Player views, a single character's view and the GM's full view; the player only ever sees what the party knows.
- Warns when a secret slips into normal text.
- GM-only events, GM-only clues and secret scheduled events: things that happen, or will happen, out of the party's sight.
- With the simulation module, what the world does from the GM's secrets (a faction's hidden resources, an NPC's hidden goal) may reach the party only in the world: a rumour heard where they stand or told them, an NPC met where it walked, a changed price at a market they visit. Never out of band: no id, roll number, count, refusal or true name gives it away (
docs/perception.md, "The world moving on its own"). - What it cannot hide: there is one clock, so the party notices time pass while an NPC travels out of sight, and may guess a hidden way from how long someone took to leave.
docs/perception.mdlists these limits. - The secrets are in the campaign's files and in the GM views, which the agent reads: a player who opens the folder sees them, and an agent that ignores its guide can give them away. Bardo keeps them out of every player view; the rest is up to the table.
A living world
- A world clock and an optional calendar of your own (months, weekdays, hours in a day).
- Places with exits and travel times; moving and travelling by the shortest route run the clock, with travel modes such as on foot or on horseback.
- Planned events that happen when their time comes, witnessed by whoever is there, once or again and again (every market day, until midsummer, three times).
- Long jumps in time: years pass in one step (
bardo time advance 400d, or--untila date), everything planned on the way happens in order, and one undo takes it all back. - Room for a region or a small kingdom: up to 10,000 characters, places and things, with an index so commands stay quick.
- A world that moves on its own (the simulation module): for each day that passes, Bardo runs a tick by its own rules and dice. Factions and kingdoms work toward their goals on the GM's clocks and set their rivals back, NPCs pursue their own goals on personal clocks and travel toward them, market stock and prices follow production, demand and what the party buys and sells, exchange rates drift, rumours travel the roads a place a day, and the notable things go into a chronicle (
rules/world/chronicle.md). - All of it is the GM's until the party is there or hears of it. The GM's reply to passing time ends with a short digest;
bardo world log --gmlists what the world did, day by day;bardo tick --days 30 --dry-run --gmpreviews the next days without writing anything;bardo overrule <id> --reason "…"takes one result back, logged. The same campaign and history always give the same world, and one undo takes back a whole jump. - With the world module: each day's weather, festivals, market prices and news from places the party has been.
- NPCs with daily routines (world module), so they are where they should be at any hour.
- A world pack of names, terrains, goods, weather, festivals, eras and calendar words, adapted to any genre; built-in packs to start from.
- An optional generated world (world module): regions, settlements, routes, sites and history by era, filling only what you haven't written, with continents and seas, kingdoms with borders and rulers, faiths and the peoples who live there.
- A kingdom's ruler or a faith's priest made when the story needs one (
bardo world npc), named by the people of their region. - A GM's full world report: every region, settlement, route and market, the history by era, a weather forecast and where every NPC is right now.
- Moves only along real exits; a jump the story needs takes a stated reason.
Characters and NPCs
- Player characters, NPCs, places and things, each in its own file; things can lie somewhere or be carried.
- Stats, counters (hit points, stress, ammo…) that report when they hit zero, and conditions.
- Facts that change during play (
bardo set wren mood=tired): whoever is there sees the change, and everyone else keeps believing what they last saw until they see it or are told. - Things that change hands (
bardo give), and stacks of them (shown as "3 × Torch") that can be split. - Names that fit the world: from the setting's own peoples, by place, standing and family, never repeating a name the campaign already uses.
Fights (the combat module)
- Turn order, rounds, joining and leaving, with the dice and counters above.
- Sides, so Bardo can tell you when only one is left standing (ending the fight stays your call).
- Rounds that move the clock, if your game says how long one lasts.
- A defeat rule of your choice (such as hit points at 0) that takes a combatant out of the fight the moment it is met.
- A tally at the end: the checks rolled and the damage each combatant dealt and took.
Memory you can trust
- A short brief for the agent at the start of every session: the player's limits first, then where everyone is, the fight, the last recap, the open quests and threads and what happened lately. The agent reads this brief instead of the whole campaign, so even a long campaign fits.
- Search across everything the party may see: people, places, history, knowledge, quests, threads, clues, tables and rules. A search the player can see looks only at what the party knows: the people and places it has met, and what it saw.
- Numbered play sessions, each ending with a recap the agent writes for the player. As a safety net, Bardo refuses a recap that holds a secret, a name the party has not learned or the GM's own words.
- A full history of what happened, newest last, as the party knows it or as the GM does.
- Undo the latest move: its files, the clock, the fight, the schedule and how long conditions last go back; its rolls stay in the log, marked void, so undo is never a free re-roll.
bardo checktells whether the campaign is sound, adopts your own hand edits and repairs a log line cut short by a crash.- Safe against crashes and two commands at once: every change is all or nothing.
Your files, your agent
- Teaches your agent how to run each turn: look at the scene, understand what you want, roll if the rules call for it, record what happened, narrate from the results and end on what the party faces.
- When the game has no rule for something, the agent asks you for one, or at least which dice to use; when nobody has decided how fights work, it asks before the first fight.
- Everything is plain text in a folder on your computer: read it, edit it, back it up, keep it in git, pick up next week.
- Writes the Game Master guide into every campaign (
AGENTS.md, the file most coding agents read, andCLAUDE.mdandGEMINI.mdpointing to it), and ships the same guide as an agent skill,bardo-gm. - Works with any coding agent that can run commands, by following each agent's documented conventions (
AGENTS.md,CLAUDE.md,GEMINI.md, agent skills). - Every command can answer in JSON for tools and scripts.
- Finds the campaign from any folder inside it, with clear errors that say how to fix the problem, built-in help and shell completion.
- Comes with an example campaign, The Salt Road, to read or copy: session zero done, a seeded world, a market and its currency, a faction with its clocks, an NPC with a profile, a first session in the log and three days of the world moving on its own. Bardo built it with its own commands (
tools/build-example.ts). - No account, no API key, no AI of its own, and Bardo itself sends nothing anywhere. Free and open source (MIT).
What you need
- Node.js 22 or newer, unless you install with the install script, which brings it when you have none
- A coding agent that can run commands in a folder, such as Claude Code, Codex, OpenCode, Gemini CLI, Cursor, Copilot and others
Install
npm i -g @bardo-ttrpg/cli
Or with the install script. With Node.js 22 or newer it runs npm (into ~/.local when it cannot write to npm's global folder, so it never needs sudo). Without it, it installs bardo as one program with Node.js inside, from the latest release, checked against the release's SHA256SUMS. On macOS and Linux:
curl -fsSL https://bardo.gg/install.sh | sh
On Windows, in PowerShell (the program goes into %LOCALAPPDATA%\Programs\bardo, added to your PATH):
irm https://bardo.gg/install.ps1 | iex
The programs are on each release too, to download by hand: bardo-linux-x64.tar.gz, bardo-linux-arm64.tar.gz, bardo-darwin-arm64.tar.gz, bardo-darwin-x64.tar.gz and bardo-win32-x64.zip. Each is about 50 MB, most of it Node.js.
With Homebrew, on macOS or Linux (it brings its own Node.js):
brew install bardo-ttrpg/tap/bardo
With pnpm, pnpm add -g @bardo-ttrpg/cli; with Bun, bun add -g @bardo-ttrpg/cli. To try it without installing:
npx @bardo-ttrpg/cli --help
The command is bardo.
Quick start
Make a campaign folder:
bardo init the-lost-bell --name "The Lost Bell"
cd the-lost-bell
This creates the folder with bardo.json, a short README.md, a guide for the agent (AGENTS.md, with CLAUDE.md and GEMINI.md pointing to it), story/session-zero.md, story/limits.md and empty folders for your characters, places and rules. bardo init refuses a folder that already holds files, so a campaign never lands in a code project or your home folder by accident; pass --here to make one in such a folder anyway. The commands below run from inside that folder; from anywhere else, add --campaign <folder> to a command.
A new campaign starts in session zero, and play waits until it is done. Your agent asks you the questions one at a time. The modules question takes the ids of the modules your game needs (bardo setup lists them, none keeps the core alone). To try Bardo on your own, choose no modules, leave every other question to the GM and give the story its main quest:
bardo setup answer modules none
for q in game setting tone limits party characters danger dice goal narration opening; do bardo setup answer $q --you-decide; done
bardo quest add "The lost bell" --kind main --goal "Find the chapel bell and ring it again." --step "Search the inn"
bardo setup done
Add a place, a character and someone for them to meet. Your agent can do this for you from a setting you describe, but this is what it runs:
bardo add place "The Lantern Inn" --text "A low, smoky room." --gm-text "The cellar hides the bell."
bardo add character "Wren" --at the-lantern-inn --fact wits=2 --counter hp=10
bardo add npc "Sister Ide" --shown-as "a hooded pilgrim" --at the-lantern-inn --secret carries="the stolen bell"
Play a scene:
bardo scene
bardo roll 2d6+WITS --who wren --reason "Wren looks for the bell"
bardo record "Wren searches the cellar and finds only dust."
scene shows what the party can see. roll makes one fair roll and logs it with its reason. record writes down what happened, and everyone present learns it.
Run these from inside the campaign folder, or add --campaign <folder> to any command.
To look at a campaign already in play, copy the example The Salt Road from the repository and run bardo scene, bardo market or bardo world --gm inside it.
Play with an agent
Start your agent in the campaign folder and ask it to run the game. Bardo follows the conventions agents document for instruction files: most agents read AGENTS.md, and Claude Code and Gemini CLI read CLAUDE.md and GEMINI.md, which import it. If yours reads another file, point it at AGENTS.md the way its documentation says. An agent that reads more than one of these files (Crush, GitHub Copilot CLI and Antigravity can) loads the same guide more than once; that costs a little context and changes nothing else.
AGENTS.md is the Game Master guide Bardo wrote into your campaign. It tells the agent to use bardo for every roll, move and fact, and never to reveal secrets. It holds the core of the guide; the agent reads the rest one topic at a time with bardo guide <topic> (bardo guide rolls, bardo guide combat), and bardo guide --all prints all of it. The agent needs permission to run bardo commands.
The guide also comes as an agent skill, bardo-gm, in skills/bardo-gm, in the repository and in the npm package. The skill is short: it holds the hard rules and has the agent run bardo guide for the rest. Install it with npx skills add bardo-ttrpg/bardo-cli --skill bardo-gm, or copy that folder into your agent's skills folder (for Claude Code, ~/.claude/skills/), if you want to start a game from a folder that has no campaign yet. The skill then offers to run bardo init for you.
Install the skill in your agent
The skill and the bardo command are separate: install bardo first (see Install), then the skill in the agent you use.
| Agent | Install the bardo-gm skill |
|---|---|
| Claude Code | /plugin install bardo --marketplace bardo-ttrpg/bardo-cli (Claude Code 2.1.275 or later; before that, /plugin marketplace add bardo-ttrpg/bardo-cli, then /plugin install bardo@bardo-ttrpg) |
| Codex | codex plugin marketplace add bardo-ttrpg/bardo-cli, then install Bardo from the plugin list |
| GitHub Copilot CLI | copilot plugin marketplace add bardo-ttrpg/bardo-cli, then copilot plugin install bardo@bardo-ttrpg |
| Gemini CLI | gemini extensions install https://github.com/bardo-ttrpg/bardo-cli |
| Antigravity CLI | agy plugin install https://github.com/bardo-ttrpg/bardo-cli |
| Any other agent that reads skills (Cursor, OpenCode, Amp, Goose, Cline, Windsurf, Kiro, Warp and more) | npx skills add bardo-ttrpg/bardo-cli --skill bardo-gm |
Play from a chat app, without a terminal
Bardo also runs as an MCP server, @bardo-ttrpg/mcp, for apps that take local MCP servers. In Claude Desktop it is one click: download bardo.mcpb and open it; Claude Desktop runs it with its own Node.js. Other apps (Cursor, VS Code, Windsurf, Goose, LM Studio and more) take it in their MCP settings: see packages/mcp. It is a separate package: the bardo command does not need it.
A campaign from someone else can configure your agent. Your agent, not Bardo, loads the agent files in the folder you start it in: instructions (AGENTS.md, CLAUDE.md, GEMINI.md), settings whose hooks run commands (.claude/settings.json), MCP servers (.mcp.json) and other agent settings (.codex/, .gemini/, opencode.json). Bardo writes its own AGENTS.md, CLAUDE.md and GEMINI.md, but a shared campaign can hold anything. Open a shared campaign only if it comes from someone you trust, or check those files first.
Session zero and quests
A new campaign starts with a session zero. bardo setup hands the agent the next of twelve questions (the game, setting, the modules, tone, limits, party, character creation, danger, dice, length and goal, narration, the opening scene), and the agent asks you one at a time and records your answers (bardo setup answer, or --you-decide to leave one to the GM). Until bardo setup done, Bardo refuses the commands that play (checks and other rolls, records, learning and telling, moves and travel, letting time pass and scheduling, fights, and changes to counters, facts and things); building the world stays open, and so does character creation: a plain roll of dice for a player character (bardo roll 3d6 --who wren --reason "Character creation: strength"), setting a player character's counter (=n), a condition or a fact (bardo set), and giving it its starting things (bardo give). Whether setup is done comes from Bardo's own event log, so deleting or editing the file does not finish it. Your answers stay in story/session-zero.md, and your limits (lines and veils) head every bardo scene. A campaign made before session zero counts as set up (see docs/adr/0002). The modules answer switches those modules on and the others off; bardo module lists them later, and bardo module on|off <id> changes them (see docs/adr/0004).
Quests give the story its purpose: one main quest at a time, plus side, secret and personal quests, each with a goal, stakes, steps, clues, an optional deadline on the world clock and, in the end, an outcome (bardo quest add, step, clue, deadline, close). bardo quest list answers "what are we doing?", bardo scene shows each open quest's next step, and a secret quest stays out of your view until a character learns of it (bardo learn … --quest <id>; see docs/adr/0003).
What stays secret
The player sees only what the party knows.
- GM-only text. Every character, NPC, place and thing has its own file. Everything in one of those files under a
## GM onlyheading stays out of the player's view. Use--gm-textwhen adding one, or write the heading by hand. - Secret facts.
--secret key=valuehides that fact, and the value is hidden wherever it appears, except very short or common values (such astrue,noor a single character). Bardo refuses a one-character value and warns about the others (SECRET_NOT_HIDEABLE), so put those under## GM onlyinstead. - Hidden names. An NPC added with
--shown-as "a hooded pilgrim"appears under that description until a character learns the real name (bardo learn wren "…" --name hooded-pilgrim). - Secrets the party learns. When an NPC confides a secret,
bardo learn wren "…" --secret hooded-pilgrim:carriestells Bardo that Wren knows it. From then on Wren's view and the party's view show that value instead of[hidden]. If another NPC keeps the same words secret, they stay hidden, and Bardo warnsSECRET_STILL_HIDDEN. - Per-character knowledge.
bardo scene --as wrenshows what Wren alone knows.
The plain commands (scene, history, world) are safe to show to the player. The GM views add --gm (for example bardo scene --gm) and show everything, so the agent keeps those to itself.
Names that fit the world
bardo name --gm suggests names for a new NPC or character, so the agent does not reuse the same few names in every game. They come from the peoples in the campaign's world pack (rules/world/pack.json): each people has its own sound and its own name forms by standing. --people, --at <place>, --status, --family and --parent shape the result. A place's people is its people fact.
$ bardo name --gm --people hill --status noble --count 3
GM VIEW (spoilers)
Names (hill, noble): Elder Borur of Clan Korum · Thane Dunur of Clan Drora · Thane Dura of Clan Dubaka.
It never offers a name, or a given name, that the campaign already uses. Its output is for the GM, since it suggests names for NPCs whose real name is hidden. The built-in packs (bardo world pack use default, neutral or starfaring) come with peoples. Adapt them to your campaign's genre like the rest of the pack. Names follow a people's culture, family and standing, never appearance (see docs/adr/0001).
Files are the truth
A campaign is a folder of Markdown files you can open and read:
bardo.json: the campaign format, the modules that are on, the name, party and house style.AGENTS.md,CLAUDE.mdandGEMINI.md: the guide for your agent, written by Bardo for the modules that are on. Write your own notes for the agent under## Your notesat the end ofAGENTS.md; Bardo keeps them.characters/,npcs/,places/,things/,factions/: one Markdown file for each character, NPC (a character the GM plays), place, thing and faction.rules/: the rules of play, in your own words;rules/world/holds the world pack, the calendar and the generated world.tables/: the campaign's random tables, one Markdown file each.knowledge/: what each character knows.sessions/: one log per day of play.handouts/: each player's handouts (players module).story/: the session zero answers (session-zero.md), the limits (limits.md), the players at the table (players.md), the quests (quests.md), and one file for each thread (threads/), clue (clues/) and play session with its recap (sessions/)..bardo/: Bardo's own history, dice log and undo images. Do not edit it.
Put the folder in git or a backup tool and it is your save game. After you edit a file by hand, run bardo check. It lists problems, and bardo check --accept adopts your edit.
Undo
bardo undo
This undoes the latest event: its files, the clock, the fight and the schedule. Its dice rolls stay in the log, marked void, so no one can quietly re-roll a bad result. bardo history shows what happened.
Contributing and security
See CONTRIBUTING.md to work on Bardo, and SECURITY.md to report a vulnerability. Changes are listed in CHANGELOG.md.
Licence
MIT
@bardo-ttrpg/mcpnpm install @bardo-ttrpg/mcp