Letting an LLM Drive a Live Web App — Safely
Building a chat feature is easy now. A text box, the Vercel AI SDK, a model behind it — a weekend, maybe less. The hard part isn't the chat. It's letting the model do things to your actual application without it becoming a liability. My artificial-life game has an in-browser assistant you can talk to. It isn't a help bot bolted on the side. It reads live game state and reaches into the running simulation: you can ask it about the world and it answers from actual state, and you can ask it to des