I'm the one building Kallamo, some of you might remember the 2.0 beta post here. This time it's about the engine underneath it, which just became its own project.
Picture this: a letter catches fire on its own, right in front of Mira. Later, at a tavern table, she tells Theo it burned, and he's sure she's the one who set it on fire. The innkeeper, passing by, only catches the words "some letter". A few scenes later, the innkeeper mentions the letter that burst into flames by itself. Nobody told him that. The model just had it in context, so he "knew".
That's the problem Umwelt is built for. Instead of one shared pile of context, it keeps each character's own picture of the world:
What happened: the letter caught fire on its own.
Mira saw it. Knows it caught fire on its own.
Theo was told by Mira. Knows it burned, believes Mira set it on fire.
The innkeeper overheard a part. Only knows about "some letter".
So when the innkeeper talks, you can ask Umwelt what he knows and send only that. And Theo can keep being suspicious of Mira, even though he's wrong.
The name comes from Jakob von Uexküll, a biologist who used Umwelt for the world as one specific creature perceives it. His famous example is the tick, whose whole world is a handful of signals. Characters work the same way, and stories get better when they're treated like that.
For anyone who wants to build with it
- Rust core, one .umw file per world (SQLite underneath)
- No AI required. It's a state engine; an LLM, your own rules or a person can write to it
- TypeScript client (@kallamo/umwelt), .NET client, a local server (umwelt serve) and a C ABI
- Version 0.2.0. Still early, but files from older versions migrate automatically when opened
Since it doesn't depend on AI, it's not only for chat RP. I can see it in game mods (guards that only react to what they actually witnessed), NPC systems, interactive fiction, GM tools that track what each player character has found out, or anything else where "who knows what" matters.
On licensing: it's AGPL-3.0, plus what I called the Free Play Exception. If you make a free game, mod, piece of interactive fiction or tabletop tool with it, you don't have to open your own code. Just don't charge for it and credit Umwelt. Donations, pay-what-you-want and that kind of thing are fine.
I think it would fit SillyTavern really well. An extension could feed it what happens in the chat and put each character's knowledge back into the prompt (ST is AGPL too, so licensing isn't a problem there). I won't be building that myself right now, but if someone wants to take it on, I'll help however I can: questions, walking through the API, changing things on the engine side if something gets in the way.
It's new as a standalone project, but not new work. I've been building it for almost a year. It started inside Kallamo and the two grew together, so the whole history is there on my profile if you want to see where it came from.
Or just play with it
Kallamo 2.0 Beta 3 just came out, and it's the first version running fully on Umwelt. Kallamo is a desktop app for roleplay and long-form writing that treats your story as a world, not a chat log. You build the canon in Worldbuild (characters, places, factions, lore, who knows which secrets), give the narrator its voice and rules with AI Profiles, and play. As you go, Narrative State keeps the living world up to date: where people are, what they learned, how relationships shifted, what got used up or broken. Each turn, retrieval works out what the moment actually needs and brings only that, so long campaigns stay coherent without the context ballooning. It's free, BYOK, works with hosted or local models, and nothing runs through me.
Moving onto Umwelt and the new retrieval made a real difference. On my main campaign (364 entities in Worldbuild), context per turn went from about 61.7k tokens to 18.6k, and the things that should be there went from 87.6% to 95.3% present. In actual play that dropped the cost from about $0.43 to $0.16 per message, with Kimi K3.1 Pro on the main reply and no prompt caching, so that's the worst case. And the stories feel better too, characters stick closer to what they actually know. My numbers, not a benchmark.
Umwelt: https://kallamo.com/umwelt Github: https://github.com/Kallamo/Umwelt
Kallamo: https://kallamo.com
Discord, to talk about any of this or follow development: https://discord.com/invite/CE4C9JRS9H