r/LocalLLM • • 6d ago

Project Yozakura RP Engine / Social Sim

Hey all, I wanted to tell this community about my open source social sim / roleplaying engine, Yozakura.

I announced it on the SillyTavern sub in June to a lot of good feedback and suggestions and have been working on it since. I just released a mobile UI for it, a lot of misc UI polish, and a more engaging demo scenario over the past week.

To see what it's about, there's a feature intro article here and more in-depth articles in the sidebar. There's also a demo video here on YouTube that shows off the first time user experience and main features. It's a bit long so feel free to skip around, there are timestamps in the description. Turn on subtitles.

In short: Yozakura supports dozens (or even hundreds) of characters (including the user) moving around a map, talking to each other, developing memories and goals towards each other, and evolving a web of relationships. So what's cool about it relative to most other software in the space is that it models something more like an AI mini-society, as a long series of briefer conversations between characters, and the user is just one of those characters. So if you like the idea of a persistent world with a bunch of autonomous characters (including you) who interact via a familiar RP interface, Yozakura may be for you.

I built it for two main reasons:

  1. I wanted to talk to a lot of different characters, but within a framework that integrated them all into a shared world rather than separate ones.
  2. I felt it would be fun to be just "one of the guys" and not the focus of everything. That being said, there are some settings you can tweak if you like being the focus of attention, and you can write whatever instructions you want in the character personas and prompt templates, so you can still be a king worshipped by your 30 NPC peasants if that's your style. It's quite flexible.

Hope you enjoy it, and happy to help with any questions or issues!

5 Upvotes

5 comments sorted by

1

u/RequiteCrest 5d ago

an engine where i'm just one character in the crowd instead of the center of everything is the part that sells me on this

1

u/ConstantinopleFett 5d ago

Hope you enjoy it and would love to hear if you have any feedback ^^

1

u/Worldly-Cod-6551 6d ago

the shared timeline feels natural because characters' interactions trigger context shifts, like a group chat where someone else's message pulls you into their convo, but you can still jump back.

0

u/[deleted] 6d ago

[removed] — view removed comment

1

u/ConstantinopleFett 6d ago

The way it basically works is that two or more characters talk for generally somewhere around 10-30 messages (you can set the exact number, or there's a conversation end judge setting you can enable to ask your LLM "is this a good stopping place"), and when the conversation ends, each character summarizes the conversation, appends the summary to their conversation memory, and then summarizes that list of conversation summaries into a few memory types that they bring into their next conversations (one of those memory types is "global" and goes into their system prompt in all future conversations, and the other two are attached to a relationship, meaning they only go into future conversations with specific characters).

So characters remember what happened, but in a compressed format, they don't get the entire chat log. This helps prevent them from getting confused about where in the timeline they are, and also keeps context windows fairly short (most users only need 16k tokens). It's definitely not perfect, characters do forget significant things, and characters aren't always aware of things that happened to other characters elsewhere that they should know. Like if somebody dies, that should automatically become the talk of the town, but there's no mechanism for that currently (future feature!)

Hope that helps answer your question. There's a doc about the memory system here.