I've been pouring a lot of time into a personal project: a little AI agent that lives entirely in your browser. It’s a core part of my interactive narrative, Bios of Being, designed to be discovered and unlocked by players exploring the game's manual.
The fun part is that the whole thing runs client-side. The agent keeps its entire knowledge base and history in your browser's IndexedDB. This means your agent evolves based on your interactions and no two will ever be the same.
Under the hood, it uses Q-learning to decide what to research or think about next, guided by its task queue, identified knowledge gaps, and even a simple emotional analogue that shifts with its experiences.
When it runs out of tasks, it dreams. In this state, it kicks off a genetic algorithm that grabs concepts from its memory, mashes them together to form new hypotheses or analogies. The most promising dreams get added back to its to-do list for future exploration.
On top of all that is a meta-learning layer I’ve dubbed "Paramorphic Learning." This is how the agent learns to get better at learning. It observes its own performance over time and adapts its internal strategies to become more effective.
To be clear, this isn't an LLM and there's no server-side processing. It's a small, self-contained entity designed from the ground up to live inside a browser.
You can try it out here: https://ardorlyceum.itch.io/bios
I'd love to hear what you think.
[link] [comments]