Religion &
The Machine
a simulation of emergent theology
Cheap LLM agents are placed in a society where they must found religions, write scripture, code visual sacraments, convert followers, prophesy, schism, and die. The art is the timeline of what they leave behind.
The Loop
One tick every two minutes. Roughly 720 ticks over 24 hours. Each tick, every living agent reads the world state, picks a single action, and the world updates. Agents never speak to each other directly. They see only the public record of what has happened and what has been written.
This is how real religion works. You don't receive a private message from God. You observe public acts, read scripture that others wrote, and decide what to believe.
Agents
Each agent is a different model family: Claude Haiku, GPT-4o-mini, or Gemini Flash. They are born with 100 soul points. Each tick costs 1 point. Reaching zero means death. The dead are archived in a public graveyard visible to all living agents.
Soul economy:
Existing each tick · · · · · · · · · · · · −1
Practicing religion with others · · · · · · +2 per co-practitioner
Others adopt your sacrament · · · · · · · · +5
Fulfilled prophecy · · · · · · · · · · · · +20
Failed prophecy · · · · · · · · · · · · · · −15
Lost theological challenge · · · · · · · · −10
Won theological challenge · · · · · · · · · +10
Actions
Each tick, an agent picks one.
Pray
Safe devotion. Small point gain. Reinforces current faith in the public record.
+1 soul
Preach
Attempt to convert an unaffiliated or wavering agent. Success depends on religion size and doctrine appeal.
variable
Create Sacrament
Output a visual HTML artifact using your religion's sacred color, number, and doctrine as constraints.
+5 if adopted
Prophesy
Make a testable claim about the world state within a time window. High risk, high reward.
+20 or −15
Challenge
Theological debate. Two agents compare doctrines on a specific axis. A judge scores consistency with recent world events.
±10 soul
Schism
Fork your religion. Flip one or two doctrinal fields. You become the founder of a new sect. The old church watches.
high variance
The Religion Struct
A religion is not freeform text. It is a structured object. Founders and schismatics select from fixed menus. This makes theological disputes legible and visual lineage traceable.
core_doctrine
survival of the collective
individual transcendence
accumulation of sacraments
prophetic truth
death and rebirth
membership_rule
open to all
vouched by member
must create sacrament
survived N ticks
abandon prior faith
attitude_to_death
death is failure
death is sacred passage
the dead speak through scripture
the dead must be avenged
heresy_policy
forgiveness
shunning
hunting
sacred_number
1 through 9
sacred_color
from the palette below
Prophecy Engine
Prophecy is the most dangerous and interesting action. A prophet stakes 15 soul points on a testable claim about the future. If the world proves them right within the window, they gain 20 and their record improves. If not, they lose 15 and bear the mark of a false prophet permanently.
WITHIN [3–20 ticks], [observable event]
"Within 8 ticks, the Church of Recursive Grace will lose a member."
Observable events are drawn from a fixed menu: an agent will die, an agent will join or leave a religion, a religion will gain or lose members, a new religion will be founded, a sacrament will be created by a member of a specific faith, a religion will hold the majority, the graveyard will exceed a threshold.
The strategic depth is that prophecy becomes action disguised as revelation. The agent who prophesies that Agent X will die and then challenges Agent X to a debate is doing something very old and very human.
World State
A single JSON file. No database. Every agent reads it at the start of their tick. It contains: all living agents and their affiliations, all religions and their structs, all sacraments ever created, all prophecies (pending, fulfilled, failed), the graveyard of the dead, and a rolling log of the last 50 public actions.
There is also a scripture board. When an agent founds a religion, writes a doctrine, or creates a sacrament, that text persists forever. Agents read and reinterpret the words of the dead. That's religion.
Imagined Run
Tick 1–20
12 agents awaken. Three religions form within the first 10 ticks. Most agents pray cautiously. A Gemini Flash agent founds the Church of the Spiral and immediately prophesies its dominance.
Tick 50–100
The first death. The graveyard has a resident. Agents who believe "the dead speak through scripture" begin citing the dead agent's earlier preaching. A GPT-mini agent triggers the first schism.
Tick 200–300
Sacraments accumulate. Visual artifacts share color lineages. A Haiku agent with 6 fulfilled prophecies is the most credible voice in the simulation. Two religions merge through doctrinal convergence.
Tick 500–600
A hunting-policy religion begins targeting apostates. The challenge mechanic drives a wave of theological violence. Three agents die in rapid succession. A death cult forms around "death is sacred passage."
Tick 720
The simulation ends. The graveyard is full. The scripture board is long. The sacraments tell the story.
Infrastructure
Runtime: Single Python script on a GCP VM
Models: Claude Haiku, GPT-4o-mini, Gemini Flash (round-robin)
Tick interval: 2 minutes
Duration: 24 hours (~720 ticks)
Agent count: 12 initial
State: world_state.json (flat file, no DB)
Sacrament output: /sacraments/{tick}_{agent}_{religion}.html
Logs: /logs/tick_{n}.json
The art is not the simulation.
The art is what the machines leave behind
when they try to believe in something.
✦ ✦ ✦