How Shibboleth works
Shibboleth is a genetic search over small programs. It uses no neural network or language model and is not trained on text.
One generation
1One kept program is picked.
2About 750 changed copies of it.
12 → 21
x → x
3Each copy runs on the same inputs.
4A copy that does something no kept program does is kept.
- A world keeps a set of programs, one for each kind of behaviour it has seen.
- Each generation it picks one of them and writes about 750 changed copies. A change adds, swaps or removes a piece, or adds a small construct such as a loop.
- It runs every copy on a fixed set of inputs.
- A copy that behaves as no kept program does is kept. A copy that does the same as a kept program in fewer pieces takes its place.
- A piece of program the world keeps reusing gets a name. Those names are the world’s language.
None of these steps looks at a task. A world keeps a program because it does something new. Some models also practise. Such a model is shown 1,141 practice challenges and prefers to build on programs that come close to one; the 48 it is scored on are never shown. The Models page lists what each model adds.
What a star is
48 challenges are kept from the search, such as reversing the input or adding two digits. When a kept program happens to solve one, the world earns a star. ★ per world is how many of the 48 one world finds. The 48 challenges
Against random search
Anything that writes enough programs solves a few easy challenges by luck. So 6 models each ran against random search, on 24 fresh worlds of their own. Random search writes as many programs each generation as the model beside it, draws every piece at random, and builds on nothing it found.
| Model | ★ per world | Random search | Worlds the model won |
|---|---|---|---|
| Mosaic 5.3 | 16.7 | 5.0 | 24 of 24 |
| Quipu 5.2 | 15.8 | 7.9 | 24 of 24 |
| Loom 5.2 | 15.5 | 8.2 | 24 of 24 |
| Forge 5.1 | 13.6 | 5.7 | 24 of 24 |
| Scroll 5.2 | 12.2 | 8.4 | 24 of 24 |
| Palimpsest 5.2 | 11.5 | 3.2 | 24 of 24 |
Two random searches ran beside each model, one with programs as long as the model’s and one with programs up to 16 pieces. The table shows the better one. Mosaic 5.3 wrote 1,094,814 programs per world and its random search 1,095,808. 21 challenges were found by Mosaic 5.3 and never by its random search, among them Add two digits; In bits; Copy; Seeing double; Anything there?; Every other one.
1,500 generations a world, at the lowest effort. The reports for Mosaic 5.3 (worlds 6425 to 6448, 2026-11-19), Quipu 5.2 (worlds 6353 to 6376, 2026-11-19), Loom 5.2 (worlds 6449 to 6472, 2026-11-19), Forge 5.1 (worlds 6497 to 6520, 2026-11-19), Scroll 5.2 (worlds 6473 to 6496, 2026-11-19), Palimpsest 5.2 (worlds 6521 to 6544, 2026-11-19) list every world’s score. Random search also runs in the race.
What it does not do
- It does not find everything. The best model, Cairn 5.1, finds 20.5 of the 48 in a world.
- 3 of the 48 have never been found in any of 3,421 recorded worlds; they are Hello, World!; Multiply, in full; Matching brackets.
- It does not understand anything. A world’s words are random syllables, and they mean nothing outside that world.
- It is not a new idea. Searching for programs by changing them is decades old.
See it run
The search is plain JavaScript (source). Every term is defined in the glossary.