BehaviorLLM: open-source Unity package lets local LLMs drive game NPCs

faeliondev · reddit · 2026-09-23

A dev open-sourced BehaviorLLM (MIT), a Unity package from his bachelor thesis that lets LLMs drive NPC decisions: you define available actions and observable scene info, the model picks what to do, and your code executes it. Ships with a playable stealth demo, an 8-agent prison simulation with a warden, a HuggingFace model manager, and a runtime Prompt Inspector. Runs locally via llama.cpp, with plans to support new lightweight JEV-like models.

Original post →

More from coding & agent

coding & agent channel →