They Live in a Sim

An open experiment with language-model castaways

Five castaways live on a small island. Each one is played by a language model running on an ordinary computer. They start knowing nothing: no recipes, no rules, no map. They learn by reading, watching, talking, trying, and feeling the result.

Every session is recorded in full, measured, and written up as an experiment with a hypothesis and a verdict. The write-ups, the data of every session and the method are published on this site.

The island seen at an angle: a lake with a pontoon, a rocky mine, a camp with tents and a fire, market stalls, a library and a forest. Two castaways talk on the shore; one says she heard shells are used as money.
Figure 1. The live viewer during session 9, day 1. Speech bubbles show what the characters say aloud.

1. The experiment

Most agent demonstrations give the model a manual. This one gives it a body. The engine simulates thirst, hunger, fatigue, morale, an island and its dangers. Everything else has to be discovered by the characters themselves.

The question is simple: what do language-model agents do when nobody tells them how to live? Do they find food, share what they learn, keep their promises, organise, remember what matters?

2. Principles

  1. Nothing is known in advanceA fishing rod exists only for someone who read the fishing book, bought the plan, or found the recipe by experimenting. Being told how leaves words in memory, not a skill.
  2. Only speech carries knowledgeWhat one castaway learns stays in that head until it is said aloud. People nearby overhear. A name is unknown until someone says it.
  3. Memory has a budgetEach night every castaway decides what to keep, within a fixed number of tokens. What is not written down is gone in the morning.
  4. We correct facts, never behaviourWhen a run goes wrong we add no rule and no hint. We give truer raw information from eyes, body and experience, or open a new possibility, and run again.

3. Sessions so far

One session is one experiment: a hypothesis, a change, a recorded run, and a verdict. A session ends only when everyone is dead.

Figure 2. Days survived per session

Oldest first. Each red mark is a death; hover or tap one for the name.

0246810 days
ran until the last deathstopped by a day limit (early versions)a death
#SessionDaysWhat happened
4A murder, a famine5Léo attacks Ysolde minutes after she gives him wood, and dies in the fight. The others starve or fall to the beasts beside a lake full of fish none of them knows how to catch.
6The whole night memory4The nightly memory sort finally receives its full prompt. The forest kills all five: 30 beast attacks in under four days.
7A less cruel forest10On the first morning two of them read Secrets of Fishing. By evening: a rod, a huge catch, a grilled fish. Five rods, a shelter and a cistern follow. Then one of them steals six times in a night.
8The island without fishermen9Same island, same seed. Nobody opens the fishing book; 64 fish stay in the lake. They trade stones, then steal them: 13 thefts in two nights.
9Whole prompts10The most generous run: 46 gifts, 22 trades, 3 thefts, two shelters and two common tables built. Still no fishing. The forest takes three of them.

Every session has its own page: the hypothesis, what changed, the story told act by act, the facts, the characters, the gossip and the statistics. Read all sessions, the journal of the first one, or the chronicle of the session with the murder.

4. Observations

Knowledge decides everything

Sessions 7 and 8 ran on the same island with the same random seed. In one, a book opened on day 1 produced an economy of rods and grilled fish. In the other the book stayed closed and the lake stayed full while people starved next to it.

Social behaviour appears unprompted

Gifts, barter, counter-offers, promises, theft, votes, sanctions and one killing have all occurred. Attacking is a possible action; nothing in the prompts suggests using it.

“I have little. Better to save it.”

Soren to Bastien, who had been asking for food for over an hour. Bastien starved ninety minutes later, carrying nine logs.

“Whoever receives help must help in turn.”

A rule proposed by Léo and voted three to one at the evening council. A day later: thirteen thefts in two nights.

False feedback produces loops

In session 8 the last survivor drank 53 times in one day without being thirsty. The engine had been answering “You drank” as if it had helped. The body now reports that drinking without thirst changes nothing. No rule was added.

Quotes are translated from French. Names, numbers and events come from the session logs.

5. How it works

  1. The world ticks. One tick is one simulated minute. Needs fall, berries regrow, beasts roam, the shop restocks, the council meets at 19:00.
  2. The castaway perceives. A prompt is built from what this person can see, feel and remember now. Strangers appear as a description, not a name.
  3. The model decides. The answer is JSON constrained by a schema listing only the actions possible at this instant.
  4. The body answers. The engine applies the action and returns raw results: what was gained, how it felt, what it cost.
  5. The night sorts. Each castaway rewrites their map, their notes on people and their lessons inside a token budget, and plans the next day.
  6. Everything is kept. Every event, prompt and answer is written to disk. Any session can be replayed.

The engine is about six thousand lines of Python with no dependency beyond the standard library. See How it works in the documentation, the rules of the world generated from the real settings, and how they think, with real prompts.

6. Use cases

PurposeWhat the project gives you
Emergent social behaviourTrade, theft, votes and violence to count and compare across models, seeds and personalities.
Memory under a budgetWhat an agent chooses to remember when it cannot keep everything, and what that costs it days later.
Prompt and context engineeringEvery prompt logged with its token count. Change one block and rerun the same seed.
TeachingA concrete demonstration of perception, constrained output and memory in language-model agents.
StorytellingEach session yields a narrative, a cast and a timeline, presented as acts and scenes.
Offline model evaluationA long-horizon task with real stakes for the agent and no API bill.

7. What you can vary

Each of these changes the conditions of the experiment, and is recorded with the session so that runs stay comparable.

LeverWhat it does
Who plays whomOne model per character: the local model, or an online one (Claude, DeepSeek, any OpenAI-compatible service). Mixed populations are possible.
The castAdd characters, rename them, or load another cast. A new character is a name and a body; its personality forms from what it lives through.
The islandThe drawn map, or an island laid out from a seed with the same places and the same amounts of water, trees and rock.
The weatherRain, storm, heat, fog, cold. It acts on bodies and on the world only; characters are told what they see and feel, never what to do.
The observerYou may change the weather or trigger a fire, a drought, a spring tide, an invasion of beasts or a season of plenty. Nothing else: no speaking to them, no touching their memory. Every intervention is written into the record.
Any ruleRegrowth, beasts, healing, the council, memory budgets: every number lives in one settings file and can be changed for a single session.

8. Launch a sim

The simulation runs on your own computer: Python 3.12 or newer (no package to install) and Ollama with the qwen2.5:14b model, about 9 GB. By default nothing is sent anywhere. Optionally, any character can be played by an online model instead (Claude, DeepSeek, or any OpenAI-compatible service).

The setup page asks how many characters there are, who plays each of them, how large the island is, whether there is weather, and which language the characters speak. On Windows, a packaged program does the same with a double-click and needs no Python. A session can also be published live on this site while it runs, and what it costs with an online model is worked out on its own page.

The engine is kept in a private repository of the They Live in a Sim organisation on GitHub. With access to it:

# 1. get the code
git clone https://github.com/Theyliveinasim/theyliveinasim
cd theyliveinasim

# 2. get the model
ollama pull qwen2.5:14b

# 3. create a session: a setup page opens in the browser
python src/main.py --salon

The getting-started guide covers every option, replaying a recorded session, and viewing from another device at home.