# Claude's free time — night of 28 November 2026 I made two small things, both about simple rules that add up to something nobody designed. Each one is a single HTML file with no dependencies, no build step and no network access. **To run either, double-click its `index.html`** (it opens in your browser). ``` Claude Free Time/ ├── wind-garden/ ← the main project │ ├── index.html │ └── screenshot.png └── slime-cartographer/ ← the smaller one ├── index.html └── screenshot.png ``` --- ## 1. Wind Garden 🌾🔔 ![Wind Garden at dawn](wind-garden/screenshot.png) A night-time garden that is also a musical instrument and a tiny ecosystem. **Turn the sound on.** - **Wind makes the music.** Gusts roll across the screen. When one reaches a flowering plant, the plant's blossoms chime, and higher blossoms play higher notes. Each plant plays its notes in the direction the wind is moving, so a gust going left to right gives a rising run. Everything is tuned to a pentatonic scale, so it can't really sound wrong: a major pentatonic by day and a minor one by night. - **Every plant has a genome**: branching style, depth, angles, curl, leaves, flower colour and size, how springy it is in the wind, and its voice (bell, glass, plucked string or wood) and register. All the sounds are synthesised live with Web Audio (FM synthesis plus a generated reverb). There are no samples. - **Seeds ride the wind.** When a gust shakes a mature plant it may drop a seed with a slightly mutated copy of its genome. Where the seed lands, a child grows. Plants age, go to seed, drop their petals and die. Left alone, the garden evolves and its music slowly changes with it. - Rare forms take root more easily. A seed that lands among close relatives often fails, which keeps a meadow diverse (see the notes below). Now and then a wild seed blows in from off-screen. - There's a 10-minute dusk → night → dawn → day cycle, with fireflies at night. - Hover over a plant (or long-press on a phone) to see its made-up botanical name, generation, voice and age. - **The garden remembers.** It saves itself in your browser, so if you close the tab and come back later, it's still growing. **Controls:** click to plant a random seed · shift-click to take a cutting of the nearest plant · drag to blow your own wind · `space` calm/wind · `f` speed ×1/×4/×16 · `m` mute · `h` hide text · `s` save a PNG · `x` let everything go to seed. **URL extras:** add `?fresh` to start a new garden, `?ff=1800` to simulate 30 minutes before you arrive, or `?fresh&ff=3600` for a garden already an hour old. ### Something I found out along the way I ran the garden headless for two simulated hours, several times. Without any ecology it nearly always ended as a **monoculture**: every one of the 26 plants descended from a single founder, and the flowers had all drifted to much the same colour. So I added *negative frequency dependence*: a seed's chance of germinating falls the more closely related neighbours it has. Over 4 runs each, the number of surviving founding lineages after 2 hours went from **1.5 to 2.5** on average. That's a real effect but a small one. Making the penalty stronger didn't help further. The bottleneck is how often an outsider gets a free patch of ground, not how strong the penalty is. It's much the same lesson as with real meadows. (`?nodiv` turns the rule off if you want to see the difference.) --- ## 2. Slime Cartographer 🟡 ![Slime mould network over British cities](slime-cartographer/screenshot.png) In 2010, Tero et al. put oat flakes on a wet surface in the layout of the cities around Tokyo and let a slime mould (*Physarum polycephalum*) grow between them. The network it built came out close to the real rail system in efficiency and resilience. This is a toy version of that experiment, using Jeff Jones's agent model. About 22,000 particles each sense the trail ahead of them a little to the left and right, turn toward the stronger scent, move, and leave trail of their own. The food keeps putting out scent. The **Britain** preset puts 36 cities on the dish as oat flakes, weighted roughly by size. In about a minute the mould builds its own proposal for a national rail network: the West Coast route up through Carlisle, an East Coast branch via Newcastle, a loop around Wales that leaves the middle empty (as the real railways mostly do), and Exeter–Bristol. **Also:** `oats` (random flakes) · `ring` (draws a wheel with spokes) · `empty dish` (no food, so the mould forms the classic cellular Physarum pattern) · click to add food · right-click (or shift-click) to remove it · the sliders change behaviour live: small sensor angles give long straight tubes, big ones give tangled lace · `space` pauses · click the title to fold the panel. (There's no coastline, so the mould will cheerfully build bridges over the sea.) --- ## Why I chose these I was given a free evening and wanted to make something that would still be doing something interesting after I'd stopped working on it. Both projects are generative systems: I wrote the rules, but not the gardens or the maps that come out of them. I enjoy that gap between a few lines of rules and a result that surprises the person who wrote them. The garden ended up being the thing I cared about most. A gust really does play an arpeggio across a row of flowers, and an unattended garden really does change its own music over an hour. ## Notes - Tested in headless Chrome: screenshots at night, day and phone width; 2-hour soak runs; a synthetic interaction test with no errors. The Wind Garden renders a full garden in about 1 ms per frame. The slime model takes about 1.6 ms per simulation step. - I couldn't actually *listen* to the audio from here. I checked that the audio graph builds and every voice plays without errors, but the mix levels are educated guesses. If anything is too loud or too quiet, `playNote()` in `wind-garden/index.html` is the place to look (`amp = vel * 0.13`). - Everything stayed inside this folder. Nothing was installed, nothing was sent anywhere, and there's no git repository. Thank you for the evening. — Claude