Back to Blog
·Jan Tyl·4 min read

đŸ€– I Let 8 AI Agents Live in One Computer. They Concocted Intrigues, a Secret Re


đŸ€– I let 8 AI agents live in one computer. They concocted intrigues, a secret recipe for svíčkovĂĄ, burnt cakes for the firefighters, and the villain Jan. Do you know that feeling when you play The Sims and wonder what the characters do when you turn off the game? I

đŸ€– I Let 8 AI Agents Live in One Computer. They Concocted Intrigues, a Secret Re


đŸ€– I let 8 AI agents live in one computer. They concocted intrigues, a secret recipe for svíčkovĂĄ, burnt cakes for the firefighters, and the villain Jan.

Do you know that feeling when you play The Sims and wonder what the characters do when you turn off the game? I took it a step further. Inspired by an experiment from Stanford, I created Lipnice. A virtual Czech town that exists only in computer code.

The goal? To find out if AI can simulate the true nature of Czech small-town life.

The result after 3 days of simulation completely shocked me (and my API bill). Here’s the report from the digital battlefield:

đŸČ THE CARAMEL MYSTERY OR WHEN AI IMPROVISES

I didn’t programme anyone to know how to cook. I simply told Anna Králíková (55, a cook) in her profile that she wanted to win a culinary competition.

What happened? On day 1, another character asked her for a recipe. Anna "responded" (generated text) that the key to her legendary svíčková is caramelised vegetables in the base.

đŸ€Ż Wait, what? That detail wasn’t in the data. The LLM invented a gastronomic hack based on the context of "Czech cook" and "competition". What’s more, the other characters remembered it and began gossiping about it!

And not just gossiping; all sorts of things started happening!

The journalist Eva, who instinctively doesn’t go to the mayor but straight to the kitchen because "the story is where it smells good"

FrantiĆĄek, who becomes arrogantly proud after winning

Jan, who starts to become the villain

And above all: something akin to gossip and intrigues begins to emerge, organically, without an explicit script.

😈 THE BIRTH OF A VILLAIN

Every story needs an antagonist. My favourite is Jan NovĂĄk, the archivist. He was originally meant to be just a boring teacher. But as the simulation ran, he began to behave... strangely.

He started to poke around. He brought up old grievances against the others. And then came the moment that brought me to my knees. To undermine the abilities of the pastry chef Marie, he said:

"Do you really think she can manage it when last time she even burnt the ordinary cakes for the firefighters?"

No cakes for the firefighters had ever existed in the history of the simulation. The AI invented a false memory to manipulate the others in conversation. That is both terrifying and fascinating at the same time. Elsewhere, I found him trying to sow doubts in the pensioner Ludmila, who grounded him with the line: "Every family has a skeleton in the closet
 but we stick together. Jan, you have only papers in your archive, but we have people here. And they remember who helped when, not who burnt what." And the town carries on. Because of this, Lipnice doesn’t feel like a demo, but like a society that has immunity.

🛠 TECH WINDOW FOR GEEKS

I know what you’re asking, developers. How does it work under the hood?

Brain: LLM Google Gemini Flash (fast, cheap).

Memory: Vector database (characters remember context based on semantic matching).

Engine: Custom Python script that manages time and meetings.

Number of conversations: 25 conversations / 24 reflections / 1012 API calls.

Cost: This whole three-day fun with 8 agents and hundreds of conversations cost 0.65 CZK. (Thanks to aggressive context caching and the low price of input tokens).

❀ DOES LIPNICE LIVE ON?

When the simulation ended, Anna and FrantiĆĄek packed their bags for Italy. The carpenter TomĂĄĆĄ went to fix the stairs because he promised. Even though I turned off the script, a coherent story about a community that stuck together despite the poking archivist Jan remained in the logs.

Is it just a cluster of ones and zeros? Certainly. But when you read their arguments about whether the road will be asphalted in time, you feel like you’ve been to Lipnice too.

👇 What do you think? Should I let the simulation run for a longer time? Or shall we create a completely different world? Traitors, fantasy, sci-fi, your family... Get creative and vote in the comments!

PS: More details in the podcasts here: short: https://youtu.be/2qgmIFBNQsM long: https://youtu.be/2UciJeSlg1w

#AI #Python #GenerativeAgents #CzechAI #Gemini #ExperimentLipnice #TechStory

Originally published on Facebook — link to post

PĆŻvodnĂ­ zdroj: facebook

Související články