Artificial-life: A 300-line Python reproduction of Computational Life research

What this is
Artificial-life is a 300-line Python reproduction of the Computational Life research paper 'How Well-formed, Self-replicating Programs Emerge from Simple Interaction.' It simulates emergent self-replication in a grid of simple programs.
How it works
The simulation uses a 240x135 grid containing 64 instruction-length Brainfuck-like programs that are randomly initialized. Each iteration follows this process:
- Neighboring programs are randomly paired
- Their instruction tapes are concatenated together
- The combined program runs for a maximum of 213 steps
- After execution, the tapes are split back apart
The instructions can loop and mutate the instruction tapes themselves. As described in the original paper, self-replicating programs that copy themselves over their neighbor's tape often spontaneously emerge and spread to take over the entire grid.
Visual representation and running
Each pixel represents an instruction with unique colors, while black indicates raw data storage (not an instruction). Every 8x8 pixel section represents a single program.
To run a simulation with seed 1:
uv run main.py --seed 1In this specific run, a self-replicator emerges relatively early and takes over most of the grid until a more efficient self-replicator evolves and dominates everything.
The repository includes example outputs: universe.gif and universe.mp4 showing the simulation progress.
Technical details
The project uses Python exclusively (100.0% according to GitHub language detection) and includes standard Python project files: pyproject.toml, uv.lock, and .python-version.
This implementation demonstrates how complex emergent behavior can arise from simple interaction rules, specifically showing how self-replicating programs can evolve without explicit programming for replication.
📖 Read the full source: HN AI Agents
👀 See Also

OpenClaw Client Adds Live API Cost Tracking, Spending Caps, and Granular Agent Controls
OpenClaw Client now features live usage UI with circular progress bars, per-agent spending caps, sub-agent management, skill toggling, and model switching from different providers.

Browser-native real-time coherence control system for Claude with SDE bands and Kalman filtering
A developer has built a real-time coherence control harness that runs entirely as a Claude artifact in the browser, treating conversation as a stochastic process with live Monte Carlo SDE paths, dual Kalman filtering, and behavioral signal detection.

Relay CLI tool saves Claude session context when rate limited
Relay is a Rust CLI tool that reads Claude's .jsonl session transcripts from disk and creates full snapshots of your session, including conversation, tool calls, todos, git state, and errors. It generates context prompts to resume sessions after rate limits reset.

Werld: Open-Ended Artificial Life Simulation with Evolving Neural Networks
Werld is a real-time artificial life simulation where agents with NEAT neural networks evolve their own neural architecture, sensory processing, and behaviors without hardcoded rules or reward functions. The simulation starts with 30 agents on a Watts-Strogatz small-world graph with 64 sensory channels, 7 continuous motor functions, and 29 heritable genome traits.