Arsaga — a solo Ars Magica saga kit
Arsaga is a kit for running a persistent, solo Ars Magica 5th Edition saga with an LLM as the Storyguide. You play the troupe - a magus, companions, grogs - and the agent runs the world, the NPCs, and the rules.
The kit ships everything you need to set up a custom saga, and the full open rules, sourced from OriginalMadman's markdown on GitHub.
The ledger, a CLI subset of the rules, is a modernized old project to replace spreadheets in Ars Magica, tests and verification done using LLM; no guarantees, but I think it works and is Defentitive Edition compatible. It could be used in isolation, but would need a better user experience that I've not built; feel free to do so!
What you need
An agent CLI that reads AGENTS.md at the start of every
session - Mistral Vibe, Claude Code, or a similar tool. You do not
need to code: you play in natural language, and the agent handles the
bookkeeping. The kit's instructions, state ledger, and play protocol
are plain files in the repository, so any agent that follows them
works.
Quick start
- Clone or download the repository.
- Start a session of your agent CLI in that directory and ask it to set up a new saga - it walks you through the premise, the play contract, the ledger, the characters, and the world.
- Play: switch characters, call for seasons of downtime, and end the session when you are done.
Tips for usage / Field notes
Harvested from four play-test sagas: these are the things that did not fit into kit instructions or ledger arithmetic.
Model choice
The kit has only been tested with these two models, by the author.
- Claude Opus 5.5. Works well; trends towards enforcing RAW, and can be overeager to play out long scenes without player input if not reined in. Simple and readable prose.
- GLM 5.3. (Mistral hosted tested) Works well; trends towards allowing anything the player wants, and uses more flowery prose if not instructed explicitly not to. May inject rare random characters.
- General. The model's guardrails and the kit protocol's guardrails stack on each other, so loosening the kit's guardrails does not help on a model that is stricter than the kit - e.g. Opus.
Context management
- Long contexts rot. Past roughly 500k tokens, tested frontier models (Opus 5.5 and GLM 5.3) start to break down with character leakage: persona and knowledge bleed across characters and across the player/Storyguide partition. To fix: compact at scene boundaries, close sessions, and let the files carry the state.
- Keep the live layer small. Read the live state at session start; search the history on demand, never whole. The kit's dashboard caps itself at a year for exactly this reason - a session-start read that keeps growing will eventually grow past the model. You may want to tweak that four-season limit, depending on how fast your saga runs, or cap it at a line count instead of seasons if your pace / content per season fluctuates a lot.
- A rules index helps only if you need it. A semantic index over the corpus saves tokens when you are budgeting hard, but the kit's other context discipline (a small live layer, quick-reference cards loaded on trigger, history searched on demand) may already be enough; the play-test sagas stopped using it.
Sessions and setup
- Compact at scene boundaries, never mid-scene.
Autocompact can break a scene, so keep it off and compact manually.
The kit ships the compaction block (
COMPACT.md) and a harness hook that tries to make compact not break things. - Run the agent sandboxed, in auto. Every mechanical mutation goes through one logged CLI, every roll is logged open or sealed, and every session ends in a git commit - the audit trail is the safety net, so per-step approvals buy little. Sandboxed auto-run plays faster and loses nothing. Unsandboxed LLMs in auto should just never run; if you do, it will bite you, sooner or later. I use pwrap which I authored; there are many other ways to keep your LLM locked up.
- The session close is the restore point. Awards,
render,
audit --strict, commit. A saga that skips closes can drift mechanically, and the strict audit is what catches that. - Setup is important, but nothing is locked. Pressure licenses, optional house rules, the troupe register, and prose: settling them at setup saves you the cost later. The cost is not a rebuild (LLMs make that cheap), but the meta-layer argument with an agent is not fun.
- Refocus a saga that goes awry. Every session ends in a commit, and commits are save points: you can drop back, tweak the protocol or the premise, and run the season again toward a story you enjoy. That is the purpose of the whole arrangement - the saga exists for the player.
The rules
The kit ships the open-licensed Ars Magica rules corpus (Definitive Edition core, sourcebooks, fan works) rendered as a browsable site:
The rules text is (c) Trident, Inc. d/b/a Atlas Games, used under CC BY-SA 4.0. The rules site stands alone - it does not depend on the kit. The kit itself (ledger, scaffolding, docs) is also CC BY-SA 4.0.
Build the rules site yourself
git clone https://github.com/haard/arsaga
pip install markdown-it-py
python3 tools/build_rules_html.py # writes rules/html/
Then open rules/html/index.html in a browser -
no server needed.