esolang

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

  1. A world keeps a set of programs, one for each kind of behaviour it has seen.
  2. 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.
  3. It runs every copy on a fixed set of inputs.
  4. 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.
  5. 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 worldRandom searchWorlds the model won
Mosaic 5.316.75.024 of 24
Quipu 5.215.87.924 of 24
Loom 5.215.58.224 of 24
Forge 5.113.65.724 of 24
Scroll 5.212.28.424 of 24
Palimpsest 5.211.53.224 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

See it run

The search is plain JavaScript (source). Every term is defined in the glossary.