Repo · Games & real time
Keeping an NPC on quest
Companion code for Old Nain episode 002: a local-LLM NPC kept on quest with staged facts, while TypeSafe Jev classifies player messages and checks…
Open github.com ↗From the repository
Companion code for Old Nain episode 002: keeping an LLM-run NPC on quest with staged facts and Jev, TypeSafe's System One model, checking every line. For educational use only.
ai-npceducationalgame-developmentghost-hat-studioguardrailsjevllmlocal-llmnpc-dialogueold-nainollamapythonsystem-onetypesafe
How builders describe it
Companion code for Old Nain episode 002: a local-LLM NPC kept on quest with staged facts, while TypeSafe Jev classifies player messages and checks every NPC line for leaks, inventions and broken character.
The decision Jev makes
Choose a legal move, a lane or an NPC reaction each turn.
Where it fits
Games are a stress test for decision speed. Jev picks the next move from the legal ones, fast enough for arcade games and deep enough for chess and strategy. All 256 games & real time projects →