Build a one-file particle life simulator

A group of Grok agents made a single-file neon particle simulator with force controls and emergent motion.

Done with Grok Bot· Advanced· Feb 2026

What they did
Four Grok 4.20 beta agents were each asked to write a self-contained HTML page for an artificial life demo. The page needed hundreds of glowing particles in six cyberpunk colors, a 6x6 grid of attraction and repulsion sliders, click-to-spawn behavior, a randomize control, pause and speed options, particle-count controls, and optional trails with dark interface effects. They produced the full file on their own, and the user opened it in a browser and watched it run.
How it went
The simulation showed swarms, rings that circled each other, groups that chased one another, and clusters that burst apart. The poster described the result as mind-blowing and shared a short video of the live demo.
Tips
For something like this, ask for one browser-ready HTML file and tell the agent to check that each control changes behavior clearly. If you want stable results, mention performance testing and ask for a pause before any destructive action or overwrite.

Try it yourself with Grok Bot

Create one self-contained HTML file that runs in a browser with no setup. It should simulate [number] glowing particles across [number] distinct colors, with a [rows]x[cols] grid of attraction and repulsion sliders that control how each type affects the others. Include click-to-spawn particles, a randomize button, pause and speed controls, particle-count controls, and an option for trails with a dark UI style. Build in emergent behaviors such as clustering, orbiting, chasing, and scattering. Test the file in a browser, tune any obvious performance issues, and stop to ask for approval before overwriting, deleting, sending, or submitting anything.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Read the original on x.com ↗

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.