Pneuma IO

Sylvia GM blog

Sylvia GM 0.4.1: Linux, cheaper turns, and the Rust rewrite

0.4.1 is out for Windows and, for the first time, Linux. Long sessions cost a lot less on the Claude and ChatGPT connections, and a lot of spells work properly now.

0.4.1 is out! It's the first Sylvia GM release with a Linux build, and most of the rest came out of playing real fights with it all week and fixing what broke.

Sylvia on Linux

The whole desktop app now comes as a single AppImage for x86_64 Linux: campaigns, the Builder, the game panels, character chat, export and recovery. The Claude subscription works there too. Sylvia sets up its own copy of Claude Code and the sign-in opens your browser. For a ChatGPT account you install the Codex runtime yourself, the same as on Windows.

You'll need glibc 2.35 or newer, so Ubuntu 22.04, Debian 12, Fedora 36 or anything later. I've checked it on Ubuntu 22.04 and 24.04. Dictation and in-app updates aren't in the Linux app yet.

Linux is also where Sylvia gets developed and tested first from now on.

Turns cost less

AI providers charge far less for input they've already read, but only up to the first thing in the request that changed. The Game Master's list of tools sits at the front of every request, and in 0.4 that list kept changing between steps. Reaching your first fight threw the whole cached conversation away.

Now the list stays the same for the whole session, and a rules tool is loaded when the game first needs it:

  • Claude API key: on Opus 5.5 a request went from about $0.29 to about $0.15 in a live fight.
  • Claude subscription: after the first request, none missed the cache. Sylvia also keeps one Claude Code process running per session now, so each step doesn't wait for it to start up.
  • ChatGPT account: the Game Master sees 10 tools instead of 91 to 110, and input per reply fell by more than half on GPT-6.1 Sol.

The two spell-casting tools also shrank from about 52 KB to 11 KB each, so every request is about a quarter smaller on every connection. And the newest Claude models work properly through an API key now. Fight turns with more than one step used to fail on them, and you can set their reasoning effort.

SRD Lite looks the part

The SRD play screen has its own fantasy look now, matching the sizzle reel: party cards, a character sheet with its spell book, the initiative ladder and the battlefield. The Inventory panel has been redrawn to match. Items have their proper names (Dungeoneer's Pack, Healer's Kit), and NPCs' lines show who's speaking instead of "Unknown speaker".

Spells and fights

The big one: some spells could lock up a fight. They were accepted when you cast them and refused when they resolved, so your action was gone and nothing else, not even ending your turn, was allowed. Now the rules check range, sight, touch and cover against the map before anything is spent, and refuse up front with a reason. If a campaign is already stuck like this, Update campaign rules gets it moving again.

Plenty more besides. Magic Missile's darts each roll and land on their own. Shield can answer any hit. Guardian of Faith no longer stops combat. A summon from outside a fight can join one. The premade casters have their spell materials. "I attack, then I end my turn" does both now. Panels also refresh about 20 times faster on long campaigns.

The release notes have the full list.

Known problems

These are still in 0.4.1, and fixes for them are planned for 0.4.2:

  • Sleep can't be cast in a fight in Rift Awakening, and other spells that affect every creature in an area may be refused the same way. Nothing is spent and play goes on, but the spell doesn't work.
  • Dissonant Whispers does its damage, but a target that fails its save doesn't move away.
  • A fight can fail to start in a scene with walls or doors. Asking again, or carrying on in the open, usually gets past it.
  • The play screen can open with every panel squeezed into one column, and when a fight starts the story doesn't always scroll down to the newest reply.
  • Movement shows raw decimals like 7.95649469518632 ft.
  • The campaign start dialog can offer your old default model after you've changed the default in Settings.
  • The "not yet rated" notice shows internal ids, and a failed connection tells you to check a local model server even when you're on ChatGPT. Both notices are being removed.

Underneath those, we're also going through every tool the Game Master can call, so the engine works out everything it can from the game state and no action can be accepted and then fail later.

The Rust rewrite

This week we also started porting Sylvia from Python to Rust. The desktop shell was already Rust, and the other 160,000 or so lines of Python are moving over, so a future version runs with no Python inside it at all.

Why Rust? Rust is a better language for agentic coding than Python. Python has less overhead because there's no hefty compiler to go through, but problems slip through more easily, because Python won't catch them until the code actually runs. Being a lower-level language, Rust also sets the groundwork for squeezing the best possible performance out of the app, and with plans for the future including immensely complex simulation rulesets, that's important. And it's better to make the transition now than to wait until there's three times as much code to rewrite.

It's being done in five parts at once: formats and content, the game engine, storage, the AI connections, and the background program the app talks to. Nothing gets merged until it behaves exactly like the Python version. The same scripted game runs through both, and the replies, the saved data and the requests sent to the model all have to match.

As of today, about a fifth of the app's Python has been ported, and Rust answers 31 of the 137 commands the app sends to its background program. 0.4.x releases carry on from the Python version in the meantime, and Trigger Discipline will arrive on the Rust one.

Give it a go

Download Sylvia GM 0.4.1: an installer or portable ZIP for Windows x64, or an AppImage for x86_64 Linux. They're unsigned, so Windows will warn you. On Linux, check the download with the SHA256SUMS-linux.txt file and make the AppImage executable. The release notes walk through it.

Your campaigns from 0.4 carry over. They keep the rules version they were made with until you choose Settings > Campaign data > Update campaign rules, which brings in the spell fixes and item names. That update is one-way, so export the campaign first if you want to keep the old version.

Sylvia is free and source-available. Any AI service you connect may charge separately. If something breaks, or you just want to tell me how it plays, open an issue.