In 2023, Stanford and Google introduced a simulation of human behavior using AI agents. You can read the original paper here.
Inspired by that research, Catville is my own take on an autonomous, AI-driven social simulation. The project uses Mistral's open-source LLM for its strong performance and accessibility (free to run locally).
The simulation evolves on its own: each day, the agents interact, make decisions, and reflect—forming an emergent narrative of society.
Every day, a new Buttondown post is generated, summarizing:
-
Key interactions between the people of Catville
-
A narrative overview of Catville’s daily events
Click here to subscribe to the newsletter and receive daily updates!
-
Start Ollama with Mistral
Make sure Ollama is installed and the Mistral model is pulled:
ollama pull mistral
Start Ollama daemon (if not already running):
ollama run mistral
Install all the required dependencies using Poetry:
poetry install
Run the Simulation:
poetry run python catville.py