{"by":"yuanzaiworld","descendants":5,"id":46565265,"kids":[46568724,46567679],"score":31,"text":"Hi HN, I&#x27;m Kai Wang, one of the creators of Yuanzai World.<p>We built a simulation engine (currently on iOS &amp; 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.<p>The cool part:<p>We implemented a system we call &quot;World-Line Divergence&quot; (inspired by visual novels like Steins;Gate). Usually, AI RPGs feel random or infinite loop. We built a state machine that tracks &quot;World Deviation.&quot; 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.<p>Tech Stack:<p>- Backend: Python &#x2F; Java with a custom AI orchestration framework (to handle agent concurrency).<p>- Models: Hybrid routing between Gemini, GPT, and DeepSeek (optimizing for cost&#x2F;performance based on task).<p>- Vector DB: Milvus (for handling long-term agent memory).<p>We are currently live on App Store and Google Play. Since it&#x27;s a mobile-first experience, the link leads to our landing page where you can see the demo flow.<p>Would love to hear your feedback on the &quot;World-Line&quot; concept: Does this state-machine approach solve the aimlessness of AI RPGs?","time":1768049293,"title":"Show HN: Yuanzai World – LLM RPGs with branching world-lines","type":"story","url":"https://www.yuanzai.world/"}