A developer has released an experiment featuring autonomous non-player characters (NPCs) powered by the Gemma 4 E2B model, which runs directly in the web browser.

  • The project allows users to interact with "dumb" NPCs that can walk, talk, and perceive their environment via an ASCII map.
  • Characters can perform actions such as casting fireballs or pushing barrels to modify the game world.
  • The experiment is open source under the MIT license and includes a feature to record and share agent states as animated PNGs.
  • It is designed to be lightweight enough to run on older hardware, such as a laptop with an NVIDIA 2060 GPU.