# Yuanzai World – LLM RPGs with branching world-lines

Hi HN, I'm Kai Wang, one of the creators of Yuanzai World. We built a simulation engine (currently on iOS & Android) that allows the community to create and share text adventures populated by multiple LLM-based agents. Unlike standard chatbots, our focus is on community co-creation—users define the…

- **Page:** https://magpie.gallery/i/yuanzai-world-llm-rpgs-with-branching-world-lines-9lfc
- **Type:** Link to an idea elsewhere
- **Category:** Games
- **Runs on:** ios, android
- **Tags:** text-adventure, llm, rpg, community, simulation

## Source

Web · yuanzaiworld: Yuanzai World – LLM RPGs with branching world-lines

- **Original:** https://news.ycombinator.com/item?id=46565265

> Hi HN, I'm Kai Wang, one of the creators of Yuanzai World. We built a simulation engine (currently on iOS & Android) that allows the community to create and share text adventures populated by multiple LLM-based agents. Unlike standard chatbots, our focus is on community co-creation—users define the worldviews, and our agents (with persistent memory and social relationships) bring them to life. The cool part: We implemented a system we call "World-Line Divergence" (inspired by visual novels like Steins;Gate). Usually, AI RPGs feel random or infinite loop. We built a state machine that tracks "World Deviation." If players interact with NPCs in specific ways (e.g., convincing an artist to change their style), it triggers a graph switch, leading to a completely different generated ending, effectively breaking the original script. Tech Stack: - Backend: Python / Java with a custom AI orchestration framework (to handle agent concurrency). - Models: Hybrid routing between Gemini, GPT, and DeepSeek (optimizing for cost/performance based on task). - Vector DB: Milvus (for handling long-term agent memory). We are currently live on App Store and Google Play. Since it's a mobile-first experience, the link leads to our landing page where you can see the demo flow. Would love to hear your feedback on the "World-Line" concept: Does this state-machine approach solve the aimlessness of AI RPGs? https://www.yuanzai.world/

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
